
function ValidateForm()
{
  var strErr = "";
  if (document.getQuoteForm.type.value == "none"){
    strErr = strErr + "You must select an insurance type.\n";
  }

  if (document.getQuoteForm.zip.value.search(/^\d{5}/) == -1) {
    strErr = strErr + "Zip Code is required and must be in the format 00000.\n";
  }
  
if (strErr != "") {
    alert(strErr);
    return false;
  }
  else{
	   if (document.getQuoteForm.type.value == "Life")
		{    document.forms[0].action = '/ia/life/?zipcode='+document.forms[0].zip.value+'&c=QCenterMain'  }
    return true;
  }
}