	function DoLogin()
	{  var v_strAlertMsg, v_strError
	   v_strAlertMsg = ""
	   v_strError = 0

	   with(document.frmLogin)
	   { 
			if(txtLogin.value == "") {
				v_strAlertMsg = "Please enter Login Name\n"
				v_strError = "txtLogin"
			}
			if(txtPassword.value=="") {
				v_strAlertMsg+= "Please enter Password"
				if(!v_strError) v_strError = "txtPassword"
			}
			if(v_strAlertMsg) {
				alert(v_strAlertMsg)
				eval(v_strError+".value=''")
				eval(v_strError + ".focus()")
				return false
			} else {
				hidPass.value = "Main";
				hidAction.value = "Submit";
				action = "http://www.reservation-system.net/frontpage-multi/default.asp?hotelcd=" + hotelcd.value;				
				return true;		
			}	   
	   }
	   
	}
	
	
	
	function DoForgotPass()
	{  with(document.frmLogin)
	   { 
		 hidAction.value = "";
	     hidPass.value = "Password";
		 action = "http://www.reservation-system.net/frontpage-multi/default.asp";	     
		 submit();
	   }
	   return true;
	}

	function DoSignUp()
	{  with(document.frmLogin)
	   { 
		 action = "http://www.reservation-system.net/hotel/m187/m187-h1.asp?hotelcd=" + hotelcd.value;	     
		 submit();
	   }
	   return true;
	}