function openWindow( url, winName, iWidth, iHeight ) {

	this.name = "MAINPAGE";
	sSettings="";
	if(iWidth && iHeight){
		sSettings="status=no,width=" + iWidth + ",height=" + iHeight + ",resizable=yes,toolbar=no,scrollbars=yes";
	}
	popup = window.open( url, winName, sSettings );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}


function openPrintWindow(PrintURL){

popup = window.open(PrintURL,'PrintWindow','status=no,width=680,height=500,resizable=yes,menubar=no,toolbar=yes,scrollbars=yes');

if (navigator.appName == "Netscape") { 
 			      popup.focus();
 			   } 
}


var win= null;
function NewWindow(mypage,myname,w,h,scroll){
	this.name = "main";
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=yes';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
