// <!--

var newWin = null;




function openTheWindow(URL, windowName, windowWidth, windowHeight, scrollbars, xxPos, yyPos)
{
	var xposition = 400; 
	var yposition = 300;

	if (xxPos != null && yyPos !=null) {
		 xposition = xxPos; 
		 yposition = yyPos;
	}
    else if ((parseInt(navigator.appVersion) >= 4 )) {
        xposition = (screen.width - windowWidth) / 2;
        yposition = (screen.height - windowHeight) / 2;
    }
	
	if (!scrollbars) var scrollbars = "yes";
    var args = "width=" + windowWidth + ","
	    	+ "height=" + windowHeight + ","
	    	+ "location=no,"
		    + "menubar=no,"
		    + "scrollbars=" + scrollbars + ","
		    + "status=no,"
		    + "titlebar=no,"
		    + "hotkeys=no,"
		    + "screenx=" + xposition + ","  // NN Only
		    + "screeny=" + yposition + ","  // NN Only
		    + "left=" + xposition + ","     // IE Only
		    + "top=" + yposition;           // IE Only
		
	if (newWin != null && !newWin.closed) {
		newWin.close();
	}
	newWin = window.open(URL, windowName, args);
	
	newWin.focus();
}


 // -->