if (thisform.skno.value.length < 1)
{alert("请输入考生号!");
thisform.skno.focus();
return false; }
if (thisform.sscore.value.length <1)
{
alert("考分不能为空!");
thisform.sscore.focus();
return false;
}
if (thisform.sname.value.length>18)
{
alert("没有这么长的考生号吧?!");
thisform.skno.focus();
return (false);
}
if (thisform.skno.value.length>0)
{
var checkOK10 = "0123456789";
var checkStr10 = thisform.skno.value;
var allValid10 = true;
for (i = 0; i < checkStr10.length; i++)
{
ch = checkStr10.charAt(i);
for (j = 0; j < checkOK10.length; j++)
if (ch == checkOK10.charAt(j))
break;
if (j == checkOK10.length)
{
allValid10 = false;
break;
}
}
if (thisform.skno.value.length>14)
{
allValid10 = false;
}
if (!allValid10)
{
alert("你输入的考生号无效!");
thisform.skno.focus();
return (false);
}
}
if (thisform.sscore.value.length>9)
{
alert("成绩输入错误!");
thisform.sscore.focus();
return (false);
}
if (thisform.sscore.value.length>0)
{
var checkOK10 = ".0123456789";
var checkStr10 = thisform.sscore.value;
var allValid10 = true;
for (i = 0; i < checkStr10.length; i++)
{
ch = checkStr10.charAt(i);
for (j = 0; j < checkOK10.length; j++)
if (ch == checkOK10.charAt(j))
break;
if (j == checkOK10.length)
{
allValid10 = false;
break;
}
}
if (thisform.sscore.value.length>8)
{
allValid10 = false;
}
if (!allValid10)
{
alert("你输入的成绩无效!");
thisform.sscore.focus();
return (false);
}
}
if (thisform.saddress.value.length < 1)
{alert("请输入您的联系地址!");
thisform.saddress.focus();
return false; }
if (thisform.saddress.value.length>50)
{
alert("没有这么长的地址吧?!");
thisform.saddress.focus();
return (false);
}
if (thisform.spostnumber.value.length < 1)
{alert("请输入邮政编码!");
thisform.spostnumber.focus();
return false; }
if (thisform.spostnumber.value.length>9)
{
alert("没有这么长的邮政编码吧?!");
thisform.spostnumber.focus();
return (false);
}
if (thisform.spostnumber.value.length>0)
{
var checkOK10 = "0123456789";
var checkStr10 = thisform.spostnumber.value;
var allValid10 = true;
for (i = 0; i < checkStr10.length; i++)
{
ch = checkStr10.charAt(i);
for (j = 0; j < checkOK10.length; j++)
if (ch == checkOK10.charAt(j))
break;
if (j == checkOK10.length)
{
allValid10 = false;
break;
}
}
if (thisform.spostnumber.value.length>8)
{
allValid10 = false;
}
if (!allValid10)
{
alert("你输入的邮政编码无效!");
thisform.spostnumber.focus();
return (false);
}
}
if (thisform.sreceiver.value.length < 1)
{alert("请输入收信人!");
thisform.sreceiver.focus();
return false; }
if (thisform.sreceiver.value.length>18)
{
alert("没有这么长的收信人姓名吧?!");
thisform.sreceiver.focus();
return (false);
}
if (thisform.sphone.value.length < 1)
{alert("请输入联系电话!");
thisform.sphone.focus();
return false; }
if (thisform.sphone.value.length>18)
{
alert("没有这么长的联系电话吧?!");
thisform.sphone.focus();
return (false);
}
if (thisform.sphone.value.length>0)
{
var checkOK10 = "0123456789-";
var checkStr10 = thisform.sphone.value;
var allValid10 = true;
for (i = 0; i < checkStr10.length; i++)
{
ch = checkStr10.charAt(i);
for (j = 0; j < checkOK10.length; j++)
if (ch == checkOK10.charAt(j))
break;
if (j == checkOK10.length)
{
allValid10 = false;
break;
}
}
if (thisform.sphone.value.length>11)
{
allValid10 = false;
}
if (!allValid10)
{
alert("你输入的联系电话无效!");
thisform.sphone.focus();
return (false);
}
}
if (thisform.sidenty.value.length <16)
{alert("请输入您的身份证号!");
thisform.sidenty.focus();
return false; }
if (thisform.sidenty.value.length>23)
{
alert("没有这么长的身份证号吧?!");
thisform.sidenty.focus();
return (false);
}
}
// -->
</SCRIPT>