function displayWindow1(url) {
        var Win = window.open(url,"displayWindow1",'width=946,height=710,resizable=1,scrollbars=no,menubar=no,status=no,border=no,left=0,top=0');
}

function setMsg(msg) {
        window.status = msg
        return true
}

function DoPrinting(){
if (!window.print){
alert("You must have Netscape 4.x or MSIE5,\n in order to use this print button!")
return
}
window.print()
}

function initpage(){
    
    function daddyBrowserCheck() {
        var appName = navigator.appName;
        var userAgent = navigator.userAgent;
        var appVersion = navigator.appVersion;
        var platform = navigator.platform;
        
        this.isIE = (appName.indexOf("Microsoft Internet Explorer") != -1 || userAgent.indexOf("MSIE") != -1) ? true : false;
        this.isNS = (appName.indexOf("Netscape") != -1) ? true : false;
        this.isWin = (platform.indexOf("Win") != -1) ? true : false;
        this.isMac = (platform.indexOf("Mac") != -1) ? true : false;
        this.isUnix = (platform.indexOf("Unix") != -1) ? true : false;
        this.majorVersion = (this.isIE && appVersion.indexOf("MSIE") != -1) ? parseFloat(appVersion.substring(appVersion.indexOf("MSIE") + 4,appVersion.length)) : this.version = parseFloat(appVersion);
        this.minorVersion = (this.isIE && appVersion.indexOf("MSIE") != -1) ? parseInt(appVersion.substring(appVersion.indexOf("MSIE") + 4,appVersion.length)) : this.version = parseInt(appVersion);
    }
    browser = new daddyBrowserCheck()
    
}

function openFullscreenWindow(url){

	if(browser.isIE && browser.isWin){
        
        	window.open(url,"levelfullscreen","fullscreen=1,width=1024,height=768,top=0,left=0");	
        
    	} else {
		var width, height;
    		width = (screen.availWidth?screen.availWidth:800) -10;
    		height = (screen.availHeight?screen.availHeight:600) - 28;
    		if (navigator.appVersion.indexOf('Mac') != -1) {
        		if ((document.getElementById && !document.all) || ((navigator.appName=="Netscape" && theVersion<5) ? 1:0)) {
            			height +=40;
        		} else {
            			width += 10;
            			height += 6;
        		}
    		} else {
        		if(document.getElementById && !document.all) {
            			width +=4;
            			height +=2;
        		}
    		}
    		window.open(url,"Daddy","left=0,top=0,width=" + width + ",height=" + height + ",fullscreen=no");	
	}
}
