// For Iframe Resizing
var domain_name = document.domain;
domain_name = domain_name.replace("html.", "");
document.domain = domain_name;

// var mainFrame = parent.document.getElementById('contentFrame');
var mainFrame = null;
try {
	mainFrame = parent.document.getElementById('contentFrame');
	mainFrame.scrolling = 'no';
	mainFrame.style.overflow = 'visible';
} catch (e) {
	
}

window.onload = function(){
	if(mainFrame != null){
		mainFrame.width = "100%";
		mainFrame.height = document.body.scrollHeight + 60 + "px";
	}
}

function autoResize(obj)
{
	var theHeight= obj.contentWindow.document.body.scrollHeight;
	obj.height = theHeight + "px";
}
