紧急求助关于用Javascipt编写表单提交的问题
我编写了一个表单,但进行提交时却不能够进行提交,请各位高手帮我看看问题出在什么地方,谢谢
Untitled-2.asp
<script language= "javascript ">
function check()
{
if (document.form1.id.value== " ")
{
alert( "对不起,记录号未填写,请填写! ");
document.form1.id.focus()
return false;
}
if (document.form1.wtdw.value== " ")
{
alert( "对不起,送检单位未选择,请选择! ");
document.form1.wtdw.focus()
return false;
}
if (document.form1.sbmc.value== " ")
{
alert( "对不起,设备名称未选择,请选择! ");
document.form1.sbmc.focus()
return false;
}
form1.Submit
}
</script>
<style type= "text/css ">
<!--
.STYLE1 {font-size: 12px}
.STYLE2 {font-size: 16px}
.STYLE3 {font-size: 12px}
-->
</style>
<form name= "form1 " method= "post " action= "Untitled-2-1.asp " >
<table width= "100% " border= "0 " cellspacing= "1 " cellpadding= "2 ">
<tr bgcolor= "#4E5960 ">
<td height= "20 " align= "center " class= "heading "> <font color= "#FFFFFF " class= "STYLE2 "> <b> 证 书 / 报 告 录 入 </b> </font> </td>
</tr>
</table>
<table width= "100% " border= "1 " cellspacing= "0 " cellpadding= "1 " bordercolordark= "#FFFFFF " bordercolor= "#000000 ">
<tr>
<td colspan= "2 " bgcolor= "#bfbfbf ">
<div align= "left " class= "STYLE2 "> 测量设备信息 </div> </td>
</tr>
<tr>
<td width= "18% " bgcolor= "#bfbfbf ">
<div align= "center " class= "STYLE2 "> id: </div> </td>
<td width= "82% " bgcolor= "#efefef ">
<input name= "id " type= "text " class= "STYLE2 " value= " " size= "20 " maxlength= "20 "> </td>
</tr>
<tr> <