Join Mailing List

Living Waters Sign-up
Last Name*
First Name
Email
Mobile

var mndFileds=new Array(‘Last Name’);var fldLangVal=new Array(‘Last Name’);function reloadImg(){if(document.getElementById(‘imgid’).src.indexOf(‘&d’) !== -1 ){document.getElementById(‘imgid’).src=document.getElementById(‘imgid’).src.substring(0,document.getElementById(‘imgid’).src.indexOf(‘&d’))+’&d’+new Date().getTime();}else{document.getElementById(‘imgid’).src = document.getElementById(‘imgid’).src+’&d’+new Date().getTime();}}function checkMandatery(){for(i=0;i<mndFileds.length;i++){ var fieldObj=document.forms['WebToLeads1148406000000068031'][mndFileds[i]];if(fieldObj) {if(((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0){alert(fldLangVal[i] +' cannot be empty'); fieldObj.focus(); return false;}else if(fieldObj.nodeName=='SELECT'){if(fieldObj.options[fieldObj.selectedIndex].value=='-None-'){alert(fldLangVal[i] +' cannot be none'); fieldObj.focus(); return false;}} else if(fieldObj.type =='checkbox'){ if (fieldObj.checked == false){ alert('Please accept '+fldLangVal[i]); fieldObj.focus();return false;}}}}}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s