<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> com </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="xxxxxxxxxx.css"></HEAD><BODY><script language="javascript">
function verify_cust(theform) {
    if (theform.id.value=="" && theform.password.value=="") 
    {
        alert("客户id号和密码项不能为空!");
        return false; 
    }
    if (theform.id.value=="") 
    {
        alert("请输入客户id号");
        return false; 
    } if(!isInteger(theform.id.value)){
        alert("客户id号只能是数字!");
        return false; 
    }
    if (theform.password.value=="") 
    {
        alert("请输入密码!");
        return false; 
    }
}
function isInteger(inputVal) {
   var iNumber;
   if (inputVal.length > 0) {
        iNumber = Number(inputVal);
        if (isNaN(iNumber))
            return false;
        else if (String(iNumber).indexOf(".") >= 0)
            return false;
    }
    return true;
}
</script>
<form method="POST" name="vbform" onSubmit="return verify_cust(this)" action="cust/login_form_output.php">
<!--
<input type="hidden" name="action" value="admin">
-->
  <table border="1" width="64%">
    <tr>
      <td width="42%">
        <p align="right">客户id号</p>
      </td>
      <td width="58%"><input type="text" name="id" size="20"></td>
    </tr>
    <tr>
      <td width="42%">
        <p align="right">密码</p>
      </td>
      <td width="58%"><input type="password" name="password" size="20"></td>
    </tr>
  </table>
  <p><input type="submit" value="提交" name="submit"><input type="reset" value="重置" name="reset"></p>
</form>
</body>
</html>试试