<script language="javascript">
function isNull(obj,str){
if(obj.value.length==0){
alert(str+"不能为空");
return true;
}
return false;
}
function validateControls(theForm){
if(isNull(theForm.taskCode,"采购任务单号")){
return false;
}
if(isNull(theForm.projectName,"项目名称")){
return false;
}
if(isNull(theForm.projectCode,"项目编号")){
return false;
}
if(isNull(theForm.expirationDate,"截止时间")){
return false;
}
if(isNull(theForm.quoteStartTime,"报价开始时间")){
return false;
}
alert("2------------------------");
}
function Next(theForm){
alert("1------------------------");
validateControls(theForm);
alert("3------------------------");
theForm.submit();
}
</script>