summaryrefslogblamecommitdiffstats
path: root/gimsis/Datoteke_za_Skupine/GimSisCombined-f4176b8c-dafb-4844-92c7-693cc0966224.js
blob: 640ad42484e07eb93c68ff4d04ce8f8e620eed4f (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
__ThisExists=function(a){return typeof __This!="undefined"};__ThisHasProperty=function(a){if(typeof __This!="undefined"){return __This.exists(a)}else{return false}};var __This={};__This.exists=function(a){return this.hasOwnProperty(a)};__This.DisplayAllErrors=true;__This.IsLastRequestError=false;__This.LastRequestErrorMsg="";__This.isIE8=($.browser.msie==true&&$.browser.version=="8.0")?true:false;__This.isIE9=($.browser.msie==true&&$.browser.version=="9.0")?true:false;__This.isIE=($.browser.msie==true)?true:false;var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(j){var k="";var a,b,c,d,e,f,g;var h=0;j=Base64._utf8_encode(j);while(h<j.length){a=j.charCodeAt(h++);b=j.charCodeAt(h++);c=j.charCodeAt(h++);d=a>>2;e=((a&3)<<4)|(b>>4);f=((b&15)<<2)|(c>>6);g=c&63;if(isNaN(b)){f=g=64}else{if(isNaN(c)){g=64}}k=k+this._keyStr.charAt(d)+this._keyStr.charAt(e)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return k},decode:function(j){var k="";var a,b,c;var d,e,f,g;var h=0;j=j.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(h<j.length){d=this._keyStr.indexOf(j.charAt(h++));e=this._keyStr.indexOf(j.charAt(h++));f=this._keyStr.indexOf(j.charAt(h++));g=this._keyStr.indexOf(j.charAt(h++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;k=k+String.fromCharCode(a);if(f!=64){k=k+String.fromCharCode(b)}if(g!=64){k=k+String.fromCharCode(c)}}k=Base64._utf8_decode(k);return k},encodeURL:function(a){var b=Base64.encode(a);b.replace("+","-");b.replace("/","_");return b},decodeURL:function(a){var b=(a.length%4)==0?0:(4-(a.length%4));var c="    ";var d=a+c.substr(1,b);d.replace("-","+");d.replace("_","/");return Base64.decode(d)},_utf8_encode:function(d){d=d.replace(/\r\n/g,"\n");var e="";for(var b=0;b<d.length;b++){var a=d.charCodeAt(b);if(a<128){e+=String.fromCharCode(a)}else{if((a>127)&&(a<2048)){e+=String.fromCharCode((a>>6)|192);e+=String.fromCharCode((a&63)|128)}else{e+=String.fromCharCode((a>>12)|224);e+=String.fromCharCode(((a>>6)&63)|128);e+=String.fromCharCode((a&63)|128)}}}return e},_utf8_decode:function(e){var d="";var b=0;var a=c1=c2=0;while(b<e.length){a=e.charCodeAt(b);if(a<128){d+=String.fromCharCode(a);b++}else{if((a>191)&&(a<224)){c2=e.charCodeAt(b+1);d+=String.fromCharCode(((a&31)<<6)|(c2&63));b+=2}else{c2=e.charCodeAt(b+1);c3=e.charCodeAt(b+2);d+=String.fromCharCode(((a&15)<<12)|((c2&63)<<6)|(c3&63));b+=3}}}return d}};var Base64Ex={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.",encode:function(j){var k="";var a,b,c,d,e,f,g;var h=0;j=Base64Ex._utf8_encode(j);while(h<j.length){a=j.charCodeAt(h++);b=j.charCodeAt(h++);c=j.charCodeAt(h++);d=a>>2;e=((a&3)<<4)|(b>>4);f=((b&15)<<2)|(c>>6);g=c&63;if(isNaN(b)){f=g=64}else{if(isNaN(c)){g=64}}k=k+this._keyStr.charAt(d)+this._keyStr.charAt(e)+this._keyStr.charAt(f)+this._keyStr.charAt(g)}return k},decode:function(j){var k="";var a,b,c;var d,e,f,g;var h=0;j=j.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(h<j.length){d=this._keyStr.indexOf(j.charAt(h++));e=this._keyStr.indexOf(j.charAt(h++));f=this._keyStr.indexOf(j.charAt(h++));g=this._keyStr.indexOf(j.charAt(h++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;k=k+String.fromCharCode(a);if(f!=64){k=k+String.fromCharCode(b)}if(g!=64){k=k+String.fromCharCode(c)}}k=Base64Ex._utf8_decode(k);return k},encodeURL:function(a){var b=Base64Ex.encode(a);return b},decodeURL:function(a){var b=(a.length%4)==0?0:(4-(a.length%4));var c="    ";var d=a+c.substr(1,b);return Base64Ex.decode(d)},_utf8_encode:function(d){d=d.replace(/\r\n/g,"\n");var e="";for(var b=0;b<d.length;b++){var a=d.charCodeAt(b);if(a<128){e+=String.fromCharCode(a)}else{if((a>127)&&(a<2048)){e+=String.fromCharCode((a>>6)|192);e+=String.fromCharCode((a&63)|128)}else{e+=String.fromCharCode((a>>12)|224);e+=String.fromCharCode(((a>>6)&63)|128);e+=String.fromCharCode((a&63)|128)}}}return e},_utf8_decode:function(e){var d="";var b=0;var a=c1=c2=0;while(b<e.length){a=e.charCodeAt(b);if(a<128){d+=String.fromCharCode(a);b++}else{if((a>191)&&(a<224)){c2=e.charCodeAt(b+1);d+=String.fromCharCode(((a&31)<<6)|(c2&63));b+=2}else{c2=e.charCodeAt(b+1);c3=e.charCodeAt(b+2);d+=String.fromCharCode(((a&15)<<12)|((c2&63)<<6)|(c3&63));b+=3}}}return d}};String.prototype.bTrim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};String.prototype.blTrim=function(){return this.replace(/^\s+/,"")};String.prototype.brTrim=function(){return this.replace(/\s+$/,"")};String.prototype.bFullTrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")};String.prototype.regularName=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g,"").replace(/[^0-9a-zA-Z.]/g,"")};String.prototype.replaceNlWithBr=function(){return this.replace(/\r?\n|\r/g,"<br />")};_gCtrlKey=false;_gShiftKey=false;_gAltKey=false;$(document).bind("keyup keydown",function(a){_gCtrlKey=a.ctrlKey;_gShiftKey=a.shiftKey;_gAltKey=a.altKey});function htmlEncode(a){return $("<div/>").text(a).html()}function htmlDecode(a){return $("<div/>").html(a).text()}function tbGuid(){var a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var d=Math.random()*16|0,e=b=="x"?d:(d&3|8);return e.toString(16)});return a}function strIsEmpty(a){return(a==null||a==undefined||(typeof(a)=="string"&&a.bFullTrim()==""))}function objIsEmpty(a){return(a==null||a==undefined||(typeof(a)=="string"&&a.bFullTrim()==""))}function objIsNull(a){return(a==null||a==undefined)}function objIsAssigned(a){return !(a==null||a==undefined)}function objIsFull(a){return !(a==null||a==undefined||(typeof(a)=="string"&&a.bFullTrim()==""))}function setupModalBox(e,a,c,f,d,g,b){var i="";if(c=="*"){i="*"}else{var h=$(c).get(0);if(objIsAssigned(h)){i=h.name;if(objIsEmpty(i)){if(objIsFull(h.id)){i=h.id.replace(/\_/g,"$")}}if(objIsEmpty(i)){}}}$(a).fancybox({width:(objIsAssigned(g)?g:400),height:(objIsAssigned(b)?b:300),padding:4,autoScale:true,autoDimensions:true,transitionIn:"none",transitionOut:"none",speedIn:0,speedOut:0,type:f,scrolling:d,centerOnScroll:true,enableEscapeButton:true,showCloseButton:true,overlayShow:true,hideOnOverlayClick:false,hideOnContentClick:false,overlayOpacity:"0.5",overlayColor:"#000",titlePosition:"title",title:e,titleClass:"divBoxTitle",onClosed:function(j,k,l){if($.fancybox.doPostback&&(i!="*")){__doPostBack(i,"")}},onComplete:function(){var j=$("#fancybox-wrap",top.document);j.draggable({iframefix:true,handle:"#fancybox-title",zIndex:350,scroll:false})}})}function refreshPostBack(a){var c="";var b=$(a).get(0);if(objIsAssigned(b)){c=b.name;if(objIsEmpty(c)){if(objIsFull(b.id)){c=b.id.replace(/\_/g,"$")}}}__doPostBack(c,"")}function arraySortUnique(a){if(a!=null){a.sort();for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1)}}}return a}function addClass(b,a){if(objIsAssigned(b)){b.className+=" "+a}}function removeClass(b,a){if(objIsAssigned(b)){b.className+=" "+a;b.className=b.className.replace(/(?:^|\s)/+a+/(?!\S)/,"")}}function getSqlParameterNames(c){var e=c;e=e.replace(/\'[^\']*?\'/igm,"");e=(e+"\n").replace(/--[^(\n)]*?\n/igm,"");e=e.replace(/(\/\*)([^\*]|[^\*](\*)[^\/])+?(\*\/)/igm,"");e=e.replace(/[^s]el([^t](t)[^s])+?(ts)/igm,"");var a=e.match(/\@[_a-z0-9]+/igm);var b=arraySortUnique(a);if(b!=null){for(var d=0;d<b.length;d++){b[d]=b[d].substring(1)}}return b}function scrollView(a){var b=$("#"+a+" .selected")[0];if(b!=null){b.scrollIntoView(false);b.focus()}}function triggerDefaultButton(e,c){var b=c.target||c.srcElement;if(c.keyCode==13&&!(b&&b.tagName.toLowerCase()=="textarea")){var a=$("#"+e);if(a){var d=a.attr("href");if(d!=null&&d!=""){window.location=a.attr("href")}else{a.trigger("onclick")}c.cancelBubble=true;if(c.stopPropagation){c.stopPropagation()}return false}}return true}function touchHandler(a){var d=a.changedTouches;if(d){var b=d[0];var e="";switch(a.type){case"touchstart":e="mousedown";break;case"touchmove":e="mousemove";break;case"touchend":e="mouseup";break;default:return}var c=document.createEvent("MouseEvent");c.initMouseEvent(e,true,true,window,1,b.screenX,b.screenY,b.clientX,b.clientY,false,false,false,false,0,null);b.target.dispatchEvent(c);if(a.target.className.indexOf("ui-draggable")>=0){a.preventDefault()}}}function FixTextBoxPostback(a,b){var c=getCookie(a.id);if(c==null||c!=a.value){setCookie(a.id,a.value,2);__doPostBack(a.name,b)}}function setCookie(a,e,d){var c=new Date();c.setDate(c.getDate()+d);var b=escape(e)+((d==null)?"":"; expires="+c.toUTCString());document.cookie=a+"="+b}function getCookie(b){var c,d,e,a=document.cookie.split(";");for(c=0;c<a.length;c++){d=a[c].substr(0,a[c].indexOf("="));e=a[c].substr(a[c].indexOf("=")+1);d=d.replace(/^\s+|\s+$/g,"");if(d==b){return unescape(e)}}}function insertTextInEditor(a,c,b){if(c&&c!=""){var e=$(a);if(e){var d=e[0];var f=d.value.slice(0,d.selectionStart);var g=d.value.slice(d.selectionEnd);if(g.substr(0,1)!=" "){g=" "+g}d.value=f+c+g;d.selectionStart=f.length+c.length;d.selectionEnd=d.selectionStart;if(b){d.focus()}}}}function blockPage(a){$.blockUI({message:'<div class="blockImg"></div><span class="divBlocking" />'+a+"</span>"})}function unblockPage(){$.unblockUI()}function blockElement(a,b){$.blockUI.defaults.css={};$(a).block({message:'<div class="blockImg"></div><span class="divBlocking" />'+b+"</span>"})}function TextToId(a){return(a.replace(/^a-z0-9/i,""))}var _GDateTimeTarget=null;function WriteDateTime(a){if(a==null){a=_GDateTimeTarget}else{_GDateTimeTarget=a}theElement=document.getElementById?document.getElementById(a):document.all.lblDateTime;if(theElement){var c=new Date();var b=new Array("nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota");theElement.innerHTML=b[c.getDay()]+", <b>"+c.format("dd.MM.yyyy, HH:mm:ss")+"</b>";setTimeout("WriteDateTime()",1000)}}function WriteCurrentTime(){if(!document.all&&!document.getElementById){return}thelement=document.getElementById?document.getElementById("lblShowTime"):document.all.lblShowTime;var b=new Date();var c=b.getHours();var d=b.getMinutes();var e=b.getSeconds();if(d<=9){d="0"+d}if(e<=9){e="0"+e}var a=c+":"+d+":"+e;thelement.innerHTML=a;setTimeout("WriteCurrentTime()",1000)}function ShowModalForm(c,a,d,b){var f="center:yes;resizable:no;scroll:no;status:no;help:no;";if(d!=null){f+="dialogWidth:"+d+";"}if(b!=null){f+="dialogHeight:"+b+";"}var e=window.showModalDialog(c,a,f)}function jqShowModalForm(a,b){$("#"+a).load(b).dialog({modal:true})}function ClosePage(a){window.opener=self;window.open("","_parent","");window.close()}function fireEvent(d,b){var c=d;if(document.createEvent){var a=document.createEvent("MouseEvents");a.initEvent(b,true,false);c.dispatchEvent(a)}else{if(document.createEventObject){c.fireEvent("on"+b)}}}function clickLink(a){if(a){if(a.getAttribute("onclick")==null){if(a.getAttribute("href")){document.location=a.getAttribute("href");if(navigator.appName=="Netscape"&&navigator.userAgent.indexOf("Firefox")>=0){if(a.click){a.click()}}}}else{alert("clickLink().onclick() "+a);a.onclick()}}}function clickParentLink(a){if(a){if(a.getAttribute("onclick")==null){if(a.getAttribute("href")){window.parent.document.location=a.getAttribute("href")}}else{a.onclick()}}}function RefreshParent(a){if(a){var c=window.parent.document.getElementsByName(a);if(c&&(c.length>0)){var b=window.parent.document.getElementsByName(a)[0];clickParentLink(b)}}}function AddEvent(c,d,a){var b=c[d];if(typeof b!="function"){c[d]=a}else{c[d]=function(f){b(f);a(f)}}}function SetEvent(c,d,a){var b=c[d];c[d]=a}function TestEvent(a){if(!a){a=window.event}if(a){alert(a.type)}}function EventKeyCode(b){var a;if(!b){b=window.event}if(b.keyCode){a=b.keyCode}else{if(b.which){a=b.which}}return a}function modalRegisterKeys(d,c,b,a){window.__modalPanelName=c;window.__modalOkButtonName=b;window.__modalCancelButtonName=a;if(!d.get_isPartialLoad()){if(window.document.addEventListener){window.document.addEventListener("keydown",modalOnKeyDown,false)}else{window.document.attachEvent("onkeydown",modalOnKeyDown)}}}function modalOnKeyDown(a){if(((a.keyCode==13)&&(a.ctrlKey))||(a.keyCode==27)){var b=getElementByPartialName("div",window.__modalPanelName);if(b){if(b.style.display!="none"){clickLink(getElementByPartialName("a",a.keyCode==13?window.__modalOkButtonName:window.__modalCancelButtonName))}}}}function getElementByPartialName(a,b){var e=null;var c=document.getElementsByTagName(a);for(var d=0;d<c.length;d++){if(c[d].id.indexOf(b)>=0){e=c[d];break}}return e}function slideonlyone(a){$('div[name|="newboxes2"]').each(function(b){if($(this).attr("id")==a){$(this).slideDown(200)}else{$(this).slideUp(600)}})}function showHideEl(b){var a=$(b);if(a!=undefined&&a[0]!=undefined){if(a[0].style.display=="none"){a.slideDown(100)}else{a.slideUp(100)}}}function divExpandCollapse(e,f,d,c){var a=document.getElementById(e);var b=document.getElementById(f);if(a.style.display=="none"){b.innerHTML='<img src="'+c+'">';$("#"+e).slideDown(100)}else{b.innerHTML='<img src="'+d+'">';$("#"+e).slideUp(100)}}function StrGetToken(c,b,a){var g="";var e;var d;var f;if((c!=null)&&(b!=null)&&(a!=null)&&(a>=0)){d=0;f=b.length;while(a>=0){e=d;a--;d=c.indexOf(b,d);if(a<0){if(d<0){g=c.substring(e)}else{g=c.substr(e,d-e)}break}else{if(d<0){break}}d+=f}}return g}function getToken(d,c,a){var b=d.split(c,a+1);return b[a]}function saveDivScrollPosition(){var b=$("div.divElScrollable");for(var a=0;a<b.length;a++){if(b[a].id.length>0){document.cookie=b[a].id+"="+b[a].scrollTop}}}function restoreDivScrollPosition(){var f=document.cookie;if(f.length>0){var a=f.split(";");for(var c=0;c<a.length;c++){var d=a[c].split("=");try{document.getElementById(d[0].replace(" ","")).scrollTop=d[1]}catch(b){}}}}function buttonEnable(a,b,c,e,d){var g;var f=$(a);if(f.length>0){if(b){g=e;f.removeAttr("disabled");f.off("click");f.click(c)}else{g=d;f.attr("disabled","disabled");f.off("click");f.click(function(){return false})}if(objIsFull(g)){f.find("span.csimg").css("background-image","url("+g+")")}}}function jqDlgButtonShow(b,a,c){var e=$(b);if(objIsEmpty(c)){c=true}var d=e.dialog("option","buttons");if(d.length>0){$.each(d,function(g,f){if(f.id==a){f.disabled=!c;f.style=c?"display: inherited;":"display: none;"}});e.dialog("option","buttons",d)}}function jqResizeDialogIFrame(a,b){if(objIsEmpty(b)){b="#divModalHolder"}var h=$(a);var g=$(h.get(0).contentDocument).find(b);var f=g.width();var d=g.height();var e=h.siblings(".ui-dialog-titlebar").height();var c=h.siblings(".ui-dialog-buttonpane").height();h.width(f);h.height(d);h.parent().width(f+24);h.parent().position({my:"center",at:"center",of:window})}function jqResizeDialogIFrameExt(a,b){if(objIsEmpty(b)){b="#divModalHolder"}var h=$(a);var g=$(h.get(0).contentDocument).find(b);var f=g.outerWidth(true);var d=g.outerHeight(true);var e=h.siblings(".ui-dialog-titlebar").outerHeight(true);var c=h.siblings(".ui-dialog-buttonpane").outerHeight(true);h.innerWidth(f);h.innerHeight(d+8);var i=h.parent();while(i&&!i.hasClass("ui-dialog")){i=i.parent()}if(i){h.parent().innerWidth(h.outerWidth(true));h.parent().innerHeight(h.outerHeight(true)+e+c);h.parent().position({my:"center",at:"center",of:window})}}function jqMaximizeDialogIFrame(a,b){var e=$(a);var d=e.parent().width();var c=e.parent().height();e.width(d-24);if(b){$(e.get(0).contentDocument).find(b).width(d-24)}}function arraySize(b){var c=0,a;for(a in b){if(b.hasOwnProperty(a)){c++}}return c}function countUniqueChars(a){var b={};for(var c=0,d=a.length;c<d;c++){b[a[c]]=b[a[c]]+1||1}return arraySize(b)}function checkPasswordStrength(a){var b=new Array();b[0]="0=Prazno";b[1]="1=Zelo šibko";b[2]="2=Šibko";b[3]="3=Srednje močno";b[4]="4=Močno";b[5]="5=Zelo močno";b[6]="6=Izredno močno";var d=0;var c=countUniqueChars(a);if(a.length<1){return b[0]}if(a.length<4){return b[1]}if(a.length>=8&&c>=6){d++}if(a.length>=12&&c>=8){d++}if(a.match(/\d+/)){d++}if(a.match(/[a-z,č,š,ž,ć,đ]/)){d++}if(a.match(/[A-Z,Č,Š,Ž,Ć,Đ]/)){d++}if(a.match(/.[\s,!,@,#,$,%,^,&,*,?,_,~,-,£,(,),\.,\,=,+,\-,_,\/,\",\',\<,\>,\;,\:]/)){d++}return b[d]}function btSetupTableRowSelect(b,a){$(b).find("tr").each(function(c){$(this).on("click",function(){btSelectRow(this);if(a){a(this)}})});$(b).toggleClass("tdRowSelect",true);$(b).toggleClass("highlight",true)}function btSelectRow(a){if(a){if(a.tagName.toUpperCase()!="TR"){while(a.parentNode!=null&&a.tagName.toUpperCase()!="TR"){a=a.parentNode}}if(a.tagName.toUpperCase()=="TR"){var b=$(a).hasClass("selected");if(!b){var c=a.parentNode;while(c.parentNode!=null&&c.tagName.toUpperCase()!="TABLE"){c=c.parentNode}if(c.tagName.toUpperCase()=="TABLE"){$(c).find("tr.selected").each(function(d){$(this).toggleClass("selected",false)})}$(a).toggleClass("selected",true)}}}}function wsSendEMail(a,f,d,e,c,b){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/SendEMail"),data:'{"aFrom": "'+a+'", "aTo": "'+f+'", "aSubject": "'+d+'", "aText": "'+e+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(g){c(g.d)},error:function(g){var h=JSON.parse(g.responseText);b(h.Message)}})}function wsGetConfigSetting(b,a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/GetConfigSetting"),data:'{"aSetting": "'+b+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(c){a(c.d)}})}function wsSpremeniSolskoLeto(b,a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/SpremeniSolskoLeto"),data:'{ "aSolskoLeto": "'+b+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(c){a(c.d)}})}function obvestilaCiljneSkupine(a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ObvestilaCiljneSkupine"),data:"{ }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){a(b.d)}})}function obvSkupineClani(a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ObvSkupineClani"),data:"{ }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){a(b.d)}})}function UporabnikiSkupineClani(a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/UporabnikiSkupineClani"),data:"{ }",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){a(b.d)}})}function getSessionData(){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/GetSessionData"),data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(a){alert(a.d)}})}function checkHelpEdit(a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/GetCurrentUserRole"),data:"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(b){a(b.d)}})}function helpGet(c,b,a){$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/HelpGetData"),data:'{ "aPage": "'+c+'", "aKey": "'+b+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){a(d.d)}})}function doCheckHelpEdit(d,b,e,c,a){if(e=="AD"||e=="SU"){if(c!=null&&c!=undefined){var h=$.getRootUrl("Page_Gim/Globalno/modPomocUredi.aspx");var g=a+"__btnHelpEdit";var f='<a id="'+g+'" class="csbuttonflat gFloatRight" href="'+h+'">Uredi</a>';c.prepend('<div class="divHelpToolbar">'+f+'Priročna pomoč<div style="margin: 8px 0;clear: both;"></div></div>');$("#"+g).fancybox({padding:4,scrolling:false,type:"iframe",autoScale:true,autoDimensions:true,transitionIn:"none",transitionOut:"fade",speedIn:100,speedOut:100,centerOnScroll:true,enableEscapeButton:true,showCloseButton:true,overlayShow:true,hideOnOverlayClick:false,hideOnContentClick:false,overlayOpacity:"0.5",overlayColor:"#000",scrolling:"no",titlePosition:"title",title:"Urejanje pomoči",titleClass:"divBoxTitle",hrefParams:"Page="+d+"|Key="+b,onClosed:function(){if($.fancybox.doPostback){__doPostBack("","")}},onComplete:function(){$("#fancybox-wrap",top.document).draggable({iframefix:true,handle:"#fancybox-title",zIndex:350,scroll:false})}});$("#"+g)[0].hrefParams="Page="+d+"|Key="+b}}else{if(c!=null&&c!=undefined){c.prepend('<div class="divHelpToolbar">Priročna pomoč<div style="margin: 8px 0;clear: both;"></div></div>')}}}function doShowHelp(d,c,f,e,a,b){if(strIsEmpty(a)){if(strIsEmpty(c)){a="divHelpMain"}else{a="divHelp"+c.regularName()}}if(b==null||b==undefined){b=0}var h=$("#"+a);var g=h.get(0);if(g==undefined){var j;if(typeof(e)=="object"){while(!objIsNull(e.parentElement)){if(e.tagName.toLowerCase()=="div"){var i=window.getComputedStyle(e,null);if(i&&(strIsEmpty(i.cssFloat)||i.cssFloat=="none")&&(strIsEmpty(i.styleFloat)||i.styleFloat=="none")){j=$(e);break}}e=e.parentElement}}else{if(!strIsEmpty(e)){j=$("#"+e)}}if(j==null||j==undefined||j.length==0){j=$("body");b=3}if(j!=null&&j!=undefined){var k='<div id="'+a+'" class="divHelp" style="display: none;"></div>';if(b==0){j.after($(k))}else{if(b==1){j.before($(k))}else{if(b==2){$(k).appendTo(j)}else{$(k).prependTo(j)}}}h=$("#"+a);g=h.get(0)}}if(g!=undefined){if(g.style.display=="none"||strIsEmpty(g.innerHTML)){g.innerHTML='<div class="divHelpInner">'+f+"</div>";h.slideDown(100);checkHelpEdit(function(l){doCheckHelpEdit(d,c,l,h,a)})}else{g.innerHTML="";h.slideUp(100)}}}function showHelp(d,c,a,b){if(strIsEmpty(c)){c="default"}if(strIsEmpty(a)){if(strIsEmpty(c)){a="divHelpMain"}else{a="divHelp"+c.regularName()}}var f=$("#"+a);var e=f.get(0);if(e==undefined||e.style.display=="none"||strIsEmpty(e.innerHTML)){var g=document.showHelpId+"_"+location.pathname.substring(location.pathname.lastIndexOf("/")+1);helpGet(g,c,function(h){doShowHelp(g,c,h,d,a,b)})}else{f.slideUp(100);e.innerHTML=""}}function tbConfirm(a){if(!objIsAssigned(a)){return}var c={resizable:objIsAssigned(a.resizable)?a.resizable:false,width:objIsAssigned(a.width)?a.width:"auto",height:objIsAssigned(a.height)?a.height:"auto",maxWidth:objIsAssigned(a.maxWidth)?a.maxWidth:"800px",maxHeight:objIsAssigned(a.maxHeight)?a.maxHeight:"400px",modal:objIsAssigned(a.modal)?a.modal:true,title:objIsAssigned(a.title)?a.title:"",position:"center",stack:false,zIndex:100015,buttons:[{text:objIsAssigned(a.buttonYesText)?a.buttonYesText:"Da",click:function(){if(objIsAssigned(a.buttonYesFunc)){a.buttonYesFunc(true)}$(this).dialog("close")}},{text:objIsAssigned(a.buttonNoText)?a.buttonNoText:"Ne",click:function(){if(objIsAssigned(a.buttonNoFunc)){a.buttonNoFunc(true)}$(this).dialog("close")}}],open:function(){var i=a.buttonDefault&&a.buttonDefault.toLowerCase()=="no"?1:0;$(this).parents(".ui-dialog").children(".ui-dialog-buttonpane").children(".ui-dialog-buttonset").children("button:eq("+i+")").focus()},close:function(){$(window).unbind("resize",tbDialogCenter);if(__This.ActiveDialog==e){__This.ActiveDialog=null}}};var j="__divTBDialog__";var e=$("#"+j);var d=e.get(0);if(d==undefined){var g;if(g==null||g==undefined||g.length==0){g=$("body")}var h='<div id="'+j+'" class="divTBDialog" style="display: none; white-space: normal;"></div>';if(g!=null&&g!=undefined){$(h).prependTo(g);e=$("#"+j);d=e.get(0)}}if(d!=undefined){d.innerHTML=objIsAssigned(a.innerHTML)?a.innerHTML:"";e.css("max-width",c.maxWidth);e.css("max-height",c.maxHeight);if(objIsAssigned(a.params)){for(var b=0;b<a.params.length;b++){var f=e.find(a.params[b].key);if(objIsAssigned(f)){f.val(a.params[b].value)}}}e.dialog(c);__This.ActiveDialog=e;$(window).bind("resize",tbDialogCenter)}}function tbMessage(a){if(!objIsAssigned(a)){return}var c={resizable:objIsAssigned(a.resizable)?a.resizable:false,width:objIsAssigned(a.width)?a.width:"auto",height:objIsAssigned(a.height)?a.height:"auto",maxWidth:objIsAssigned(a.maxWidth)?a.maxWidth:"800px",maxHeight:objIsAssigned(a.maxHeight)?a.maxHeight:"400px",modal:objIsAssigned(a.modal)?a.modal:true,title:objIsAssigned(a.title)?a.title:"",position:"center",stack:false,zIndex:100010,buttons:[{text:objIsAssigned(a.buttonOkText)?a.buttonOkText:"V redu",click:function(){if(objIsAssigned(a.buttonOkFunc)){a.buttonOkFunc(true)}$(this).dialog("close")}}],open:function(){$(this).parents(".ui-dialog").children(".ui-dialog-buttonpane").children(".ui-dialog-buttonset").children("button:eq(0)").focus()},close:function(){$(window).unbind("resize",tbDialogCenter);if(__This.ActiveDialog==e){__This.ActiveDialog=null}}};var j="__divTBDialog__";var e=$("#"+j);var d=e.get(0);if(d==undefined){var g;if(g==null||g==undefined||g.length==0){g=$("body")}var h='<div id="'+j+'" class="divTBDialog" style="display: none; white-space: normal;"></div>';if(g!=null&&g!=undefined){$(h).prependTo(g);e=$("#"+j);d=e.get(0)}}if(d!=undefined){d.innerHTML=objIsAssigned(a.innerHTML)?a.innerHTML:"";e.css("max-width",c.maxWidth);e.css("max-height",c.maxHeight);if(objIsAssigned(a.params)){for(var b=0;b<a.params.length;b++){var f=e.find(a.params[b].key);if(objIsAssigned(f)){f.val(a.params[b].value)}}}e.dialog(c);__This.ActiveDialog=e;$(window).bind("resize",tbDialogCenter)}}function tbError(a){if(!objIsAssigned(a)){return}var b={resizable:objIsAssigned(a.resizable)?a.resizable:true,width:objIsAssigned(a.width)?a.width:"auto",height:objIsAssigned(a.height)?a.height:"auto",maxWidth:objIsAssigned(a.maxWidth)?a.maxWidth:"800px",maxHeight:objIsAssigned(a.maxHeight)?a.maxHeight:"400px",modal:objIsAssigned(a.modal)?a.modal:true,title:objIsAssigned(a.title)?a.title:"",position:"center",stack:false,zIndex:100020,buttons:[{text:objIsAssigned(a.buttonYesText)?a.buttonYesText:"V redu",click:function(){if(objIsAssigned(a.buttonYesFunc)){a.buttonYesFunc(true)}$(this).dialog("close")}}],open:function(){var i=a.buttonDefault&&a.buttonDefault.toLowerCase()=="no"?1:0;$(this).parents(".ui-dialog").children(".ui-dialog-buttonpane").children(".ui-dialog-buttonset").children("button:eq("+i+")").focus()},close:function(){$(window).unbind("resize",tbDialogCenter);if(__This.ActiveDialog==d){__This.ActiveDialog=null}}};var g="__divTBDialog__";var d=$("#"+g);var c=d.get(0);if(c==undefined){var e;if(e==null||e==undefined||e.length==0){e=$("body")}var f='<div id="'+g+'" class="divTBDialog" style="display: none; white-space: normal;"></div>';if(e!=null&&e!=undefined){$(f).prependTo(e);d=$("#"+g);c=d.get(0)}}if(c!=undefined){var h=objIsAssigned(a.innerHTML)?a.innerHTML:"";h=h.replaceNlWithBr();d.html(h);d.css("max-width",b.maxWidth);d.css("max-height",b.maxHeight);d.dialog(b);__This.ActiveDialog=d;$(window).bind("resize",tbDialogCenter)}}function tbDialogCenter(a){if(__This.ActiveDialog){__This.ActiveDialog.dialog("option","position","center")}}function tbShowIframe(e,c,d,f,b){var a="ifrm"+tbGuid();var g={autoScroll:false,doPostback:false,refreshSelector:d,iframeName:a,outputParams:null,autoOpen:false,modal:true,height:"auto",width:600,title:f,buttons:b,open:function(i,k){var j=$("iframe#"+a).get(0).contentWindow;if(j&&j.setupForm){j.setupForm()}},close:function(j,o){$(window).off("resize.jquidialog");var k=$("iframe#"+a);var n=k.dialog("option","refreshSelector");var i=k.dialog("option","doPostback");var m=k.dialog("option","outputParams");var l=$.browser.msie&&$.browser.version<7&&!window.XMLHttpRequest;k.attr("src",l&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");k.remove();if(i==true){if(typeof n==="function"){if(n){n(m)}}else{if(n!="*"){refreshPostBack(n)}}}},resize:function(i,j){if(i.originalEvent.type=="restore"){jqResizeDialogIFrameExt("iframe#"+a,"#divModalHolder",this)}else{if(i.originalEvent.type=="maximize"){$("iframe#"+a).css("width","")}}}};var h=$("iframe#"+a);if(h.length==0){h=$('<iframe id="'+a+'" style="display: none; border: 0px; " src="" width="100%" height="100%"></iframe>')}h.load(function(){var i=$("iframe#"+a);jqResizeDialogIFrameExt("iframe#"+a,"#divModalHolder",this);i.dialog().css({visibility:"visible"});$(".ui-dialog").css({visibility:"visible"});i.unbind("load");if(i.dialog("option","autoScroll")==false){var j=i.contents().find("body,html");if(j){j.css("overflow","hidden")}}});h.attr("src",e+"?params="+c);h.dialog(g);h.dialog().css({visibility:"hidden"});$(".ui-dialog").css({visibility:"hidden"});h.dialog("open");$(window).on("resize.jquidialog",function(){$("#"+a).dialog({position:["center","center"]})});return a}function tbCloseIframe(a,c,b){var h,g;if(b){h=$("iframe#"+b);h.dialog("option","doPostback",a);h.dialog("option","outputParams",c);h.dialog("close")}else{var j=(window.location!=window.parent.location)?true:false;if(j){var f=$("iframe",parent.document);for(var d=0;d<f.length;d++){iframe=f.get(d);var e="contentDocument" in iframe?iframe.contentDocument:iframe.contentWindow.document;if(e==document){g=iframe;break}}if(g){h=window.parent.$("iframe#"+g.id);h.dialog("option","doPostback",a);h.dialog("option","outputParams",c);h.dialog("close")}}}}function tbClickButtonIframe(a,c,b){var j,h,d;if(b){j=$("iframe#"+b);d=j.dialog();j.dialog("option","outputParams",c);j.dialog("option","buttons")[a].click.apply(d)}else{var k=(window.location!=window.parent.location)?true:false;if(k){var g=$("iframe",parent.document);for(var e=0;e<g.length;e++){iframe=g.get(e);var f="contentDocument" in iframe?iframe.contentDocument:iframe.contentWindow.document;if(f==document){h=iframe;break}}if(h){j=window.parent.$("iframe#"+h.id);d=j.dialog();j.dialog("option","outputParams",c);j.dialog("option","buttons")[a].click.apply(d)}}}}var prefsLoaded=false;var defaultFontSize="12px";var currentFontSize=defaultFontSize;var fontSizeTitle="Velikost: ";var bigger="večje";var smaller="manjše";var reset="privzeto";var biggerTitle="večje";var smallerTitle="manjše";var resetTitle="privzeto";function setFontSize(a){if(currentFontSize!=a){currentFontSize=a;$("body").css("font-size",a);writeFontSize(currentFontSize)}}function changeFontSize(b){var a=parseInt(currentFontSize,10)+b;if(a>32){a=32}else{if(a<6){a=6}}setFontSize(""+a+"px")}function revertStyles(){setFontSize(defaultFontSize)}function writeFontSize(a){$.Storage.set("fontSize",a)}function readFontSize(){return $.Storage.get("fontSize")}function initFontSize(){if(!prefsLoaded){defaultFontSize=$("body").css("font-size");$.Storage.set("defaultFontSize",defaultFontSize);var a=readFontSize();a=a?a:defaultFontSize;setFontSize(a);prefsLoaded=true}}function saveFontSize(){writeFontSize(currentFontSize)}$(document).ready(function(){initFontSize()});$(window).unload(function(){});if(window.CKEDITOR){CKEDITOR.env.isCompatible=true}function gssPrintElement(a,b){var d=$(a+"Sub");if(d.length<=0){d=$(a)}if(d.length>0){var c=d;if(d.length>1){c=$(d[d.length-1])}c.printElement({printMode:"popup",overrideElementCSS:b,iframeElementOptions:{}})}}function openDlgFileOpen(a){var b=$("#ifrmObvestiloDat").dialog({modal:true,title:"Izberi datoteko",buttons:[{id:"btnDlgInsertLink",text:"Vstavi kot povezavo",click:function(){$($("#ifrmObvestiloDat").get(0).contentDocument).find("#finisher").click();var c=$($("#ifrmObvestiloDat").get(0).contentDocument).find("[id$=hfSelectedFiles]").val();ckeditorInsert(c,0);$("#ifrmObvestiloDat").dialog("close")}},{id:"btnDlgInsertImage",text:"Vstavi kot sliko",click:function(){$($("#ifrmObvestiloDat").get(0).contentDocument).find("#finisher").click();var c=$($("#ifrmObvestiloDat").get(0).contentDocument).find("[id$=hfSelectedFiles]").val();ckeditorInsert(c,1);$("#ifrmObvestiloDat").dialog("close")}},{id:"btnDlgInsertCancel",text:"Prekliči",click:function(){$("#ifrmObvestiloDat").dialog("close")}}],open:function(c,e){var d=$(this).data("dialogMode");$($("#ifrmObvestiloDat").get(0).contentDocument).find("[id$=hfDialogMode]").val(d);$($("#ifrmObvestiloDat").get(0).contentDocument).find("[id$=hfSelectedFiles]").val("");$($("#ifrmObvestiloDat").get(0).contentDocument).find("#refresher").click();$(this).dialog("maximize")},close:function(c,d){},focus:function(c,d){},resize:function(c,d){jqMaximizeDialogIFrame("#ifrmObvestiloDat","#layoutOuter")},minHeight:480,minWidth:600,autoOpen:false});if(a=="0"){jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertLink",true);jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertImage",false)}else{if(a=="1"){jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertLink",false);jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertImage",true)}else{jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertLink",true);jqDlgButtonShow("#ifrmObvestiloDat","btnDlgInsertImage",true)}}$("#ifrmObvestiloDat").data("dialogMode",a);$("#ifrmObvestiloDat").dialog("open")}function ckeditorInsert(a,b){var f=0;for(var g in CKEDITOR.instances){f=g;break}var j=CKEDITOR.instances[f];if(j){var e=a.split("§");if(e.length>5){var l=e[5];var d=l.split("=");var c=d[1].split("*");var p=c[2];var m=c[1]+c[2];var o=c[3];var q;var n;var k=Base64Ex.encodeURL("==731"+(iIdDatoteka^357892787).toString()+"§"+p);if(b==0){q="javascript: DownloadFile('"+o+"');";n='<a href="'+q+'">povezava ('+p+")</a>"}else{q=$.getRootUrl("Page_Handlers/FileDownloadHandler.ashx")+"?FileId="+o;n='<img fullpath="'+m+'" src="'+q+'" alt="'+p+'" style="max-width: 200px;" />'}var h=CKEDITOR.dom.element.createFromHtml(n,j.document);j.insertElement(h)}}}function ckeditorShowImage(a){var b=$(a);var c=b.attr("srclink");var d=DownloadFileLink(c);b.attr("src",c)}$(document).ready(function(){GimsBasics.setupResponsiveMenu(true);if(Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager){var a=Sys.WebForms.PageRequestManager.getInstance();a.add_endRequest(function(){GimsBasics.setupResponsiveMenu(false)})}});var GimsBasics={vars:{},tryParseJSON:function(b){try{var c=JSON.parse(b);if(c&&typeof c==="object"){return c}}catch(a){}return false},setupResponsiveMenu:function(b){var a=$(".horzMenuExDiv .menu-collapse");a.off("click").on("click",function(){var c=$(this);var d=c.siblings(".horzMenuEx");d.toggleClass("menu-open");c.toggleClass("selected",d.hasClass("menu-open"))})},};function preveriUporabnikPodatki(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtIme="+$("[id$=edtIme]").val()+"|edtPriimek="+$("[id$=edtPriimek]").val()+"|edtSpol="+$("[id$=edtSpol]").val()+"|edtEPosta="+$("[id$=edtEPosta]").val()+"|edtIndObvEPosta="+$("[id$=edtIndObvEPosta]").prop("checked")+"|edtTelefon="+$("[id$=edtTelefon]").val()+"|edtIndObvSMS="+$("[id$=edtIndObvSMS]").prop("checked")+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/PreveriUporabnikPodatki"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function shraniUporabnikPodatki(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtIme="+$("[id$=edtIme]").val()+"|edtPriimek="+$("[id$=edtPriimek]").val()+"|edtSpol="+$("[id$=edtSpol]").val()+"|edtEPosta="+$("[id$=edtEPosta]").val()+"|edtIndObvEPosta="+$("[id$=edtIndObvEPosta]").prop("checked")+"|edtTelefon="+$("[id$=edtTelefon]").val()+"|edtIndObvSMS="+$("[id$=edtIndObvSMS]").prop("checked")+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniUporabnikPodatki"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function preveriUporabnikGeslo(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtStaroGeslo="+$("[id$=edtStaroGeslo]").val()+"|edtGeslo="+$("[id$=edtGeslo]").val()+"|edtGeslo2="+$("[id$=edtGeslo2]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/PreveriUporabnikGeslo"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function shraniUporabnikGeslo(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtStaroGeslo="+$("[id$=edtStaroGeslo]").val()+"|edtGeslo="+$("[id$=edtGeslo]").val()+"|edtGeslo2="+$("[id$=edtGeslo2]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniUporabnikGeslo"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function preveriPrijavaOtroka(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtIme="+$("[id$=edtIme]").val()+"|edtPriimek="+$("[id$=edtPriimek]").val()+"|edtPristopKoda="+$("[id$=edtPristopKoda]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/PreveriPrijavaOtroka"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function shraniPrijavaOtroka(b,a){var c=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|edtIme="+$("[id$=edtIme]").val()+"|edtPriimek="+$("[id$=edtPriimek]").val()+"|edtPristopKoda="+$("[id$=edtPristopKoda]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniPrijavaOtroka"),data:'{ "aPodatki": "'+c+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(d){if(objIsAssigned(b)){b(d.d)}},error:function(d){if(objIsAssigned(a)){a(d)}}});return false}function shraniOdjavaOtroka(c,b,a){var d=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|IdOsebaOtrok="+c+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniOdjavaOtroka"),data:'{ "aPodatki": "'+d+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(objIsAssigned(b)){b(e.d)}},error:function(e){if(objIsAssigned(a)){a(e)}}});return false}function shraniPotrditevStarsa(d,c,e,b,a){var f=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|IdUporabnikStars="+d+"|IdOsebaOtrok="+c+"|Status="+e+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniPotrditevStarsa"),data:'{ "aPodatki": "'+f+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(g){if(objIsAssigned(b)){b(g.d)}},error:function(g){if(objIsAssigned(a)){a(g)}}});return false}function ponovnoPosljiCertKljuc(c,b,a){var d=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/PonovnoPosljiCertKljuc"),data:'{ "aPodatki": "'+d+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(objIsAssigned(b)){b(e.d)}},error:function(e){if(objIsAssigned(a)){a(e)}}});return false}function narociNovCertifikat(c,b,a){var d=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/NarociNovCertifikat"),data:'{ "aPodatki": "'+d+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(e){if(objIsAssigned(b)){b(e.d)}},error:function(e){if(objIsAssigned(a)){a(e)}}});return false}function preveriPorociloIBMyPKomentar(b,a){var c=$("table.tabelaVnos tr[data-target='1']");var e="";c.each(function(g,f){var h=$(f).attr("data-name");var j=$(f).find("input:checked").val();e+=h+"="+(j?j:"")+"|"});var d=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|IdPredmetKrovni="+$("[id$=hfIdPredmetKrovni]").val()+"|IdOcObdobje="+$("[id$=hfIdOcObdobje]").val()+"|edtKomentarUcenca="+$("[id$=edtKomentarUcenca]").val()+"|edtIdUgotovitev="+$("[id$=edtIdUgotovitev]").val()+"|"+e+"");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/PreveriPorociloIBMyPKomentar"),data:'{ "aPodatki": "'+d+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){if(objIsAssigned(b)){b(f.d)}},error:function(f){if(objIsAssigned(a)){a(f)}}});return false}function shraniPorociloIBMyPKomentar(b,a){var c=$("table.tabelaVnos tr[data-target='1']");var e="";c.each(function(g,f){var h=$(f).attr("data-name");var j=$(f).find("input:checked").val();e+=h+"="+(j?j:"")+"|"});var d=Base64Ex.encodeURL("IdUporabnik="+$("[id$=hfIdUporabnik]").val()+"|IdPredmetKrovni="+$("[id$=hfIdPredmetKrovni]").val()+"|IdOcObdobje="+$("[id$=hfIdOcObdobje]").val()+"|edtKomentarUcenca="+$("[id$=edtKomentarUcenca]").val()+"|edtIdUgotovitev="+$("[id$=edtIdUgotovitev]").val()+"|"+e+"");$.ajax({type:"POST",url:$.getRootUrl("WS_Gim/wsGimSisUtils.asmx/ShraniPorociloIBMyPKomentar"),data:'{ "aPodatki": "'+d+'" }',contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){if(objIsAssigned(b)){b(f.d)}},error:function(f){if(objIsAssigned(a)){a(f)}}});return false};