<script type="text/javascript">
function isDigit()
{
var s =document.zhengWanForm.wktime.value;
var c = document.zhengWanForm.wdtime.value;
var patrn=/^[0-9]{1,20}$/;
if (!patrn.exec(s)) {
alert("请输入数字!!!");
document.zhengWanForm.wktime.value=60;
}
if(!patrn.exec(c)){
alert("请输入数字!!");
document.zhengWanForm.wdtime.value=60;
}
}
</script>
posted on 2008-12-18 18:53
glorytao 阅读(66)
评论(0) 编辑 收藏