function BindRecaptcha(){$("form input[type=submit]").each(function(){var n='<div class="g-recaptcha" data-sitekey="[SiteKey]" data-callback="SubmitRecaptchaForm" data-size="invisible" style="display: none;"><\/div>',t;n=n.replace("[SiteKey]",$("#recaptchaSiteKey").val());$(this).before(n);t=$(this).parents("form:first");$(t).submit(function(n){$("#"+t[0].id).valid()&&(grecaptcha.getResponse()||(n.preventDefault(),grecaptcha.execute()))});$(this).click(function(){FormObj=$(this).parents("form:first")})})}function SubmitRecaptchaForm(n){var t=$(FormObj);t.append("<input type='hidden' name='__captcha' value='"+n+"' />");t.find("[type=submit], fieldset[aria-hidden=false] .btn-prev").prop("disabled",!0);t.submit()}var FormObj=null;BindRecaptcha()