function ValidateLogin(toInput)
	{ 
		var ns4 = (document.layers)? true:false
		var ie4 = (document.all)? true:false
		var keycode = event.keyCode;

		if (keycode == 13)
			{
			if (toInput.name == "TxtUserId") 
				{
				if (toInput.value != "")
					{document.Form1.TxtPassword.focus();}
				else
					{alert("You must enter a Login Id.");}
				}
			if (toInput.name == "TxtPassword")
				{
				if (toInput.value != "")
					{document.Form1.cmdLogin.click();}
				else
					{alert("You must enter a Password.");} 
				}
			if (ns4) return false;
			if (ie4) event.returnValue = false;
			}
	}


