function changeManadatoryElements(n){for(var i=n.split(","),t=0;t<i.length-1;t++){var u=$('[id$="'+i[t]+'"]'),r=$(u).closest("div"),f=$(r).attr("class");$(r).attr("class",f+" elementerror")}for(n=n.replace(/_/g,""),i=n.split(","),t=0;t<i.length-1;t++)u=$('a[id$="'+i[t]+'"]'),r=$(u).closest("div"),f=$(r).attr("class"),$(r).attr("class",f+" elementerror")}function AddingForm_DeleteItem_Confirm(n){ShowPopUp("modal_addingform_delete");$("#lnkDeleteAddingFormRow").data("sender",n)}function AddingForm_DeleteItem(){var n;if(ClosePopUp(),n=$("#lnkDeleteAddingFormRow").data("sender"),n!=null){$("#lnkDeleteAddingFormRow").data("sender",null);var t=$(n).attr("addingformdataentryid"),i=$(n).attr("AddingFormElementId"),r=$(n).attr("CurrentUserId"),u=$(n).attr("CurrentLanguageKey"),f=$('[id^="hdnCurrentVacancy"]').val();$.ajax({type:"POST",dataType:"json",url:"/handlers/AddingFormManager.ashx",data:{action:"ADDINGFORM_DELETEROW",entryId:t,elementId:i,currentUserId:r,currentLanguageKey:u,vacancyId:f},error:function(){alert("error occured")},success:function(n){if(n.success){var i=$("#rowAddForm_"+t);$(i).fadeOut(300,function(){var n=$(this).parents("table");$(this).remove();$(n).find("tr[id^=rowAddForm_]").length==0&&$(n).fadeOut()})}}})}}function AddingForm_ResetPostbackHash(n){var t=$("form").attr("action"),i;t.indexOf("#")&&(t=t.substr(0,t.indexOf("#")));i=t+"#lnkButAddAddingForm_"+$(n).attr("itemid");$("form").attr("action",i)}function ShowLoader(){return $("#loader").show(),!0}function ColorChange(n){document.getElementById("divColor1").style.backgroundColor="rgb("+n.newValue.join(",")+")";document.getElementById(currentTempValueId).value=n.newValue.join("|")}function SaveColor(){var u=document.getElementById(this.currentTempValueId).value,t,r,n,f;for(document.getElementById(this.currentValueId).value=u,document.getElementById(this.currentTextBoxId).value="",t=u.split("|"),r="",document.getElementById(this.currentValueId).value="",i=0;i<t.length;i++)n=parseInt(t[i]).toString(16),n.length<2&&(n="0"+n),document.getElementById(this.currentTextBoxId).value+=n,document.getElementById(this.currentValueId).value+=n,r+=t[i],i<t.length-1&&(r+=",");f=/|/g;document.getElementById(this.currentPreviewId).style.backgroundColor="rgb("+r+")";document.getElementById(this.currentMainPreviewId).style.backgroundColor="rgb("+r+")";UnFixColorPicker();document.getElementById(this.currentTempValueId).value=this.currentTextBoxId}function ShowPickerPicker(n,t,i,r,u,f,e){document.getElementById("modal_design_color").style.visibility="visible";picker.setValue(document.getElementById(i).value.split("|"),!1);document.getElementById(n).value=t;this.currentTempValueId=r;this.currentValueId=i;this.currentPreviewId=u;this.currentTextBoxId=f;this.currentMainPreviewId=e}function UnFixColorPicker(){document.getElementById("modal_design_color").style.visibility="hidden"}function reformat(n,t){var i=$.datepicker.parseDate(t,n);return i.setHours(0,0,0,0),t.replace("mm",("0"+i.getDate()).slice(-2)).replace("dd",("0"+(i.getMonth()+1)).slice(-2)).replace("yy",i.getFullYear())}function scheduleKeepAlive(){setTimeout("callKeepAlive()",6e4)}function callKeepAlive(){if(isPageIdle){scheduleKeepAlive();return}$.ajax({type:"POST",url:"/handlers/Common.ashx",data:{action:"CALLKEEPALIVE"},error:function(){scheduleKeepAlive()},success:function(){scheduleKeepAlive()}})}function inIframe(){try{return window.self!==window.top}catch(n){return!0}}function keyDown(n){return k=navigator.appName=="Microsoft Internet Explorer"?window.event.keyCode:n.which,k==13?!0:!1}this.currentTempValueId="";this.currentValueId="";this.currentPreviewId="";this.currentTextBoxId="";this.currentMainPreviewId="",function(n){function t(t,i){var u=n(i.feedbackId),r=n(t).val();r.length>i.maxLength&&(r=r.substring(0,i.maxLength),n(t).val(r));u!=null&&typeof u!="undefined"&&u!=""&&u.html(i.maxLength-r.length)}n.fn.limitTextbox=function(i){var r=n.extend(!0,{},{maxLength:300,feedbackId:""},i),f=n(this),u=f.attr("data-max-length");return u!=null&&typeof u!="undefined"&&u!=""&&(r.maxLength=u),f.attr("maxlength",r.maxLength),this.each(function(){t(this,r);n(this).keyup(function(){t(this,r)})})};n.fn.autogrow=function(){return this.filter("textarea").each(function(){var t=n(this),u=t.height(),f=t.css("lineHeight"),r=n("<div><\/div>").css({position:"absolute",top:-1e4,left:-1e4,width:n(this).width(),fontSize:t.css("fontSize"),fontFamily:t.css("fontFamily"),lineHeight:t.css("lineHeight"),resize:"none"}).appendTo(document.body),i=function(){var t=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n/g,"<br/>");r.html(t);n(this).css("height",Math.max(r.height()+20,u))};n(this).change(i).keyup(i).keydown(i);i.apply(this)}),this};n.fn.bubbletippedButton=function(){var t=this,i=t.attr("data-bubbletip-id"),u=i===null||typeof i=="undefined"||i===""?"":n("#"+i),r=t.find("a").eq(0);return t.removeClass("a_button ab_disabled").removeBubbletip(),{enable:function(){return t.addClass("a_button").removeClass("ab_disabled").bubbletip(u,{delayShow:250,calculateOnShow:"true"}),r.removeAttr("onclick"),t},disable:function(){return t.addClass("a_button ab_disabled").removeBubbletip(),r.attr("onclick","return false;"),t}}}}(jQuery);var isPageIdle=!1;$(document).idle({onIdle:function(){isPageIdle=!0},onActive:function(){isPageIdle=!1},idle:6e4}),function(){String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.indexOf(n,t)===t})}();$("body").on("click",".executer_data_checkbox_text",function(){$(this).siblings(".executer_data_checkbox_box").find(".checkbox").trigger("mousedown").trigger("mouseup")})