DebtCare Logo

jQuery(document).ready(function(){ jQuery("#first").focusout(function() { var string = jQuery("#first_name").val(); if(string.search("http://") != -1){ jQuery("#form").attr("action","https://debtcare.ca/spam-filter/"); } }); jQuery("#last").focusout(function() { var string = jQuery("#last_name").val(); if(string.search("http://") != -1){ jQuery("#form").attr("action","https://debtcare.ca/spam-filter/"); } }); jQuery("#email_address").focusout(function() { var string = jQuery("#email").val(); if(string.search("http://") != -1){ jQuery("#form").attr("action","https://debtcare.ca/spam-filter/"); } }); jQuery("#inquiry").focusout(function() { var string = jQuery("#00NE00000027a8b").val(); if(string.search("http://") != -1){ jQuery("#form").attr("action","https://debtcare.ca/spam-filter/"); } }); }); function verifyMe() { if(jQuery("#first_name").val() == '' && jQuery("#last_name").val() == '' && jQuery("#email").val() == '' ) { alert("Please fill out both the name and email fields"); return false; } if(jQuery("#first_name").val() == '' || jQuery("#last_name").val() == '') { alert("Please fill out the name field"); return false; } if(jQuery("#email").val() == '') { alert("Please fill out the email field"); return false; } var nameRegEx = /^[a-zA-Zs]+$/; if (nameRegEx.test(jQuery("#first_name").val()) == false) { alert("Please fill out alphabets only for first name."); return false; } if (nameRegEx.test(jQuery("#last_name").val()) == false) { alert("Please fill out alphabets only for last name."); return false; } // var regex = /^(([^()[].,;:s@"]+(.[^()[].,;:s@"]+)*)|(".+"))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/; // if(regex.test(jQuery("#email").val()) == false) // { // alert("Please fill out a valid email"); // return false; // } var emailValue = jQuery("#email").val(); var atpos = emailValue.indexOf("@"); var dotpos = emailValue.lastIndexOf("."); if (atpos<1 || dotpos=emailValue.length) { alert("Please fill out a valid email"); return false; } var phoneValue = jQuery("#phone").val(); if (phoneValue != '') { var phoneRegExp = /^([2-9])([0-9]{9})$/ if (phoneRegExp.test(phoneValue) == false) { alert("Please fill out a valid phone. (10 numbers) "); return false; } } var thePage; if(window.location.pathname == "/contact-us/"){ thePage = "Contact Us Page"; } else { thePage = "Home Page"; } _gaq.push(['_trackEvent', 'Click', 'Submit', thePage]); //alert("sending request..."); return true; }
<!-- --> <!-- <!--
-->

First Name

<!--
-->

Last Name

<!--
-->

Email

<!--
-->

Phone

A DebtCare Financial Specialist will contact you within 1 business day to book your free consultation.