function CheckRequiredFields () {
  if (document.form.claims[0].checked == "" && document.form.claims[1].checked == "") {
  alert ("Please tell us if you've had any claims in the past 5 years");
  } else if (document.form.cont[0].checked == "" && document.form.cont[1].checked == "") {
  alert ("Please tell us if you've had continuous insurance for less than 3 years");
  } else if (document.form.insured[0].checked == "" && document.form.insured[1].checked == "") {
  alert ("Please tell us if you are uninsured now.");
  } else if (document.form.cancelled[0].checked == "" && document.form.cancelled[1].checked =="") {
  alert ("Please tell us if your insurance has been cancelled in the last 3 years");
  } else {
  process()
}
}
  
  function process(){
  if (document.form.claims[0].checked)
    {
    document.form.action="http://www.insurancehotline.com/scripts/startquote.pl?ref=lwood";
    document.form.submit();
    } else if (document.form.cont[0].checked)
    {
    document.form.action="http://www.insurancehotline.com/scripts/startquote.pl?ref=lwood";
    document.form.submit();
    }  else if (document.form.insured[0].checked)
    {
    document.form.action="http://www.insurancehotline.com/scripts/startquote.pl?ref=lwood";
    document.form.submit();
    }  else if (document.form.cancelled[0].checked)
    {
    document.form.action="http://www.insurancehotline.com/scripts/startquote.pl?ref=lwood";
    document.form.submit();
    } else {
    document.form.action="http://insurance-rates.ca/propertyquote.html";
  }
  }
