// JavaScript popup

var remote;

function popWin(file,w,h) {
    x = (640 - w)/2, y = (480 - h)/2;
 
    if (screen) {
        y = (screen.availHeight - h)/2;
        x = (screen.availWidth - w)/2;
    }
 if (screen.availWidth > 1800) { 
 x = ((screen.availWidth/2) - w)/2; 
    } 
remote = window.open(file,"","width="+w+",height="+h+",screenX="+x+",screenY="+y+",top="+y+",left="+x+",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,zoombox=no");
}

