﻿// JScript File
//function handleErr(msg,url,l)
//{
//    return false;
//}
function popupcenter(url,winw,winh,resizable,winname) {
var winl = (screen.width-winw)/2;
var wint = (screen.height-winh)/2;
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var page = url;
windowprops = "height="+winh+",innerHeight="+winh+",width="+winw+",innerWidth="+winw+",top="+ wint +",screenY="+wint+",left="+ winl +",screenX="+winl+",location=0,scrollbars=0,menubars=0,toolbars=0,resizable="+resizable+",status=0";
var win= window.open(page, winname, windowprops);
if (window.focus) {win.focus()}
return false;
}
function closewindow(){
window.close();
}
function popup(url,winw,winh,resizable,winname) {

if (winw == -1) winw = window.document.body.scrollWidth;
if (winh == -1) winw = window.document.body.scrollHeight;
    
var winl = (screen.width-winw)/2;
var wint = (screen.height-winh)/2;
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;

var page = url;
windowprops = "height="+winh+",width="+winw+",top="+ wint +",screenY="+wint+",left="+ winl +",screenX="+winl+",location=0,"
+ "scrollbars=0,menubars=0,toolbars=0,resizable="+resizable+",status=1";
window.open(page, winname, windowprops);
var win= window.open(page, winname, windowprops);
if (window.focus) {win.focus()}
return false;
}

