<!--
var myWindow;

function openCenteredWindow(url,vw,vh,sb) {
    var scroll = sb;
    var width = vw;
    var height = vh;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
	if (scroll == 0)
	    var windowFeatures = "width=" + width + ",height=" + height + ",status,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
	else if (scroll == 1)
	    var windowFeatures = "width=" + width + ",height=" + height + ",scrollbars,status,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
	else if (scroll == 2)
	    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
	else if (scroll == 3)
	    var windowFeatures = "width=" + width + ",height=" + height + ",scrollbars,status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
	
    myWindow = window.open(url, "subWind", windowFeatures);
}




//-->
