function validate_crm(){ errors = ''; if(document.forms["crm_form_14"]["lead_name_last"].value == "") errors = errors + "\nThe Last Name field is required."; if(document.forms["crm_form_14"]["lead_name_first"].value == "") errors = errors + "\nThe First Name field is required."; if(document.forms["crm_form_14"]["lead_email"].value == "") errors = errors + "\nThe Email Address field is required."; if(document.forms["crm_form_14"]["lead_street_line_1"].value == "") errors = errors + "\nThe Address 1 field is required."; if(document.forms["crm_form_14"]["lead_postcode"].value == "") errors = errors + "\nThe Postcode field is required."; if(document.forms["crm_form_14"]["lead_town"].value == "") errors = errors + "\nThe Town field is required."; if(document.forms["crm_form_14"]["lead_county"].value == "") errors = errors + "\nThe County field is required."; if(document.forms["crm_form_14"]["lead_telephone"].value == "") errors = errors + "\nThe Telephone field is required."; if(document.forms["crm_form_14"]["lead_country"].value == "") errors = errors + "\nThe Country field is required."; if(errors != ""){ alert(errors); return false; } document.forms["crm_form_14"]["submit"].disabled = true; document.forms["crm_form_14"]["submit"].value = "Please Wait..."; return true; } document.write("
") document.write("
") document.write("

Fields marked with an asterisk (*) are mandatory

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("

") document.write("
") document.write("") document.write("

") document.write("") document.write("
")