function InitPreventDoubleClick(){$("form[data-ajax=true]:not([data-ajax-begin])").each(function(){$(this).attr("data-ajax-begin","return AllowFormSubmit('"+$(this).attr("id")+"');");$(this).attr("data-ajax-complete")?$(this).attr("data-ajax-complete","ClearFormSubmit('"+$(this).attr("id")+"');"+$(this).attr("data-ajax-complete")):$(this).attr("data-ajax-complete","ClearFormSubmit('"+$(this).attr("id")+"');")})}function InitFormValidation(n){$.validator.setDefaults({ignore:".val-ignore",highlight:function(n){$(n).closest(".FormElement").addClass("has-error")},unhighlight:function(n){$(n).closest(".FormElement").removeClass("has-error")}});$.validator.unobtrusive.parse($("#"+n))}function AllowFormSubmit(n){return $("#"+n).attr("data-ajax-busy")?!1:($("#"+n).each(function(){$(this).attr("data-ajax-busy",!0)}),!0)}function ClearFormSubmit(n){$("#"+n).removeAttr("data-ajax-busy")}function hideBtnLoader(n,t){$(n).removeClass("loading");$(n).prop("disabled",!1);$(n).text(t)}function showBtnLoader(n){var t=$(n).width(),i=$(n).height();$(n).width(t).height(i);$(n).addClass("loading");setTimeout(function(){$(n).prop("disabled",!0)},1);$(n).empty();$(n).removeAttr("data-tealium-id")}