
function open_window(url, win_name, win_width, win_height, resize, scrollbars) {
    var w = 800, h = 600;
    if (document.all || document.layers) {
        w = screen.availWidth;
        h = screen.availHeight;
    }
    var leftPos = (w - win_width) / 2, topPos = (h - win_height) / 2;
    var newWindow = window.open(url, win_name, 'top=' + topPos + ',left=' + leftPos + ',menubar=no,toolbar=no,status=yes,resizable=' + resize + ',scrollbars=' + scrollbars + ',width=' + win_width + ',height=' + win_height);
}

function MM_openBrWindow(theURL, winName, features) {
    window.open(theURL, winName, features);
}

function openStdPop(theURL, winName) {
    window.open(theURL, winName, 'width=700,height=580,screenX=100,screenY=100,scrollbars=yes,toolbars=no,menubar=no,satus=no,alwaysRaised=yes');
}

function MM_jumpMenu(targ, selObj, restore) {
    eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
    if (restore) selObj.selectedIndex = 0;
}

function openProjectDisclaimer() {
    window.open("../Resources/ProjectsInProductionDisclaimer.aspx", "disclaimer", "width=400,height=300,scrollbars");
}

function openBookingWindow() {
    var s1, s2;
    s1 = document.getElementById("hideMabs").innerText;
    s2 = document.getElementById("hideSession").innerText;
    window.open(s1 + "?sessionid=" + s2, "MABS", "menubar=no,left=1,top=1,height=840,width=940,status=yes,toolbar=no,titlebar=no,location=no,resizable=no,scrollbars=yes");
}
