<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function check()
{
if(checkspace(document.admininfo.admin.value)) {
document.admininfo.admin.focus();
alert("管理员用户名不能为空!");
return false;
}
if(checkspace(document.admininfo.UserPassword.value)) {
document.admininfo.UserPassword.focus();
alert("密码不能为空!");
return false;
}
if(checkspace(document.admininfo.passcode.value)) {
document.admininfo.passcode.focus();
alert("验证码不能为空!");
return false;
}
document.admininfo.submit();
}
//-->
</script>