/* Do not remove this code. */ function reloadImg2465328000002088046() { var captcha = document.getElementById('imgid2465328000002088046'); if(captcha.src.indexOf('&d') !== -1 ) { captcha.src = captcha.src.substring(0, captcha.src.indexOf('&d'))+'&d'+new Date().getTime(); }else{ captcha.src = captcha.src+'&d'+new Date().getTime(); } } function validateEmail2465328000002088046() { var form = document.forms['WebToLeads2465328000002088046']; var emailFld = form.querySelectorAll('[ftype=email]'); var i; for (i = 0; i < emailFld.length; i++) { var emailVal = emailFld[i].value; if((emailVal.replace(/^s+|s+$/g, '')).length!=0 ) { var atpos=emailVal.indexOf('@'); var dotpos=emailVal.lastIndexOf('.'); if (atpos<1 || dotpos=emailVal.length) { alert('Please enter a valid email address. '); emailFld[i].focus(); return false; } } } return true; }
function checkMandatory2465328000002088046() { var mndFileds = new Array('First Name','Last Name','Email','Phone','LEADCF3','LEADCF4','LEADCF11','LEADCF12'); var fldLangVal = new Array('Firstx20Name','Lastx20Name','Email','Phone','Subject','Message','Renovationx20Type','Address'); for(i=0;i