帮助我一下 谢谢了
<!-- javescript 函数validateLogin(),用来验证是否填写了用户名和密码; -->
<script language="javascript"><!--
function validateLogin(){
var strUserName=document.frmLogin.txtUserName.value;
var strPassword=document.frmLogin.txtPassword.value;
if (strUserName==""){
alter("请你输入姓名");
return false;
}
if(strPassword==""){
alter("请输入密码");
return false;
}
}
-->
</script>
</head>
<body>
<div align="center"><form action="verifyID.asp" method="post"
onSubmit="javescript:return validateLogin();">
<table width="34%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" scope="row">用户登陆</th>
</tr>
<tr>
<th scope="row">用户名</th>
<th scope="row"><input name="txtUserName" ></th>
</tr>
<tr>
<th scope="row">密码</th>
<th scope="row"><input name="txtPassword" type="password" id="txtPassword"></th>
</tr>
<tr>
<th colspan="2" scope="row"><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></th>
</tr>
</table>
</form></div>
</body>
</html>
为什么总是出现脚本错误!