/*
jQuery functions for commissiemer.nl
Copyright (c) 2010-2011 Ylab, www.ylab.nl
Version: 2011-04-26
*/
var debugging=!1;function debug(){if(debugging){for(var c="",b=0;b<arguments.length;b++)c+=arguments[b]+"\n";c+="\nKlik op Annuleren om verdere meldingen te onderdrukken.";debugging=confirm(c)}}String.prototype.leadingZero=function(){return this<10?"0"+this:this};Number.prototype.leadingZero=function(){return this<10?"0"+this:this};
String.prototype.toDate=function(){var c=/([0-9]{4})[^[0-9]]*([0-1]?[0-9]{1})[^[0-9]]*([0-3]?[0-9]{1})/;if(result=this.match(/([0-3]?[0-9]{1})[^[0-9]]*([0-1]?[0-9]{1})[^[0-9]]*([0-9]{4})/)){if(result[1]>31)return!1;if(result[2]>12)return!1;return new Date(result[3],result[2]-1,result[1])}else if(result=this.match(c)){if(result[3]>31)return!1;if(result[2]>12)return!1;return new Date(result[1],result[2]-1,result[3])}return!1};
Date.prototype.toISO=function(){return""+this.getFullYear()+"-"+(this.getMonth()+1).leadingZero()+"-"+this.getDate().leadingZero()};Date.prototype.toFormalDate=function(){return""+this.getFullYear()+(this.getMonth()+1).leadingZero()+this.getDate().leadingZero()};
eval(function(c,b,a,e,d,f){d=function(a){return(a<b?"":d(parseInt(a/b)))+((a%=b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){for(;a--;)f[d(a)]=e[a]||d(a);e=[function(a){return f[a]}];d=function(){return"\\w+"};a=1}for(;a--;)e[a]&&(c=c.replace(RegExp("\\b"+d(a)+"\\b","g"),e[a]));return c}('(2($){$.c.f=2(p){p=$.d({g:"!@#$%^&*()+=[]\\\\\\\';,/{}|\\":<>?~`.- ",4:"",9:""},p);7 3.b(2(){5(p.G)p.4+="Q";5(p.w)p.4+="n";s=p.9.z(\'\');x(i=0;i<s.y;i++)5(p.g.h(s[i])!=-1)s[i]="\\\\"+s[i];p.9=s.O(\'|\');6 l=N M(p.9,\'E\');6 a=p.g+p.4;a=a.H(l,\'\');$(3).J(2(e){5(!e.r)k=o.q(e.K);L k=o.q(e.r);5(a.h(k)!=-1)e.j();5(e.u&&k==\'v\')e.j()});$(3).B(\'D\',2(){7 F})})};$.c.I=2(p){6 8="n";8+=8.P();p=$.d({4:8},p);7 3.b(2(){$(3).f(p)})};$.c.t=2(p){6 m="A";p=$.d({4:m},p);7 3.b(2(){$(3).f(p)})}})(C);',
53,53,"||function|this|nchars|if|var|return|az|allow|ch|each|fn|extend||alphanumeric|ichars|indexOf||preventDefault||reg|nm|abcdefghijklmnopqrstuvwxyz|String||fromCharCode|charCode||alpha|ctrlKey||allcaps|for|length|split|1234567890|bind|jQuery|contextmenu|gi|false|nocaps|replace|numeric|keypress|which|else|RegExp|new|join|toUpperCase|ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("|"),0,{}));jQuery.fn.enable=function(){return this.attr({disabled:""}).removeClass("disabled")};jQuery.fn.disable=function(){return this.attr({disabled:"disabled"}).addClass("disabled")};
jQuery.fn.isDisabled=function(){return this.attr("disabled")=="disabled"||this.hasClass("disabled")};jQuery.fn.intval=function(){if(this&&this.val())return Number(this.val().replace(/\./g,""));if(this&&this.html())return Number(this.html().replace(/\./g,""));return 0};
jQuery.fn.enhanceRows=function(c){this.css({cursor:"pointer"}).click(function(b){b.stopPropagation();b.preventDefault();var a=$("a",$(this)).attr("href");c?(b=$("a",$(this)).attr("title"),showEditForm(a+" #page",b,c)):window.location=a}).hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$("a",this).addClass("disguise");return this};
jQuery.cookie=function(c,b,a){if(arguments.length>1&&String(b)!=="[object Object]"){a=jQuery.extend({},a);if(b===null||b===void 0)a.expires=-1;if(typeof a.expires==="number"){var e=a.expires,d=a.expires=new Date;d.setDate(d.getDate()+e)}b=String(b);return document.cookie=[encodeURIComponent(c),"=",a.raw?b:encodeURIComponent(b),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=b||{};d=a.raw?function(a){return a}:
decodeURIComponent;return(e=RegExp("(?:^|; )"+encodeURIComponent(c)+"=([^;]*)").exec(document.cookie))?d(e[1]):null};
