<!-- new window function -->
function NewWindow(strURL, strWindowName, intHeight, intWidth) {

    var resize = 'true';
    var scrollers = 'true';
    if (NewWindow.arguments.length == 5) {
       resize = NewWindow.arguments[4];
    } else if (NewWindow.arguments.length == 6) {
       resize = NewWindow.arguments[4];
       scrollers = NewWindow.arguments[5];
    }

	var objNewWindow;
	var intScrHeight = screen.height;
	var intScrWidth = screen.width;
	var scrollers;
	var intX = (intScrHeight / 2) - (intHeight / 2);
	var intY = (intScrWidth / 2) - (intWidth / 2);

	var winParams = 'toolbar=0,location=0,status=0,menubar=0,width=' + intWidth + ',height=' + intHeight;

	if (resize == "true")
	   winParams += ',resizable=yes';
	else
	   winParams += ',resizable=no';

	if (scrollers == "true")
	   winParams += ',scrollbars=1';
	else
	   winParams += ',scrollbars=0';   

	objNewWindow = window.open(strURL, strWindowName, winParams);
	objNewWindow.moveTo(intY, intX);

}
