;var RecaptchaController=new function(){this.DisplayRecaptcha=function(recaptureFinishButtonText,parentElt,onComplete,widgetId){if(typeof(window.RecaptchaRequired)!="undefined"&&window.RecaptchaRequired===false){if(typeof onComplete==="function"){onComplete();}
return;}
if(typeof onComplete==="function"){this.CheckRecaptcha=onComplete;}else{this.CheckRecaptcha=function(){};}
if(typeof(window.hcaptcha)==="undefined"){if(typeof(window.grecaptcha)==="undefined"){this.InitRecaptcha($("#RecaptchaContainer").attr("data-hl"));}else{window.grecaptcha.reset();}}else{window.hcaptcha.reset(widgetId);}
$("#RecaptureFinishButton").val(recaptureFinishButtonText);$('#RecaptchaErrorMessage').hide();RecaptchaController.RecapchaProgressBarDisplay(false);if(parentElt===null||parentElt===""||$(parentElt).length==0){displayModalPanel('RecaptchaContainer');}else{if($(parentElt).children().length==0){$("#RecaptchaContainer").appendTo(parentElt);}
$(parentElt).show();$("#RecaptchaContainer").show();}};this.RecapchaProgressBarDisplay=function(displayFlag){if(displayFlag){$('#RecaptureCheckingDiv').show();$('#RecaptureFinishButton').addClass("disabled");$('#RecaptchaErrorMessage').hide();}else{$('#RecaptureCheckingDiv').hide();$('#RecaptureFinishButton').removeClass("disabled");}};this.InitRecaptcha=function(datahl){var script=document.createElement('script');script.type='text/javascript';script.async=false;script.src=['https://www.recaptcha.net/recaptcha/api.js?hl=',datahl].join('');var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(script,s);};};