function popUpHome(URL) {

day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1100,height=730,left =20,top =0');");
}

function popUp(URL, x, y) {

    day = new Date();
    id = day.getTime();

    
var myleft=0;
var mytop=0;
var netWidthPad=250;
var netHeightPad = 200;
var ieWidthPad=250;
var ieHeightPad=180;

if (navigator.appName=="Netscape")
{
myleft=window.screenX+window.outerWidth-netWidthPad-x;
mytop=window.screenY+window.outerHeight-netHeightPad-y;
}
else if (navigator.appName.indexOf("Microsoft")!=-1)
{
    myleft = window.screenLeft + document.body.offsetWidth - ieWidthPad - x;
    mytop = window.screenTop + document.documentElement.clientHeight - ieHeightPad - y;
}

//settings="width=" + x + ",height=" + h + ",top=" + mytop + ", left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
//win=window.open(URL,myname,settings);
//win.focus();

    eval("var page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + x + ",height=" + y + ",left =" + myleft + ",top =" + mytop + "');");// page" + id + ".moveTo(screen.width/2-winwidth/2, screen.height/2-winheight/2);");
}
