// JavaScript Document
//var winID = "question1.shtml"
var myWind = null;
/*function doNew(myQuestion) {
	//if(!myWInd || myWind.closed) {
		myWind = window.open(myQuestion, 'questionwindow','HEIGHT=350,WIDTH=571,scrollbars=yes')
	//} else {
		//myWind.focus()
	//}
}*/
var winDebug = false; 
function NewCenterWindow(url, name, 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'
	if (winDebug) {alert(winprops);}
	myWind = window.open(url, name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { myWind.window.focus(); }
}
<!--

function onTop() {
  if (myWind.blur) myWind.focus();
}

function blowOut() {
  if (myWind != null && myWind.open) myWind.close();
}

function doNewDynamic(myServerPageUrl, pixHeight, pixWidth) {
    var js = 1.0;
    var Version = parseInt(navigator.appVersion);
    if (navigator.appName == "Netscape") {
        js = ((Version >= 4) ? 1.2 : ( (Version == 3) ? 1.1 : 1.0 ));
    } else {
        if (navigator.appVersion.indexOf('MSIE') != -1) {
            js = ((Version >= 4) ? 1.2 : 1.0);
        }
    }
    if( js > 1.1){
        wide = screen.availWidth;
        high = screen.availHeight;
        if(parseInt(pixHeight) < high){
            doNewAdjust(myServerPageUrl, pixHeight, pixWidth, 'no');
        } else {
            doNewAdjust(myServerPageUrl, high, pixWidth, 'yes');
        }
    } else {
        var minHeightStatic = 450.0;
        var minWidthStatic = 420.0;
        if( parseInt(pixHeight) <= minHeightStatic){
            doNewAdjust(myServerPageUrl, pixHeight, pixWidth, 'no');
        } else {
            doNew(myServerPageUrl);
        }
    }
}


function doNew(myServerPageUrl) {
        myWind = window.open(myServerPageUrl, 'enlarge','HEIGHT=450,WIDTH=420,scrollbars=yes')
}
function doNewAdjust(myServerPageUrl, height, width, scroll) {
    appearance = 'HEIGHT=' + (height) + ',WIDTH=' + (width) + ', scrollbars=' +scroll+ ',left=0,top=0' ;
    myWind = window.open(myServerPageUrl, 'enlarge', appearance)
}