function CheckMultiple11(frm, name) { for (var i=0; i < frm.length; i++) { fldObj = frm.elements[i]; fldId = fldObj.id; if (fldId) { var fieldnamecheck=fldObj.id.indexOf(name); if (fieldnamecheck != -1) { if (fldObj.checked) { return true; } } } } return false; } function CheckForm11(f) { if (f.email.value == "") { alert("Please enter your email address."); f.email.focus(); return false; } lists_chosen = CheckMultiple11(f, "lists"); if (!lists_chosen) { alert("Please choose some contact lists to subscribe to"); return false; } lists_chosen = CheckMultiple11(f, "lists"); if (!lists_chosen) { alert("Please choose some contact lists to subscribe to"); return false; } var fname = "CustomFields_3_11"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field First Name"); fld.focus(); return false; } var fname = "CustomFields_4_11"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Last Name"); fld.focus(); return false; } var fname = "CustomFields_7_11"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Telephone"); fld.focus(); return false; } CheckNum = parseInt(fld.value); if(fld.value != "" && isNaN(CheckNum)) { alert("Please enter a numeric value for field Telephone"); fld.select(); fld.focus(); return false; } var fname = "CustomFields_9_11"; var fld = document.getElementById(fname); if (fld.selectedIndex == -1 || fld.selectedIndex == 0) { alert("Please choose an option for field Type of Surgery"); fld.focus(); return false; } var fldcheck = CheckMultiple11(f, "CustomFields[21_11]"); if (!fldcheck) { alert("Please choose an option for field Allow GDPR"); return false; } return true; };
Hyper-Advertiser The True Original Hyper Active Viral Adverting system, Which can truly revolutionize YOUR Internet Marketing efforts.
Showing posts with label April 28. Show all posts
Showing posts with label April 28. Show all posts
Saturday, 28 April 2018
testing
Subscribe to:
Posts (Atom)