// Dynamic Iframe loader
function loadIframe(theURL) {
	document.getElementById("mainContent").src=theURL;
}

// resizes Iframe according to content
function resizeMe(obj){ 
	docHeight = mainContent.document.height || mainContent.document.body.scrollHeight
	obj.style.height = docHeight + 'px'
} 


function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe').height=
      the_height;
}

