title: Form Validator to check option and select check not functioning
body: <p>I am having a issue with this script, I need the Form Validator as programed on the bottom to first check whether the radio with the select is targeted and then and only then request a time from that specific radios dropdown. It seem to be complete if i can get the:</p>
  
  <pre><code>if (document.getElementById('first').checked) {
      frmvalidator.addValidation("selects", "dontselect=000", "select a time");
  }
  </code></pre>
  
  <p>statement work in javascript but as it only look for a time when its true but i seem to be missing something. Please assist</p>
  
  <pre><code>&lt;form method="POST" name="contactform" id="contactform" action="contact-form-handler.php"&gt;
    &lt;div&gt;
      &lt;div style="float:left; width:420px;";&gt;
        &lt;input type="radio" name="radios" id="first" value="SELECT" /&gt; Attending a GROUP Intro      to Meditation ($15) on: &lt;br/&gt;
        &lt;select name="selects"id="selects"&gt;
          &lt;option value="000"&gt;Select a Date&lt;/option&gt;
          &lt;option value="2"&gt;April 23rd, TUES at 7:00PM - Group Intro to Meditation&lt;/option&gt;
          &lt;option value="3"&gt;April 27th, SAT at 11:00AM - Group Intro to Meditation&lt;/option&gt;
          &lt;option value="4"&gt;May 1st, WED at 7:00PM - Group Intro to Meditation&lt;/option&gt;
          &lt;option value="5"&gt;May 7th, TUES at 7:00PM - Group Intro to Meditation&lt;/option&gt;
    &lt;/select&gt;
        &lt;br&gt;
        &lt;input type="radio" name="radios" value="radio1" /&gt; Scheduling a PRIVATE Intro to    Meditation ($200) &lt;br/&gt;
        &lt;input type="radio" name="radios" value="radio2" /&gt; Scheduling an Individual Consultation ($300 / $475) &lt;br/&gt;
        &lt;input type="radio" name="radios" value="radio3" /&gt; GIFT a Mentoring Session - 2 hr ($350) &lt;br&gt;
        &lt;input type="radio" name="radios" value="radio4" /&gt; Corporate Programs &lt;br/&gt;
        &lt;input type="radio" name="radios" value="radio5" /&gt; Pro Bono Programs &lt;br/&gt;
        &lt;input type="radio" name="radios" value="radio6" /&gt; General Inquiry &lt;br/&gt;
        &lt;input type="radio" name="radios" value="radio7" /&gt; Receiving Information on Future      Intro Dates&lt;br/&gt;
      &lt;/div&gt;
      &lt;div style="float:left";&gt;
        &lt;label for='name'&gt;Your Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/label&gt;
        &lt;input type="text" name="name"&gt; &lt;br&gt;
        &lt;label for='email'&gt;Email Address:&amp;nbsp;&lt;/label&gt;
        &lt;input type="text" name="email"&gt; &lt;br&gt;
        &lt;label for='confirm_email'&gt;Confirm Email:&lt;/label&gt;
        &lt;input type="text" name="confirm_email"&gt; &lt;br&gt;
        &lt;label for='email'&gt;Contact #:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/label&gt;
        &lt;input type="text" name="contact"&gt; &lt;br&gt;
        &lt;label for='message'&gt;Message:&lt;/label&gt; &lt;br&gt;
        &lt;textarea rows="8" cols="35" name="message";&gt;&lt;/textarea&gt;
        &lt;input type="submit" value="Submit"&gt;&lt;br&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;tr&gt;
    &lt;td&gt;
      &lt;script language="JavaScript"&gt;
        // Code for validating the form
        // Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
  
        // for details
        var frmvalidator  = new Validator("contactform");
        frmvalidator.addValidation("name","req","Please provide your name"); 
        frmvalidator.addValidation("email","req","Please provide your email"); 
        frmvalidator.addValidation("email","email","Please enter a valid email address"); 
  
        //frmvalidator.addValidation("selects","dontselect=000","select a time");
        var chktestValidator = new Validator("contactform"); 
  
        //chktestValidator.addValidation("radios","selectradio","Please select an option"); 
        chktestValidator.addValidation("radios","selone", "Please select a plan");
  
        if(document.getElementById('first').checked) {
          frmvalidator.addValidation("selects","dontselect=000","select a time");
        }
    &lt;/script&gt;
  </code></pre>