<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="260" border="0" align="center" cellpadding="0" cellspacing="1" class="TableAll">
<tr>
<td height="30" align="center" class="TrTop"><%=TTitle%></td>
</tr>
<tr>
<td align="center" class="TrBody"><form action="user.asp" method="post" name="FrmSearch" target="_blank" id="FrmSearch" onSubmit="return Search()">
<table border="0" cellpadding="5" cellspacing="0" class="w9pt">
<tr>
<td height="15" align="right">会员登录:</td>
<td height="15"><input name="UserName" type="text" size="20"></td>
</tr>
<tr>
<td height="15" align="right">登录密码:</td>
<td height="15"><input name="password" type="password" id="password" size="20"></td>
</tr>
<tr>
<td height="15" colspan="2" align="center"><input type="submit" name="Submit" value="查询">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form></td>
</tr>
</table>
<script language="javascript">
function Search()
{
if(FrmSearch.username.value==""){
alert('请输入用户名');
FrmSearch.edunum.focus();
return false;
}
if(FrmSearch.password.value==""){
alert('请输入密码');
FrmSearch.yan.focus();
return false;
}
return true;
}
</script>
</body>
</html>
=======================================================================
出现了错误提示:
如下:
行: 37
字符: 1
错误: 'FrmSearch.username.value' 为空或不是对象
代码: 0