title: Validate multiple form with one javascript
body: <p>I have a page that has 6 forms that all have a value with the same name 'audit_id_upload'.  Currently I have one of them being validated (I'm just looking for empty values) with...</p>
  
  <pre><code>function validateForm()
  {
  var x=document.forms["audit_upload"]["audit_id_upload"].value;
  if (x==null || x=="")
    {
    alert("Please Select an Audit");
    return false;
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Can I adapt this to validate the other forms as well without having to repeat it 5 more times?</p>
  
  <p>Thanks </p>