function printPage(printPage)
{
	var wHeight = 400;
	var wWidth = 400;
	var wTop = Math.round((screen.height - wHeight) / 2);
	var wLeft = Math.round((screen.height - wWidth) / 2);
	window.open("print.asp?print=" + printPage, "_print", "height=" + wHeight + ", width=" + wWidth + ", left=" + wLeft + ", top=" + wTop + ", channelmode=no, directories=no, fullscreen=no, location=no, menubar=no, resizable=1, scrollbars=no, status=no, titlebar=no, toolbar=no");
}

function positionBanner()
{
	var wWidth = document.getElementById("bodyMain").clientWidth;
	var sWidth = document.getElementById("bodyMain").scrollLeft;
	var cWidth = document.getElementById("topleftspace").getAttribute("width");
	var leftSpacer = Math.round((wWidth - 750 - 20) / 2) + sWidth;
	setSpacer(leftSpacer);
}
function setSpacer(spacerSize)
{
	document.getElementById("topleftspace").setAttribute("width", spacerSize);
	document.getElementById("middleleftspace").setAttribute("width", spacerSize);
	document.getElementById("bottomleftspace").setAttribute("width", spacerSize);
	document.getElementById("topcontent").setAttribute("align", "left");
	document.getElementById("middlecontent").setAttribute("align", "left");
	document.getElementById("bottomcontent").setAttribute("align", "left");
}
function maxWindow()
{
	window.moveTo(0,0);
	if (document.all)
	{
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById)
	{
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
		{
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}
}
function initialise()
{
	window.onresize = positionBanner;
}