// JavaScript Document
//if(navigator.userAgent.indexOf("Mac") != -1) {
//	if(navigator.appName.indexOf("Netscape") != -1){
//		document.write("<link REL='stylesheet' HREF='include/main_mac.css' TYPE='text/css'>");
//	}
//	else{
//		document.write("<link REL='stylesheet' HREF='include/main.css' TYPE='text/css'>");
//	}
//}
//else {
//	document.write("<link REL='stylesheet' HREF='include/main.css' TYPE='text/css'>");
//}
function showpopup(popup_url, popup_name, pheight, pwidth) {
	strpopup_url = new String(popup_url)
	strpopup_name = new String(popup_name)
	
	// calculate left/top to centre the window.
	if (document.all)
			var xMax = screen.width, yMax = screen.height;
	else
			if (document.layers)
					var xMax = window.outerWidth, yMax = window.outerHeight;
			else
					var xMax = 640, yMax=480;

	var xOffset = (xMax - pwidth)/2, yOffset = (yMax - pheight)/2;
	myWindow = window.open(strpopup_url,strpopup_name,'height='+pheight+',width='+pwidth+',scrollbars=yes,toolbar=no,titlebar=no,resizable=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'') 
	myWindow.focus();
}
function showpopuptoprint(popup_url, popup_name, pheight, pwidth) {
	strpopup_url = new String(popup_url)
	strpopup_name = new String(popup_name)
	
	// calculate left/top to centre the window.
	if (document.all)
			var xMax = screen.width, yMax = screen.height;
	else
			if (document.layers)
					var xMax = window.outerWidth, yMax = window.outerHeight;
			else
					var xMax = 640, yMax=480;

	var xOffset = (xMax - pwidth)/2, yOffset = (yMax - pheight)/2;
	myWindow = window.open(strpopup_url,strpopup_name,'height='+pheight+',width='+pwidth+',scrollbars=yes,toolbar=yes,titlebar=no,resizable=no,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'') 
	myWindow.focus();
}