验证通过不了 帮忙看下 谢谢
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>验证用户信息</title>
</head>
<script src="tw-sack.js"></script>
<script language="javascript">
function checkName(obj){
var oform =obj.form;
var sname = obj.value;
var ajax=new sack();
ajax.setVar("username",sname);
ajax.requestFile= "checkuser.html";
ajax.method="POST"
ajax.element="errors";
ajax.runAJAX();
}
</script>
<body>
<form name="form1" action="register.php" method="post">
<table>
<tr>
<td colspan="2" id= "errors"></td>
</tr>
<tr>
<td> 用户名:</td><td><input type="text" name="username" onblur="checkName(this)" /></td><td>中文或英文输入</td>
</tr>
</table>
</form>
</body>
</html>
checkuser.html
<html>
<head>
<title>checkuser</title>
</head>
<body>
<font color="red"> error!</font>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>验证用户信息</title>
</head>
<script src="tw-sack.js"></script>
<script language="javascript">
function checkName(obj){
var oform =obj.form;
var sname = obj.value;
var ajax=new sack();
ajax.setVar("username",sname);
ajax.requestFile= "checkuser.html";
ajax.method="POST"
ajax.element="errors";
ajax.runAJAX();
}
</script>
<body>
<form name="form1" action="register.php" method="post">
<table>
<tr>
<td colspan="2" id= "errors"></td>
</tr>
<tr>
<td> 用户名:</td><td><input type="text" name="username" onblur="checkName(this)" /></td><td>中文或英文输入</td>
</tr>
</table>
</form>
</body>
</html>
checkuser.html
<html>
<head>
<title>checkuser</title>
</head>
<body>
<font color="red"> error!</font>
</body>
</html>