﻿  //* Lewald Scripts
//* Dynamical resize of Tables for Containers which are tagged as "mastercontent" and "master2content". and
function resize_Content()
{

	var height=window.innerHeight;//Firefox
	if (document.body.clientHeight)
	{
		height=document.body.clientHeight;//IE
	}
	//resize the Table (MainContent) according to the size of the
	//window (all these should be on the same line)
	document.getElementById("mastercontent").style.height=parseInt(height-
	document.getElementById("mastercontent").offsetTop-150)+"px";
}
resize_iframewidth=function()
{

	var Width=window.innerWidth;//Firefox
	if (document.body.clientWidth)
	{
		height=document.body.clientWidth;//IE
	}
	//resize the Table (HeadContent) according to the size of the
	//window (all these should be on the same line)
	document.getElementById("master2content").style.Width=parseInt(Width-
	document.getElementById("master2content").offsetTop-435)+"px";
}

// this will resize Table every
// time you change the size of the window.
window.onresize=resize_Content;
window.onload=resize_Content;  

//window.attachEvent("onload", resize_iframe1);
//window.attachEvent("onresize", resize_iframe1);
