function openNewWin(URL,winWidth,winHeight,features)
{
	var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4))
	// Assemble window attributes and try to center the dialog.
      if (Nav4) {
         // Center on the main window.
         winLeft = window.screenX + ((window.outerWidth - winWidth) / 2)
         winTop = window.screenY + ((window.outerHeight - winHeight) / 2)
         var attr = "screenX=" + winLeft + ",screenY=" + winTop + ",width=" + winWidth + ",height=" + winHeight
		    	
      } else {
         // The best we can do is center in screen.
         winLeft = (screen.width - winWidth) / 2
         winTop = (screen.height - winHeight) / 2
         var attr = "left=" + winLeft + ",top=" + winTop + ",width=" + winWidth + ",height=" + winHeight
		    
      }
	if(isFinite(features))
	{
		if(features == 1)
		attr = attr + ",resizable=yes,scrollbars=yes,toolbar=yes"
		if(features == 2)
		attr = attr + ",resizable=yes,scrollbars=yes"
		if(features == 3)
		{
			var w = window.screen.availWidth - 80;
			var h = window.screen.availHeight - 80;
			attr = "screenX=0,screenY=0,left=0,top=0,width=" + w + ",height=" + h + ",resizable=yes,scrollbars=yes"
		}
	}
	else
	{
		attr = attr + "," + features
	}
	newWindow = window.open(URL,'newWindow',attr);
}
