	function WinPopUp(Url,Width,Height,Scroll,Resize)
	{ 
		var strResize;  			    // String
		var strScroll;				    // String
		var strStatus = "yes";			// String
		var strMenuBar = "no"; 
		
		if (window.MenuBar){
			strMenuBar = MenuBar; 		
		}
		
		
		if( Scroll == true ){
			strScroll = "yes";
		}else{
			strScroll = "no";
		}
		if( Resize == true ){
			strResize = "yes";
		}else{
			strResize = "no";
		}
		if( Resize == false && Scroll == false ){
			strStatus = "no";
			strName = "controlDialog";
		}
		
		if (navigator.appName == 'Netscape' && getBrovserVersion() < 5 ){	
			strResize = "yes";
		}
		
		var strSize = "";
		if ( Height > 0 | Width > 0 )
		{
			strSize = "height=" + Height + ",width=" + Width + ",";
		} 
		
		// Opens a new browser
		controlWindowPopUp=window.open(Url,"controlWindowPopUp","toolbar=no," + strSize + "location=no,directories=no,status=" + strStatus + ",menubar=" + strMenuBar + ",scrollbars=" + strScroll + ",resizable=" + strResize);
		try{controlWindowPopUp.focus();}catch(e){}
	}  
	function NewBrowser(a)
	{ 
		controlWindowBrowser=window.open(a,"controlWindowBrowser","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
		try{controlWindowBrowser.focus();}catch(e){}
	}

	
	
	function getBrovserVersion(){
		var value = navigator.appVersion;
		var NumericValue = ''; 
		var Char;
		for( var i = 0 ; i < value.length;i++)
		{
			Char = value.charAt(i);
			if (IsNumeric(Char))
				 NumericValue = NumericValue + String(Char)
			else
				break;
		}
		if (!NumericValue)
			NumericValue = 0;
		
		return NumericValue;
	}  

	function IsNumeric(strString){
	   var strValidChars = "0123456789.-";
	   var strChar;
	   var blnResult = true;

	   if (strString.length == 0) return false;

	   //  test strString consists of valid characters listed above
	   for (i = 0; i < strString.length && blnResult == true; i++){
	      strChar = strString.charAt(i);
	      if (strValidChars.indexOf(strChar) == -1){
	         blnResult = false;
	      }
	   }
	   return blnResult;
	}
	
	

