function submit_custom_form(){custom_form_submitted.find("input[type=submit]").click()}function reset_captcha(){grecaptcha.reset()}function init_custom_form(n){function t(){custom_form_submitted.find(".custom-form-submit").hide();custom_form_submitted.find(".custom-form-loading").show()}function i(){$(n).each(function(){render_custom_form($(this))});custom_form_submitted.data("submitting",!1);custom_form_submitted.find(".custom-form-loading").hide();custom_form_submitted.find(".custom-form-sent").show();custom_form_submitted=null;grecaptcha.reset();typeof formCallback=="function"&&formCallback()}$(n).each(function(){render_custom_form($(this))});$(n+" .custom-form-submit").each(function(){$(document).on("click","#"+$(this).attr("id"),function(n){if(n.preventDefault(),custom_form_submitted=$(this).closest(".custom-form"),custom_form_submitted.data("submitting"))return!1;custom_form_submitted.data("submitting",!0);grecaptcha.execute();setTimeout(function(){$("iframe[title='recaptcha challenge']").parent().css({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",margin:"0"})},200)})});isDesignMode||(Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(t),Sys.WebForms.PageRequestManager.getInstance().add_endRequest(i))}function render_custom_form(n){n.find(".form-control").removeClass("form-control");n.find("label").addClass("form-control");n.find(".datepicker-wrapper input").addClass("input-datepicker");n.find(".radio-wrapper span.EditingFormLabel, .checkbox-wrapper span.EditingFormLabel").removeClass("EditingFormLabel").addClass("form-control");n.find(".radio-wrapper div.EditingFormControlNestedControl > span, .checkbox-wrapper div.EditingFormControlNestedControl > span").addClass("input-group");n.find(".radio-wrapper.style-2, .checkbox-wrapper.style-2").removeClass("style-2").find("span.input-group").addClass("style-2");n.find(".radio-wrapper input[type=radio]").each(function(){var t=$(this),n=t.next("label");t.is(":checked")&&n.addClass("checked");n.removeClass("form-control");n.append(t);n.append($('<\/span>'));n.on("click",function(){$(this).siblings().removeClass("checked").end().addClass("checked")})});n.find(".checkbox-wrapper input[type=checkbox]").each(function(){var n=$(this),t=n.next("label");n.is(":checked")&&t.addClass("checked");t.removeClass("form-control");t.append(n);t.append($('<\/span>'));n.on("click",function(){var n=$(this).parent("label");n.hasClass("checked")?n.removeClass("checked"):n.addClass("checked")})});n.find(".input-datepicker").datepicker({format:"dd/mm/yyyy",weekStart:0,startDate:new Date,language:locale});n.find(".checkbox-control input[type=checkbox]").each(function(){var i=$(this),r=i.closest(".checkbox-control");r.removeClass("checkbox-control");var t=r.find(".form-group"),u=t.find(">span").html(),n=$("