表单验证问题,在线等
<script language="VBscript">
sub check
if frm1.nc.value="" then
alert("请输入成立时间!")
focusto(0)
exit sub
end if
if frm1.txdz.value="" then
alert("请输入E-mail!")
focusto(1)
exit sub
end if
sub focusto(x)
document.frm1.elements(x).focus()
end sub
我还想加入在nc中判断时间的格式功能,要求符合2001-12-4这样的格式时间
还有在email里加入判断写的是否是email,也就是字符里一定要有@
而且@后面一定要有字符,请问怎么解决?在线等在线送分