title: OnSubmit is not working in IE 8
body: <p>Everything was working fine in Internet Explorer 6 but it's not in Internet Explorer 8. I will appreciate help from anybody. I want to know what I should change to make it work in IE8.</p>
  
  <p>This is the code I am using in the form:</p>
  
  <pre><code>&lt;form METHOD="POST"
    ENCTYPE="multipart/form-data"
    name="form1"
    onSubmit="checkFileUpload(this,'GIF,JPG,JPEG',false,800,'','','','','','');return  document.MM_returnValue"&gt;
  </code></pre>
  
  <p>This is the javascript code I am using:</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
    function checkFileUpload(form, extensions, requireUpload, sizeLimit, minWidth, minHeight, maxWidth, maxHeight) { //v2.09
      document.MM_returnValue = true;
      for (var i = 0; i&lt;form.elements.length; i++) {
        field = form.elements[i];
        if (field.type.toUpperCase() != 'FILE') continue;
        checkOneFileUpload(field, extensions, requireUpload, sizeLimit, minWidth, minHeight, maxWidth, maxHeight);
      }
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks</p>