<!--hide this script from non-javascript-enabled browsers


function Start(page) {
OpenWin = this.open(page, "_blank", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,height=341");
}

function validateFormInd() 
{
 var okSoFar=true
 with (document.individual)
 {
  
  var fixedIC = elements['IndivCoverage[]'];
  if (fixedIC.selectedIndex < 0 && okSoFar)
  {
    okSoFar=false
    alert("A Coverage Choice is required.")
    fixedIC.focus()
  }
 
  if (fixedIC.selectedIndex >= 0 && okSoFar)
  {
    var isLife=false
    for (var i = 0; i < fixedIC.options.length; i++)
    {
       
       if (fixedIC.options[i].selected && fixedIC.options[i].value=="Life and ADandD")
       {
          isLife=true
          //alert("index = " + i + " and value = " + fixedIC.options[i].value)
        
       }
    }
  }
  if (isLife && !Universal.checked && !Term.checked && !Second_to_Die.checked && !Not_Sure.checked && okSoFar)
  {
     okSoFar=false
     alert("A Life Insurance Type is required if you select Life Coverage.")
     Universal.focus()
  }

  var isTobacco=false
  for (var i = 0; i < Tobacco.length; i++)
  {
       
     if (Tobacco[i].checked)
     {
        isTobacco=true
     }
  }

  if (isLife && !(isTobacco) && okSoFar)
  {
     okSoFar=false
     alert("An answer to he Tabacco question is required if you select Life Coverage.")
  }

 
  if (Name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Full Name is required.")
    Name.focus()
  }
 
  if (Address.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Address is required.")
    Address.focus()
  }

  if (DOB.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Date of Birth is required.")
    DOB.focus()
  }

  if (DayPhone.value=="" && EvePhone.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Daytime or Evening Phone is required.")
    DayPhone.focus()
  }

  var foundAt = Email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("A valid Email Address is required.")
    Email.focus()
  }
  var e1 = Email.value
  var e2 = Email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("The E-mail Addresses you entered do not match.  Please re-enter.")
    Email.focus()
  }

  if (okSoFar==true)  document.individual.submit();
 }
}


function validateFormGrp() 
{
 var okSoFar=true
 with (document.group)
 {
  
  var fixedIC = elements['GroupCoverage[]'];
  if (fixedIC.selectedIndex < 0 && okSoFar)
  {
    okSoFar=false
    alert("A Coverage Choice is required.")
    fixedIC.focus()
  }
 
 
  if (Company.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Company Name is required.")
    Company.focus()
  }
 
  if (Name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("A Contact Name is required.")
    Name.focus()
  }
 
  if (Address.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Address is required.")
    Address.focus()
  }

  if (BusinessNature.value=="" && okSoFar)
  {
    okSoFar=false
    alert("The nature of your business is required.")
    BusinessNature.focus()
  }

  if (NumberEmployees.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your number of employees is required.")
    NumberEmployees.focus()
  }

  if (DayPhone.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Daytime Phone is required.")
    DayPhone.focus()
  }

  var foundAt = Email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("A valid Email Address is required.")
    Email.focus()
  }
  var e1 = Email.value
  var e2 = Email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("The E-mail Addresses you entered do not match.  Please re-enter.")
    Email.focus()
  }

  if (okSoFar==true)  document.group.submit();
 }
}

function validateFormCnt() 
{
 var okSoFar=true
 with (document.contact)
 {
  
  if (Name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Your Full Name is required.")
    Name.focus()
  }
 
  var foundAt = Email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("A valid Email Address is required.")
    Email.focus()
  }
  var e1 = Email.value
  var e2 = Email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("The E-mail Addresses you entered do not match.  Please re-enter.")
    Email.focus()
  }
  
  if (Comments.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your comment or question.")
    Comments.focus()
  }

  if (okSoFar==true)  document.contact.submit();
 }
}


/*

<form name="phpformmailer_old" action="" align="center" method="POST">
<input type="hidden" name="from_form">
  <div align="center"><center><table bgcolor="#F2F2F2" width="528" cellspacing="6">
    <tr>
      <td align="right" width="159" class="title">Your name:</td>
      <td width="349"><input class="inputc" size="29" name="name"></td>
    </tr>
    <tr>
      <td align="right" width="159" class="title"><span class="req">*</span> Your email address:</td>
      <td align="left" width="349"><input class="inputc" size="29" name="email"></td>
    </tr>
    <tr align="middle">
      <td align="right" width="159" class="title"><span class="req">*</span> Confirm email
      address:</td>
      <td width="349" align="left"><input class="inputc" size="29" name="email2"></td>
    </tr>
    <tr>
      <td align="right" width="159" class="title"><span class="req">*</span> Subject:</td>
      <td width="349"><input class="inputc" size="29" name="thesubject"></td>
    </tr>
    <tr>
      <td align="right" width="159" class="title"><span class="req">*</span> Your request or query:</td>
      <td width="349"><textarea class="inputc" name="themessage" rows="7" cols="34"></textarea></td>
    </tr>
    <tr>
      <td width="159"></td>
      <td width="349">

      <input type="button" class="button" value="Send" name="B1" ONCLICK="javascript:validateForm()"><span class="req"> The fields marked with * are required.</span></td>
    </tr>
  </table>
  </center></div>
</form>
</body>
</html>




*/

function validateFormOld() //goes with form commented out above
{
 var okSoFar=true
 with (document.phpformmailer_old)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("Email addresses you entered do not match.  Please re-enter.")
    email.focus()
  }
  if (thesubject.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the subject.")
    thesubject.focus()
  }
  if (themessage.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the details for your enquiry.")
    themessage.focus()
  }
  if (okSoFar==true)  submit();
 }
}


// stop hiding -->


