
var myWindow;
var myWindow2;
function openTwoCenteredWindow(url,url2) {
    var width = 800;
    var height = 600;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var left2 = parseInt(((screen.availWidth/2) - (width/2)) + 20);
    var top2 = parseInt(((screen.availHeight/2) - (height/2)) + 20);
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status,resizable,menubar,location,scrollbars,toolbar,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
    var windowFeatures2 = "width=" + width + ",height=" + height + 
        ",status,resizable,menubar,location,scrollbars,toolbar,left=" + left2 + ",top=" + top2 + 
        "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
    myWindow2 = window.open(url2, "subWind2", windowFeatures2);
}

