function countCharLimit(n,t){var i=document.getElementById(n),r=document.getElementById(n+"Count"),u="",f;i!=null&&(i.value.length>t?i.value=i.value.substring(0,t):(f=t-i.value.length,f=="0"&&r!=null?(u='<font color="red"><b>Maximum characters limit reached.<\/b><\/font>',r.innerHTML=u):r!=null&&(u="You have <b>"+f+"<\/b> characters left.",r.innerHTML=u)))}function detectBrowser(){var i,r,n,t,u;for(u=navigator.userAgent,i=["Trident","Edge","MSIE","Opera","Chrome","Safari","Firefox"],r=n=0,t=i.length;0<=t?n<t:n>t;r=0<=t?++n:--n)if(u.indexOf(i[r])>-1)return i[r]}function detectVersion(n){var t=navigator.userAgent.split(n);return Number(t[1].split(".")[0])}function checkBrowserAndNotifyIfUnSupported(){var t,i,r=["Edge","Chrome","Safari","Firefox"],n=detectBrowser();if(r.indexOf(n)==-1){$("#aspcontent").html("<div><p style='margin:50px;'>We recommend using Modern Browser like Edge / Chrome / Firefox / Safari.<\/p><\/div>");return}r.indexOf(n)!=-1&&(t=detectVersion(n),n=="Chrome"?i=t<49:n=="Safari"?i=t<9:n=="Firefox"&&(i=t<45),i&&alert("You are using a very old version of "+n+". Kindly update the browser for using this platform."))}function clearInputValues(n){for(var i=n.length,t=0;t<i;t++)document.getElementById(n[t]).value=""}$.widget("ui.dialog",$.extend({},$.ui.dialog.prototype,{_title:function(n){this.options.title?n.html(this.options.title):n.html("&#160;")}}));jQuery(function(n){n(function(){n("#main-slider.carousel").carousel({interval:8e3})});n(".accordion-toggle").on("click",function(){n(this).closest(".panel-group").children().each(function(){n(this).find(">.panel-heading").removeClass("active")});n(this).closest(".panel-heading").toggleClass("active")});n(".accordion-toggle").on("click",function(){n(this).closest(".panel-group").children().each(function(){n(this).find(">.panel-heading").removeClass("active")});n(this).closest(".panel-heading").toggleClass("active")});n(".gototop").click(function(t){t.preventDefault();n("html, body").animate({scrollTop:n("body").offset().top},500)});jQuery(document).ready(function(){var t=300,n=500;jQuery(window).scroll(function(){jQuery(this).scrollTop()>t?jQuery(".back-to-top").fadeIn(n):jQuery(".back-to-top").fadeOut(n)});jQuery(".back-to-top").click(function(t){return t.preventDefault(),jQuery("html, body").animate({scrollTop:0},n),!1})});n(".BDC_CaptchaImageDiv a")!=null&&(n(".BDC_CaptchaImageDiv a").removeAttr("href"),n(".BDC_CaptchaImageDiv a").removeAttr("title"))})