var MZ=(document.getElementById?true:false); 
var IE=(document.all?true:false); 
var winWidth=IE?document.body.clientWidth:window.innerWidth; 
var winHeight=IE?document.body.clientHeight:window.innerHeight;


if(winHeight)
{ 
	if(IE)
	{ 
		if(winHeight > 300)
		{
			document.all['inneriframe'].style.height=(winHeight-210);
		}
		else
		{
			document.all['inneriframe'].style.height=(winHeight-(.35*winHeight));
		}
	}
	else if(MZ)
	{
		if(winHeight > 300)
		{
			document.getElementById('inneriframe').style.height=(winHeight-210);
		}
		else
		{
			document.getElementById('inneriframe').style.height=(winHeight-(.35*winHeight));
		}
	}
}



function printpage(x)
{
	var thewidth= screen.width;
	var theheight= screen.height;
	theheight-=(.25*theheight);
	thewidth-=(.1*thewidth);
	propstring = 'height=' + theheight + ',width=' + thewidth + ',status=yes,toolbar=no,menubar=yes,location=no,scrollbars=yes';
	newpage = window.open(x, 'toprint', propstring);
	newpage.moveTo(10,10);
	newpage.status=("Close window after printing.");

}