function maximizeWindow(window) {
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			if (window.top.screenX>0 || window.top.screenY>0)
				window.top.moveTo(0,0);
   			if (window.top.outerWidth < screen.availWidth)
   				window.top.outerWidth=screen.availWidth;
   			if (window.top.outerHeight < screen.availHeight)
   				window.top.outerHeight=screen.availHeight;
	  	}
		else {
			window.top.moveTo(-4,-4);
			window.top.resizeTo(screen.availWidth+8,screen.availHeight+8);
		}
	}
}

function opennew(file, name, width, height, scrollbar, bMaximize) {
	var centh = ((screen.width /2) - (width /2));
	var centv = ((screen.height /2) - (height /2));
	window1=window.open(file, name, 'height='+height+',width='+width+',top='+centv+',left='+centh+',status=yes,menubar=no,resizable=no,scrollbars='+scrollbar);
	if (bMaximize!=undefined && bMaximize) {
		maximizeWindow(window1);
	}
	window1.focus();
}
