//Add globally used JS code here

function OpenPopUp(strURL){
	window.open(strURL,'AMPTerms','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=620,height=600,top=10,left=10')
}
function printPage(){
	window.onerror = null;
	var  isNS = 0;
	var  isIE = 0;
	var brow = navigator.appName;
	if (brow == "Netscape" && parseInt(navigator.appVersion) >= 5){
	   isNS = 5;
	   }
	if (brow == "Netscape" && parseInt(navigator.appVersion) == 4){
	   isNS = 4;
	   }
	if (brow == "Netscape" && parseInt(navigator.appVersion) < 4){
	   isNS = 3;
	   }
	if (brow == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 6") != -1){
	   isIE = 6;
	   }

	if (brow == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 5") != -1){
	   isIE = 5;
	   }
	if (brow == "Microsoft Internet Explorer" && navigator.appVersion.indexOf("MSIE 4") != -1){
	   isIE = 4;
	}

	var printThis;
	if (isIE >4) {
		window.focus();	
	}
			

	if (isNS >4 || ( isIE >=5 && navigator.platform.indexOf('Mac') == -1)){
				
	   	//alert("This page has loaded in a printer-ready format.   \n\n After you have finished printing, click on the Close button above to close this window.")
		window.print()
			     
	}else{
			
		printThis = "To print this document, "
		if (isNS>=4){
				
			if (navigator.platform.indexOf('Mac')== -1){
				 printThis += "press 'Control+P'" 
			 }
			else {
				 printThis += "press 'Command+P'"
			}
		}
		else {
			if (navigator.platform.indexOf('Mac')== -1){
				 printThis += "press 'Control+P'" 
			 }
			else {
				 printThis += "press 'Command+P'"
			}		
		}
		printThis += ".   \n\n  Once you have printed this page, click the Close button above to close this window."
		alert(printThis);
    }
}
