title: Form 'onsubmit' not getting called
body: <p>Here's the part of my form:</p>
  
  <pre><code>&lt;form name='form-main' onsubmit='return validate()' action='' method='post'&gt;
      &lt;center&gt;&lt;input type='submit' onClick='this.disabled=true; this.form.submit();' value='I accept - Download the GM!'/&gt;&lt;/center&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and here's the <code>validate</code> function:</p>
  
  <pre><code>function validate()
  {
      // this is just to test if it actually shows
      alert('You must not leave any of the fields blank!');
      return false;
  }
  </code></pre>
  
  <p>Whenever I hit the submit button, nothing happens, the page just reloads.. I would like it so it shows the alert dialog.</p>