function calcHeight()
{

  var f = document.getElementById('ifrm');

  //find the height of the internal page
  var the_height=f.contentWindow.document.body.scrollHeight;

  //change the height of the iframe
  f.height= the_height+100;

}

function autoResize(id){
	var newheight;
	var newwidth;

	if(document.getElementById){
		newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
		newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
	}

	document.getElementById(id).height= (newheight) + "px";
	document.getElementById(id).width= (newwidth) + "px";
}
