function setLoading(divId){$(divId).html('

');$(divId).show();}
function setLoadingsmalla(divId){$(divId).html('
');$(divId).show();}
function setLoadingbyclass(divId){$(divId).html('
');$(divId).show();}
function stopLoading(divId){$(divId).hide();}
function setLoadingSmallbyid(divId){$(divId).html('
');$(divId).show();}
function setLoadingSmallbyidwithoutdiv(divId){$(divId).html('
');$(divId).show();}
function localtionHash(divId){document.location.hash=divId;}
function setLoadingBackground(divId){$(divId).append('
');}
function setWait(divId){$(divId).html('
');$(divId).show();}
function handleExpandBoxClick(element,id){if($('#'+id).is(':visible')){$('#'+id).hide();$('#expandBox_menuLeft_'+id).hide();$('#expandBox_menuRight_'+id).hide();}else{$('#'+id).show();$('#expandBox_menuLeft_'+id).show();$('#expandBox_menuRight_'+id).show();}
$(element).toggleClass('ico1');$(element).parent('.grayBox').toggleClass('grayBox1');return false;}
function handleExpandBoxClickedtest(element){$('#'+element).slideToggle()
return false;}
function handleExpandBoxClicked(element){$(element).parents('.info-block').toggleClass('block-collapsed');$(element).parents('.info-block').toggleClass('block-expanded');return false;}
function getData(id,data){var tempAJAX=$.ajax;$.ajax=function(s){s.cache=true;tempAJAX(s);}
$(id).html(data);$(id).show();$.ajax=tempAJAX;}
function updateContent(selector,content){$(selector).html(content);$(selector).show();}
function replaceContent(selector,content){$(selector).replaceWith(content);$(selector).show();}
function updateWholeInfoBlock(selector,content){$(selector).parents('.info-block').replaceWith(content);}
function updatePageContent(content){$('#pagewrapper').html(content);$('#pagewrapper').show();}
function getContent(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('#'+containerId).html(html);}});}
function getContentByCss(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('.'+containerId).html(html);}});}
function getContentVal(url,containerId){jQuery.ajax({'type':'GET','url':url,'cache':false,'data':'','success':function(html){jQuery('#'+containerId).val(html);}});}
function destroyAllDialogs(){$('.ui-dialog').empty();$('.ui-dialog').remove();}
function destroyDialogs(aDialogContainerIds){for(var i=0;i\{\}\[\]\\\/]/gi;var isSplChar=re.test(valText);if(isSplChar)
{var no_spl_char=valText.replace(/[`~!@#$%^&*()_|+\-=?;:'".<>\{\}\[\]\\\/]/gi,'');$(obj).val(no_spl_char);}else{$(obj).val(valText);}}
function checkEmailformat(email)
{var error=0;if(email!=''){var mailformat=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!email.match(mailformat))
{error=1;}}
return error;}
function searchUsr(fname,surname)
{if(surname==0){var txtSearch=fname;}else{var txtSearch=fname+' '+surname;}
$('#finduser-clicks').trigger('click');$('#search_users_new').val(txtSearch);jQuery("#search_users_new").trigger('keyup');}
function showGCModal(title,content)
{if(title!=""){jQuery("#GcModalTitle").html(title);}
if(content!=""){jQuery("#GcModalBody").html(content);jQuery('#GcModal').modal('show');}}
function notifyMe(titlte,imgl,description,row,redirectUrl)
{Notification.requestPermission().then(function(result){if(result==='denied'){console.log('Permission wasn\'t granted. Allow a retry.');return;}
if(result==='granted'){var imgl='/images/logo-mid-pic.png';var row=new Notification(titlte,{icon:imgl,body:description,});row.onclick=function(){window.open(redirectUrl);};setTimeout(row.close.bind(row),10000);}
if(result==='default'){console.log('The permission request was dismissed.');return;}});}
function tooltippop(divId){$("#"+divId).tooltip({show:{effect:"slideDown",delay:250},position:{my:"left top",at:"left bottom"},});}
function myNotificaiton()
{jQuery('#tstDiv').load('/central/user/deskTopNotify/desktopnoti/1');}
if(jQuery.type(GC_LOGGED_USER)==="undefined"){}else{if(GC_LOGGED_USER==703){setInterval(myNotificaiton,45000);}}
$(document).ready(function(){const itemsToReplace=["onload","join","body","eval","this","document","style","opacity"];$('input[type="text"]').not('#LoginForm_username, #LoginForm_password, #forgotemail').on('input',function(){let input=$(this).val();const charactersToReplace=["[","]","(",")","$","&","%","#"];charactersToReplace.forEach(function(char){let regex=new RegExp('\\'+char,'g');input=input.replace(regex,'');});itemsToReplace.forEach(function(item){let regex=new RegExp('\\b'+item+'\\b','gi');input=input.replace(regex,'');});$(this).val(input);});const ids=['search_servicenew','kbsearch','qs'];ids.forEach(function(id){$(`input#${id}`).on('input',function(){let value=$(this).val();let regex=/(https?:\/\/|www\.)[^\s]+/gi;let newValue=value.replace(regex,'');$(this).val(newValue);});});});;!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;kb;b++)if(f===j[b]){j.splice(b,1);break}}};return j.push(f),f}function c(a,b){for(;a.parentNode&&a.tagName!==b;)a=a.parentNode;return b===a.tagName?a:void 0}function d(a){for(var b=["input","textarea","select"],c=[],d=0;dg;g++)!function(){var a=f[g];if("function"==typeof a.addEventListener){var h=b(a),i=-1;a.addEventListener("click",function(b){var f=!0,g=c(a,"FORM");if("undefined"!=typeof g)for(var j=d(g),k=0;ka;a++)j[a].stop()}function g(b){var c,d,e=b.offsetHeight;0===e&&(e=parseFloat(window.getComputedStyle(b).height)),e>32&&(e*=.8),b.hasAttribute("data-spinner-size")&&(e=parseInt(b.getAttribute("data-spinner-size"),10)),b.hasAttribute("data-spinner-color")&&(c=b.getAttribute("data-spinner-color")),b.hasAttribute("data-spinner-lines")&&(d=parseInt(b.getAttribute("data-spinner-lines"),10));var f=.2*e,g=.6*f,h=7>f?2:3;return new a({color:c||"#fff",lines:d||12,radius:f,length:g,width:h,zIndex:"auto",top:"auto",left:"auto",className:""})}function h(a){for(var b=[],c=0;c