// Pop-up script

function PopUp(url) {
    width = 600;
    height = 380;
    
    x = (640 - width)/2, y = (480 - height)/2;
	 
    if (screen) {
        width = 600;
		height = screen.availHeight-160;
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    	
    }

    window.open( url ,'PopUp','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',toolbar=no,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
}

function PopUpsm(url) {
    width = 600;
    height = 280;
    
    x = (640 - width)/2, y = (480 - height)/4;
	 
    if (screen) {
        width = 600;
		height = screen.availHeight-360;
        y = (screen.availHeight - height)/4;
        x = (screen.availWidth - width)/2;
    	
    }

    window.open( url ,'PopUp','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',toolbar=no,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
}

function PopUpsm1(url) {
    width = 600;
    height = 280;
    
    x = (640 - width)/2, y = (480 - height)/4;
	 
    if (screen) {
        width = 600;
		height = screen.availHeight-300;
        y = (screen.availHeight - height)/4;
        x = (screen.availWidth - width)/2;
    	
    }

    window.open( url ,'PopUp','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',toolbar=no,resizable=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes');
}