title: document.form.submit(); won't submit in safari
body: <p>I'm using a javascript function to submit my form.  This works in every browser except safari and I can't figure out why</p>
  
  <p>My javascript function looks like this</p>
  
  <pre><code>function submitForm() { 
      var selectBox = '';
      sel_guide_options = document.subForm.sel_guides;
  
      if (sel_guide_options.type == "select-multiple") {
           for (var i = 0; i &lt;sel_guide_options.options.length; i++) {
                sel_guide_options.options[i].selected = true;
           }
      } 
  
      document.subForm.submit();
  }
  </code></pre>
  
  <p>and in my form I use this</p>
  
  <pre><code>&lt;input type="submit" name="btnSubmit" value="#modification_type# #page_item#" id="btnSubmit" onclick="submitForm();"&gt;
  </code></pre>