	IE = navigator.appName=="Microsoft Internet Explorer";
	NS = navigator.appName=="Netscape";
	bVer = parseInt(navigator.appVersion);
	var newWin=null;

	function PopUp(loc_ie, name, width, height) {

		if (window.NewWindow == null || window.NewWindow.closed)
		{

		        var _params = "width="+width+",height="+height+",resizable=no,status=no,scrollbars=0";
			loc_ns = loc_ie;
		
		        if (bVer >= 4) {
		                 _left = ( (screen.width-width) >>1 );
	        	         _top = ( (screen.height-height) >>1 );
		        } else {
		                 _left = ( (800-width) >>1 );
	        	         _top = ( (600-height) >>1 );
		        }
	
			if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
		        else _params += ",top=" + _top + ",left=" + _left;
	
		        if (NS) newWin = window.open(loc_ns, name, _params);
			else newWin = window.open(loc_ie, name, _params);
	
		        if ( newWin!=null )
		                newWin.focus();
		}

		else

		{
		        window.NewWindow.location.href = loc_ie;			
			window.NewWindow.focus();
		}

	}

