Figure 1   The Submit Button Mystery


 <html>
 <head>
 </head>
 
 <body>
 
 <form  name="form1">
     <div align="center">
     <table>
         <tr>
             <td align="right" width="40%">Field 1:</td>
             <td width="40%"><input type="text" size="5"
             name="txtfield1">  </td>
         </tr>
         <tr>
             <td align="right" width="40%">Field 2:</td>
             <td width="40%"><input type="text" size="5"
             name="txtfield2">  </td>
         </tr>
     </table>
     </div>
 
 </form>
 
 <script language="vbscript">
 
 sub on_AddUpdate
     msgbox("here")
 end sub
 
 function form1_onsubmit
     on_AddUpdate
     form1_onsubmit = false
 end function
 </script>
 </body>
 </html>