<html>
<script language="javascript">
function 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>