var oInterval = null;
window.onload = function Load()
{
	if(document.body)
	{
		var pageHeight = null;
		window.parent.resizeIFrameContainer(1); // reset
		oInterval = setInterval(calculatePageHeight,125);
	}
}
function calculatePageHeight()
{
	clearInterval(oInterval);
	if (document.body.scrollHeight > document.body.offsetHeight)
	{
		pageHeight = (document.height)? document.height : document.body.scrollHeight;
	}
	else
	{
		pageHeight = (document.height)? document.height : document.body.offsetHeight;
	}
	window.parent.resizeIFrameContainer(pageHeight);
}