var ml=ml||{};ml.finance=function($){var $financeForm=$(".js-finance-form");$financeForm.ajaxForm({rules:{firstAndLast:{required:!0,firstAndLastSingleField:!0,noHTML:!0},emailAddress:{required:!0,email:!0},cellPhone:{required:!0,customPhoneUSandInternational:!0},comments:{noHTML:!0,minlength:5,maxlength:1e3}},messages:{firstAndLast:{required:ml.messages.error.firstAndLastRequired,firstAndLastSingleField:ml.messages.error.firstAndLastRequired,noHTML:ml.messages.error.nameInvalid},emailAddress:{required:ml.messages.error.emailRequired},cellPhone:{required:ml.messages.error.phoneRequired},comments:{minlength:ml.messages.error.financeQuestionMinLength,maxlength:ml.messages.error.financeQuestionMaxLength}},success:function(result){window.grecaptcha&&grecaptcha.reset(),result.form&&result.form.failed&&result.form.failed.length>0||result.redirectUrl&&(window.location=result.redirectUrl)}}),$financeForm.on("beforeSubmit",(function(event){var $form=$(event.target);handle_grecaptcha_presubmit($form,".js-page-message-placeholder")||window.scrollTo(0,0)}))}(jQuery);