Contact

if(requireName && frm.goodnews_name.value=="") { alert("Please provide name"); frm.goodnews_name.focus(); return false; }

if(frm.email.value=="" || frm.email.value.indexOf("@")<1 || frm.email.value.indexOf(".")<1) { alert("Please provide a valid email address"); frm.email.focus(); return false; } // check custom fields var req_cnt = frm.elements["required_fields[]"].length; // there's always at least 1 if(req_cnt > 1) { for(i = 0; i