function windowOpener(windowWidth, windowHeight, windowUri, windowName) {
    var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;
    if(!windowHeight) {
        windowHeight=window.screen.height-window.screen.Height*0.17;
    }
    newWindow = window.open(windowUri, windowName,
        'fullscreen=0, toolbar=0, location=0, directories=0'
        + ', status=1, menubar=0, resizable=1, scrollbars=1'
        + ', width='+ windowWidth
        + ', height=' + windowHeight);
    newWindow.moveTo(centerWidth, 15);
    newWindow.blur();
    newWindow.focus();
}

function ow(url, w, h) {
    var centerWidth = (window.screen.width - w) / 2;
    var centerHeight = (window.screen.height - h) / 2;
    newWindow = window.open(url,"","width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=no,status=no,location=no");
    newWindow.moveTo(centerWidth, centerHeight);
    newWindow.blur();
    newWindow.focus();
}
