title: Radio button required - JavaScript validation
body: <p>I know nothing of JavaScript.
  I had to add a group of two radio buttons to an HTML form with values "yes" and "no".
  Now I need to make them "required"
  There are several other required fields in the form and this piece of JavaScript:</p>
  
  <pre><code>    &lt;SCRIPT LANGUAGE="JavaScript"&gt;
  &lt;!--
  reqd_fields = new Array();
  reqd_fields[0] = "name";
  reqd_fields[1] = "title";
  reqd_fields[2] = "company";
  reqd_fields[3] = "address";
  reqd_fields[4] = "city";
  reqd_fields[5] = "state";
  reqd_fields[6] = "zip";
  reqd_fields[7] = "phone";
  reqd_fields[8] = "email";
  reqd_fields[9] = "employee";
  
  function validate(form_obj) {
    if (test_required &amp;&amp; !test_required(form_obj)) {
      return false;
    }
  </code></pre>
  
  <p>It was done by someone else, not me.
  What I did is just added my field to this array, like this:</p>
  
  <pre><code>reqd_fields[10] = "acknowledge";
  </code></pre>
  
  <p>However it doesn't seem to be working.</p>
  
  <p>Please guide me as I am totally ignorant when it comes to JavaScript.</p>