请大侠帮看看
我编了一个程序用来检测输入的正确性,可是运行时我不输入任何值,但还不显示提示信息,请帮看看哪出错了,谢谢啦
<html>
<script language="javascript">
fuction checklogin()
{if((login.nickname.value!="")&&(login.password.value!=""))
return true
else {
alert("不能为空!")
return false
}}
</script>
<body>
<center><h2>haha</h2>
<form action="/ide/data/search1.php" method="post" name="login"
onsubmit="return checklogin()">
呢称:<input name="nickname" size=10><br>
密码:<input name="password" type="password" size=10><br>
<input name="submit" type="submit" value="登陆">
</form>
<hr>
<font color="#3300cc">首次登陆时<br>将自动注册</font>
</center>
</body>
</html>