//FUNCTION TO OPEN A NEW BROWSER WINDOW
function openWin(url,winname,w,h) { 
topWin = (screen.availHeight - h) / 2;
leftWin = (screen.availWidth - w) / 2;
props = "width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable,scrollbars"; 
var myWin = window.open(url,winname,props);
myWin.focus();
}
//END FUNCTION TO OPEN A NEW BROWSER WINDOW
//FUNCTION TO OPEN A URL IN NEW BROWSER WINDOW
function openURL(url,winname,w,h) {
    topWin = (screen.availHeight - h) / 2;
    leftWin = (screen.availWidth - w) / 2;
            if (navigator.platform.indexOf('mac') != -1){
            props = "status,menubar,location,toolbar,titlebar,width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable,scrollbars"; }
            else {
            props = "status,menubar,location,toolbar,titlebar,width="+w+",height="+h+",top="+topWin+",screenY="+topWin+",left="+leftWin+",screenX="+leftWin+",resizable,scrollbars"; }
    var myWin = window.open(url,winname,props);
    myWin.focus();
}
//END FUNCTION TO OPEN A URL NEW BROWSER WINDOW
//FUNCTION TO PRINT PAGE	
function printit() {
if (window.print)
 window.print();
else {
 if (navigator.platform.indexOf('Mac') != -1)
alert('This function does not work in your browser! \n Please select the Print option from the File menu.');
else if (navigator.platform.indexOf('Win') != -1)
alert('This function does not work in your browser! \n Please right click on your mouse and select the Print option.');
else alert('This function does not work in your browser!');
 }
}
// END FUNCTION TO PRINT PAGE	