function resizeIframe(iframeSize) {

	// Must launched on the body onload event handler for IE
	// Use document.documentElement if you are in Compat mode
	i = returnObjById("iframearea")
//	i = window.frames[0]
//	alert(window.frames[0].style.height)
	iHeight = i.contentWindow.document.body.scrollHeight
	heightBase = 312;
	if(iframeSize != 0)
	{
		heightBase = iframeSize;
		

	}	
	if(iHeight > heightBase)
	{
		i.style.height = iHeight+"px"
	}
	else
	{
		i.style.height = heightBase + "px";
		
	}
}
function returnObjById( id ) 
{ 
if(document.getElementById) 
var returnVar = document.getElementById(id);
else if (document.all)
var returnVar = document.all[id];
else if (document.layers)
var returnVar = document.layers[id];
return returnVar;
}



function calcHeight(i)
{
alert(i);
  //find the height of the internal page
  var the_height= i.contentWindow.document.body.scrollHeight;

  //change the height of the iframe
  i.height=  the_height;
}


