改成用按钮提交,
<input type="button" onclick="sbt()">
function sbt(){
 if(true){
form1.submit();
}
else{
alert("");
}
}