﻿/*Created & Edited by Bartholomew-Michael Vasilantonakis for Hellenic Institute of Transport in August 2006*/
function calcHeight(the_iframe)
{	
	if (navigator.appName=="Opera"){		
		var the_height=document.getElementById(the_iframe).contentWindow.document.body.offsetHeight;//find the height of the internal page
		document.getElementById(the_iframe).style.height=the_height+30;//change the height of the iframe
	}else if(navigator.appName=="Netscape"){
		var the_height=document.getElementById(the_iframe).contentWindow.document.body.offsetHeight;//find the height of the internal page
		document.getElementById(the_iframe).style.height=the_height+30;//change the height of the iframe
	}else {
		var the_height=document.getElementById(the_iframe).contentWindow.document.body.scrollHeight;//find the height of the internal page
		document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe
	}
}