
function openWindow(url, target, width, height) {
    var left = Math.round((screen.width - width)/2);
    var top = Math.round((screen.height - height)/2);

    var args = "menubar=0, scrollbars=0, titlebar=1, resizable=0,"
    + "width=" + width + ","
    + "height=" + height + ","
    + "status=0,"
    + "left=" + left + ","
    + "top=" + top + ","
    + "screenX=" + left + ","
    + "screenY=" + top;

  window.open(url, target, args)
}

function openWindow2(url, target, width, height) {
    var left = Math.round((screen.width - width)/2);
    var top = Math.round((screen.height - height)/2);

    var args = "menubar=0, scrollbars=1, titlebar=1, resizable=1,"
    + "width=" + width + ","
    + "height=" + height + ","
    + "status=0,"
    + "left=" + left + ","
    + "top=" + top + ","
    + "screenX=" + left + ","
    + "screenY=" + top;

  window.open(url, target, args)
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function mailWindow()
{
window.open('/mail/index.php?s=1&t=1'+ '?' + document.subscribe.name.value + document.subscribe.email.value,'newsletter','top=0,left=0,width=500,height=320,scrollbars=0')
}

