Test
function CheckMultiple22(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 CheckForm22(f) { if (f.email.value == "") { alert("Please enter your email address."); f.email.focus(); return false; }
var fname = "CustomFields_72_22"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Name"); fld.focus(); return false; }
var fname = "CustomFields_73_22"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Company"); fld.focus(); return false; }
var fname = "CustomFields_74_22"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Role"); fld.focus(); return false; }
var fname = "CustomFields_75_22"; var fld = document.getElementById(fname);
CheckNum = parseInt(fld.value); if(fld.value != "" && isNaN(CheckNum)) { alert("Please enter a numeric value for field Phone"); fld.select(); fld.focus(); return false; }
var fname = "CustomFields_76_22"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field City"); fld.focus(); return false; }
var fname = "CustomFields_77_22"; var fld = document.getElementById(fname); if (fld.value == "") { alert("Please enter a value for field Country"); fld.focus(); return false; }
return true; };
476 Comments
Jump to comment form | comments rss [?] | trackback uri [?]