var ns4=(document.layers?true:false),ie4=(document.all?true:false),server=document.location.protocol+"//"+document.location.host+"/",TWeekDay=new Array("wdSunday","wdMonday","wdTuesday","wdWednesday","wdThursday","wdFriday","wdSaturday"),wdSunday=0,wdMonday=1,wdTuesday=2,wdWednesday=3,wdThursday=4,wdFriday=5,wdSaturday=6;window.onresize=resize;if(window.navigator.appName=="Microsoft Internet Explorer"){document.onreadystatechange=docChange}if(!window.XMLHttpRequest&&window.ActiveXObject){window.XMLHttpRequest=function(){var c=["Microsoft.XMLHTTP","MSXML2.XMLHTTP"],b=c.length;while(b--){try{return new ActiveXObject(c[b])}catch(a){}}throw new Error("Error: No XML support in this browser.")}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e>b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b>e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_showHideLayers(){var c,e,a,d,b=MM_showHideLayers.arguments;for(c=0;c<(b.length-2);c+=3){if((d=MM_findObj(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a="hide")?"hidden":a}d.visibility=a}}}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}function MM_controlShockwave(objStr,x,cmdName,frameNum){var obj=MM_findObj(objStr);if(obj){eval("obj."+cmdName+"("+((cmdName=="GotoFrame")?frameNum:"")+")")}}function openWindow(c,b,d,a){window.open(c,b,"menubar=0,location=0,toolbar=0,scrollbars=1,resizable=0,status=0,width="+d+",height="+a+",top=25,left=25")}function openNormWindow(c,b,d,a){window.open(c,b,"menubar=1,location=1,toolbar=1,scrollbars=1,resizable=1,status=0,width="+d+",height="+a)}function toggleDisplay(a){if(a.length){a=document.getElementById(a)}if(a.style.display=="none"){a.style.display=""}else{a.style.display="none"}}function validateForm(){var validationPassed=true;for(var i=0;i<formFields.length;i++){if(formFieldMinLengths[i]!=null){if(document.forms[formName].elements[formFields[i]].value.length<formFieldMinLengths[i]){alert('Het veld "'+formFieldDescriptions[i]+'" bevat te weinig karakters.\nHet minimum aantal in te vullen karakters is '+formFieldMinLengths[i]+".\nOp dit moment heeft u "+document.forms[formName].elements[formFields[i]].value.length+" karakters gebruikt.");document.forms[formName].elements[formFields[i]].focus();validationPassed=false;break}}if(formFieldMaxLengths[i]!=null){if(document.forms[formName].elements[formFields[i]].value.length>formFieldMaxLengths[i]){alert('Het veld "'+formFieldDescriptions[i]+'" bevat te veel karakters.\nHet maximum aantal in te vullen karakters is '+formFieldMaxLengths[i]+".\nOp dit moment heeft u "+document.forms[formName].elements[formFields[i]].value.length+" karakters gebruikt.");document.forms[formName].elements[formFields[i]].focus();validationPassed=false;break}}if(formFieldAdditionalValidations[i]!=null){fieldValue=document.forms[formName].elements[formFields[i]].value;if(fieldValue!=parseInt(fieldValue)){fieldValue='"'+fieldValue+'"'}var evalFunc=replaceString(formFieldAdditionalValidations[i],"*",fieldValue);if(!eval(evalFunc)){document.forms[formName].elements[formFields[i]].focus();validationPassed=false;break}}}return validationPassed}function checkEmail(a){if(!isEmail(a)){alert(MSG_EmailError);return false}return true}function isEmail(a){var b=new RegExp("^((\\S+@).+((\\.com)|(\\.net)|(\\.info)|(\\.edu)|(\\.mil)|(\\.gov)|(\\.org)|(\\.int)|(\\.\\S{2,2})))$","gi");return b.test(a)}function isURL(a){var b=new RegExp("^((https?:\\/\\/|)([a-z0-9\\-\\.]{1,60}\\.[a-z]{2,4})|(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}))([\\/\\\\].+|)$","gi");return b.test(a)}function withZeros(a,c){var b="";if(a.indexOf(".")>-1){while(a.endsWith("0")){b+="0";a=a.substr(0,a.length-1)}if(a.endsWith(".")){b="."+b;a=a.substr(0,a.length-1)}}return(a+b)==(c+b)}function isNumeric(a){a=new String(a);if(a.indexOf(",")>-1&&a.indexOf(".")>-1){if(a.indexOf(",")>a.indexOf(".")){a=a.replace(/\./gi,"")}else{if(a.indexOf(",")<a.indexOf(".")){a=a.replace(/\,/gi,"")}}}a=a.replace(/\,/gi,".");return withZeros(a,parseFloat(a))}function toNumber(a){if(a.indexOf(",")>-1&&a.indexOf(".")>-1){if(a.indexOf(",")>a.indexOf(".")){a=a.replace(/\./gi,"")}else{if(a.indexOf(",")<a.indexOf(".")){a=a.replace(/\,/gi,"")}}}a=a.replace(/\,/gi,".");return parseFloat(a)}function isDate(d){if(new String(d).length==0){return true}var a=new String(d).split("-"),b=(a[0].substr(0,1)=="0"?parseInt(a[0].substr(1)):parseInt(a[0])),e,c;if(String(b)=="NaN"){return false}if(parseInt(b)!=Number(b)){return false}if(a.length<2||a.length>3||b<1){return false}if(a[1].substr(0,1)=="0"){e=parseInt(a[1].substr(1))}else{e=parseInt(a[1])}if(String(e)=="NaN"){return false}if(a.length==3){c=parseInt(a[2]);if(String(c)=="NaN"){return false}if(a[2].length==2){if(c<40){c+=2000}else{c+=1900}}}else{c=new Date().getYear()}if(c<1753||c>9999){return false}switch(e){case 2:if(c%4==0&&(c%100!=0||c%1000==0)){if(b>29){return false}}else{if(b>28){return false}}break;case 1:case 3:case 5:case 7:case 8:case 10:case 12:if(b>31){return false}break;case 4:case 6:case 9:case 11:if(b>30){return false}break;default:return false}return new Date(c,e-1,b,0,0)}function isTime(e){if(new String(e).length==0){return true}try{var a=new String(e).split(":"),b=(a[0].substr(0,1)=="0"?parseInt(a[0].substr(1)):parseInt(a[0])),d=(a[1].substr(0,1)=="0"?parseInt(a[1].substr(1)):parseInt(a[1])),f=(a.length>2?(a[2].substr(0,1)=="0"?parseInt(a[2].substr(1)):parseInt(a[2])):0);if(b<0||b>23){return false}if(d<0||d>59){return false}if(f<0||f>59){return false}if(f==NaN){f=0}return new Date(1900,0,1,b,d,f)}catch(c){return false}}function isDateTime(b){b=b.split(" ");if(b.length>1){var a=isDate(b[0]),c=isTime(b[1]);if(a!=false&&c!=false){a.setHours(c.getHours());a.setMinutes(c.getMinutes());a.setSeconds(c.getSeconds());return a}else{return false}}else{if(b[0].indexOf("-")>-1){return isDate(b[0])}else{if(b[0].indexOf(":")>-1){return isTime(b[0])}else{return false}}}}function replaceString(a,c,b){var d=a.indexOf(c);while(d>-1){a=a.substring(0,d)+b+a.substring(d+c.length);d=a.indexOf(c,d+b.length)}return a}function TRmOvr(b,a){b.style.cursor="hand";b.bgColor=a}function TRmOut(b,a){b.bgColor=a}function cookieName(a){a=escape(a);a=a.replace(/@/gi,"%40");a=a.replace(/\*/gi,"%2A");a=a.replace(/-/gi,"%2D");a=a.replace(/_/gi,"%5F");a=a.replace(/\+/gi,"%2B");a=a.replace(/\./gi,"%2E");a=a.replace(/\//gi,"%2F");return a}function setCookie(b,d,a){b=cookieName(b);if(d!=null&&typeof(d)!="undefined"&&String(d)!=""){var c=new Date().nextYear();if(arguments.length>2){c=a}if(c==null){document.cookie=b+"="+escape(d)}else{document.cookie=b+"="+escape(d)+";expires="+c.toGMTString()}}else{document.cookie=b+"=;expires="+new Date().priorDay().toGMTString()}}function getCookie(b){b=cookieName(b);var d=document.cookie,c=d.indexOf(" "+b+"=");if(c==-1){c=d.indexOf(b+"=")}if(c==-1){return null}c=d.indexOf("=",c)+1;var a=d.indexOf(";",c);if(a==-1){a=d.length}return unescape(d.substring(c,a))}function filterEvent(a){return String(a).replace(/^function \w+\((event)?\)\s*{\s*((.|\n)*)\s*}/,"$2")}function addEvent(a,c,b){if(typeof(b)=="string"){b=new Function("event",b)}if(a.attachEvent){a.attachEvent("on"+c,b)}else{a.addEventListener(c,b,false)}return b}var szPage=1,szWindow=2;Point=function(b,a){this.className="Point";if(typeof(b)!="undefined"){this.left=b}else{this.left=0}if(typeof(a)!="undefined"){this.top=a}else{this.top=0}};Size=function(b,a){this.className="Size";if(typeof(b)!="undefined"){this.width=b}else{this.width=0}if(typeof(a)!="undefined"){this.height=a}else{this.height=0}};function getSize(d){var b,e,c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}if(self.innerHeight){b=self.innerWidth;e=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;e=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;e=document.body.clientHeight}}}if(a<e){pageHeight=e}else{pageHeight=a}if(c<b){pageWidth=b}else{pageWidth=c}switch(d){case szPage:return new Size(pageWidth,pageHeight);break;case szWindow:return new Size(b,e);break;default:return new Array(pageWidth,pageHeight,b,e);break}}function getLeft(a){if(a&&a.nodeName!="#document"){if(a.style.position=="absolute"){return 0}else{if(a.style.position=="absolute"){return a.offsetLeft}else{return a.offsetLeft+getLeft(a.offsetParent)}}}else{return 0}}function getTop(a){if(a&&a.nodeName!="#document"){if(a.style.position=="absolute"){return 0}else{if(a.style.position=="absolute"){return a.offsetTop}else{return a.offsetTop+getTop(a.offsetParent)}}}else{return 0}}function getPos(a){return new Point(getLeft(a),getTop(a))}function resize(c){var b=getSize(szPage).width;for(var a=0;a<slideDivs.length;a++){slideDivs[a].reposition(b)}if(document.getElementById("message")){document.getElementById("message").style.left=((b-330)/2)+"px";if(document.getElementById("messageShadow")){document.getElementById("messageShadow").style.left=((b-330)/2)+7+"px"}if(document.getElementById("frmMessage")){document.getElementById("frmMessage").style.left=(document.getElementById("message").offsetLeft)+"px"}}if(typeof(customResize)!="undefined"){customResize(b,c)}}function docChange(){if(document.readyState=="complete"){load(event)}}function load(b){resize(b);for(var a=0;a<slideDivs.length;a++){slideDivs[a].initialize()}for(var a=0;a<toggleDivs.length;a++){toggleDivs[a].initialize()}if(document.getElementById("message")){document.getElementById("message").style.display="";if(document.getElementById("messageShadow")){document.getElementById("messageShadow").style.display=""}if(document.getElementById("frmMessage")){document.getElementById("frmMessage").style.height=(document.getElementById("message").offsetHeight+7)+"px";document.getElementById("frmMessage").style.width=(document.getElementById("message").offsetWidth+7)+"px";document.getElementById("frmMessage").style.left=(document.getElementById("message").offsetLeft)+"px";document.getElementById("frmMessage").style.top=(document.getElementById("message").offsetTop)+"px";document.getElementById("frmMessage").style.display=""}}if(typeof(customLoad)!="undefined"){customLoad(b)}}function displayImage(){if(arguments.length>1){var b=arguments[0],a=arguments[1];window.open("gallery.asp?galID="+b+"&index="+a,"displayImage","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=10,height=10,top=25,left=25")}else{var c=arguments[0];window.open("image.asp?fileName="+c,"displayImage","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=10,height=10,top=25,left=25")}}function printCat(a){window.open("printItem.asp?steID="+steID+"&ID="+a,"printItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=1,width=602,height=345,top=25,left=25")}function printItem(a){window.open("printItem.asp?steID="+steID+"&item="+a,"printItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=602,height=345,top=25,left=25")}function sendItem(a){window.open("sendItem.asp?steID="+steID+"&item="+a,"sendItem","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=456,height=300,top=25,left=25")}function callmoderator(a){window.open(a,"moderator","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=456,height=300,top=25,left=25")}function checkLogin(){if(document.frmLogin.edtUsername.value==""||document.frmLogin.edtUsername.value==document.frmLogin.edtUsername.defaultValue){document.frmLogin.edtUsername.focus();alert(MSG_Login_popuptext);return false}if(document.frmLogin.edtPassword.value==""||document.frmLogin.edtPassword.value==document.frmLogin.edtPassword.defaultValue){if(document.frmLogin.edtNepPassword){document.frmLogin.edtNepPassword.focus()}else{document.frmLogin.edtPassword.focus()}alert(MSG_Login_popuptext);return false}return true}function checkSearch(c){var b=0,a=c.elements[b];while(a&&a.type!="text"){a=c.elements[++b]}if(a.value==""||a.value==a.defaultValue){alert(MSG_NoSearchText);a.focus();return false}setCookie("addStatsSearch",1);return true}function clearInput(a){if(a.value==a.defaultValue){a.value=""}}function fillInput(a){if(a.value==""){a.value=a.defaultValue}}function submitEnter(a){if(event.keyCode==13&&a.form.fireEvent("onsubmit")){a.form.submit()}}function submitNieuwsbrief(a){if(a.value==a.defaultValue){a.focus();alert(MSG_EmailError);return false}else{return checkEmail(a.value)}}function textSize(b){var a=startSize+=b;if(a<1){a=1}if(a>5){a=5}startSize=a;document.body.style.fontSize=sizes[a-1];setCookie("fontSize",a)}function toUpper(){if(event.keyCode>96&&event.keyCode<123){event.keyCode-=32}}function toLower(){if(event.keyCode>64&&event.keyCode<91){event.keyCode+=32}}function upperFirst(a){a=new String(a);return a.substr(0,1).toUpperCase()+a.substr(1)}function fillOut(a){if(parseInt(a)<10){return"0"+new String(parseInt(a))}else{return parseInt(a)}}String.prototype.coalesce=function(){if(this){return this}for(var a=0;a<coalesce.arguments.length;a++){if(coalesce.arguments[a]){return coalesce.arguments[a]}}return""};String.prototype.endsWith=function(a){return(this.substr(this.length-a.length)==new String(a))};String.prototype.htmlEncode=function(){var a=String(this);if(!a){a=""}a=a.replace(/\"/gi,"&quot;");a=a.replace(/\</gi,"&lt;");a=a.replace(/\>/gi,"&gt;");return a};String.prototype.indent=function(b){var c="\r\n";if(typeof(b)=="undefined"){b=1}for(var a=0;a<b;a++){c+="\t"}return this.replace(/\r\n(\t*<)/gi,c+"$1")};String.prototype.lowerFirst=function(){return this.substr(0,1).toLowerCase()+this.substr(1)};String.prototype.shortenLeft=function(a){return this.substr(a)};String.prototype.shortenRight=function(a){return this.substr(0,this.length-a)};String.prototype.startsWith=function(a){return(this.substr(0,a.length)==new String(a))};String.prototype.trim=function(){var a=new String(this);while(a.substr(0,1)==" "||a.substr(0,1)=="\n"||a.substr(0,1)=="\t"){a=a.substr(1)}while(a.substr(a.length-1)==" "||a.substr(a.length-1)=="\n"||a.substr(a.length-1)=="\t"){a=a.substr(0,a.length-1)}return a};String.prototype.unindent=function(b){var c="\r\n";if(typeof(b)=="undefined"){b=1}for(var a=0;a<b;a++){c+="\t"}return this.replace(new RegExp(c),"\r\n")};String.prototype.upperFirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};Date.prototype.isLeapYear=function(){var a=this.getFullYear();if(a%4==0&&(a%100||a%1000==0)){return true}else{return false}};Date.prototype.daysInMonth=function(){switch(this.getMonth()+1){case 4:case 6:case 9:case 11:return 30;case 2:return(this.isLeapYear()?29:28);default:return 31}};Date.prototype.priorDay=function(b){if(!b){b=1}var a=new Date(this);if(a.getDate()-b>=1){a.setDate(a.getDate()-b)}else{if(a.getMonth()>0){a.setMonth(a.getMonth()-1);a.setDate(a.daysInMonth()-b+a.getDate())}else{a.setYear(a.getFullYear()-1);a.setMonth(11);a.setDate(a.daysInMonth()-b+a.getDate())}}return a};Date.prototype.nextDay=function(b){if(!b){b=1}var a=new Date(this);if(a.getDate()+b<=a.daysInMonth()){a.setDate(a.getDate()+b)}else{if(a.getMonth()<11){a.setDate(a.getDate()+b-a.daysInMonth());a.setMonth(a.getMonth()+1)}else{a.setDate(a.getDate()+b-a.daysInMonth());a.setYear(a.getFullYear()+1);a.setMonth(0)}}return a};Date.prototype.priorWeek=function(){return this.priorDay(7)};Date.prototype.nextWeek=function(){return this.nextDay(7)};Date.prototype.priorMonth=function(){var a=new Date(this);if(a.getMonth()>0){a.setMonth(a.getMonth()-1);while(a.getMonth()==this.getMonth()){a=a.priorDay()}}else{a.setMonth(11);a.setYear(a.getFullYear()-1)}return a};Date.prototype.nextMonth=function(){var a=new Date(this);if(a.getMonth()<11){a.setMonth(a.getMonth()+1);while(a.getMonth()>this.getMonth()+1){a=a.priorDay()}}else{a.setMonth(0);a.setYear(a.getFullYear()+1)}return a};Date.prototype.priorYear=function(b){if(!b){b=1}var a=new Date(this);a.setYear(a.getFullYear()-b);return a};Date.prototype.nextYear=function(b){if(!b){b=1}var a=new Date(this);a.setYear(a.getFullYear()+b);return a};Date.prototype.formatDate=function(b){var a=String(b);if(b==null||b==""||typeof(b)=="undefined"){a="D-M-YYYY"}a=a.replace(/yyyy/gi,this.getFullYear());if(a.toLowerCase().indexOf("yyy")>-1){throw'Illegal yearformat "yyy".'}a=a.replace(/yy/gi,new String(this.getFullYear()).substr(2));if(a.search(/mmm/gi)==-1){a=a.replace(/mm/gi,fillOut(this.getMonth()+1));a=a.replace(/m/gi,this.getMonth()+1)}if(a.search(/ddd/gi)==-1){a=a.replace(/dd/gi,fillOut(this.getDate()));a=a.replace(/d/gi,this.getDate())}a=a.replace(/hh/gi,fillOut(this.getHours()));a=a.replace(/h/gi,this.getHours());a=a.replace(/nn/gi,fillOut(this.getMinutes()));a=a.replace(/n/gi,this.getMinutes());a=a.replace(/ss/gi,fillOut(this.getSeconds()));a=a.replace(/s/gi,this.getSeconds());a=a.replace(/mmmm/gi,months[this.getMonth()]);a=a.replace(/mmm/gi,months[this.getMonth()].substr(0,3));a=a.replace(/dddd/gi,days[this.getDay()]);a=a.replace(/ddd/gi,days[this.getDay()].substr(0,3));return a};Date.prototype.weekNo=function(){var h=this.getFullYear(),f=this.getMonth()+1,j=this.getDate()+firstDay;var n=Math.floor((14-f)/12),i=h+4800-n,e=f+12*n-3,k=Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400),l=j+Math.floor((153*e+2)/5)+365*i+k-32045,o=(l+31741-(l%7))%146097%36524%1461,g=Math.floor(o/1460),c=((o-g)%365)+g,d=Math.floor(c/7)+1;return d};Date.prototype.isSameDate=function(a){return(this.getDate()==a.getDate()&&this.getMonth()==a.getMonth()&&this.getFullYear()==a.getFullYear())};Date.prototype.isSameTime=function(a){return(this.getSeconds()==a.getSeconds()&&this.getMinutes()==a.getMinutes()&&this.getHours()==a.getHours())};Date.prototype.jsDate=function(){return("new Date("+this.getFullYear()+", "+this.getMonth()+", "+this.getDate()+", "+this.getHours()+", "+this.getMinutes()+", "+this.getSeconds()+", "+this.getMilliseconds()+")")};Date.prototype.round=function(){var a=new Date(this);a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0);return a};Array.prototype.contains=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return true}}return false};Array.prototype.indexOf=function(b){for(var a=0;a<this.length;a++){if(this[a]==b){return a}}return -1};Array.prototype.remove=function(b){for(var a=b;a<this.length-1;a++){this[a]=this[a+1]}this.length--;return};Number.prototype.formatFloat=function(e){var d=String(this),a=e,c=d.split(/\./gi);if(e.length<1){return d}e=e.split(/\./gi);if(e[0].search(/0#/gi)>-1){throw'Illegal format in call to "formatFloat".'}if(e.length>1&&e[1].search(/#0/gi)>-1){throw'Illegal format in call to "formatFloat".'}if(e.length>2){throw'Illegal format in call to "formatFloat". Multiple use of decimal separator.'}if(!a.endsWith(".")){if(e.length==1){c=String(Math.round(d)).split(".")}else{if(e[1].length>0){c=String(Math.round(d*Math.pow(10,e[1].length))/Math.pow(10,e[1].length)).split(".")}}}d="";for(var b=0;b<c[0].length;b++){d=c[0].substr(c[0].length-b-1,1)+d}for(var b=c[0].length;b<e[0].length;b++){d=e[0].substr(e[0].length-b-1,1)+d}if(a.endsWith(".")||e.length>1){d+=",";if(c.length>1){for(var b=0;b<c[1].length;b++){d+=c[1].substr(b,1)}if(e.length>1){for(var b=c[1].length;b<e[1].length;b++){d+=e[1].substr(b,1)}}}else{if(e.length>1){for(var b=0;b<e[1].length;b++){d+=e[1].substr(b,1)}}}}d=d.replace(/#/gi,"");return d};Function.prototype.getName=function(){var a=String(this);a=a.substr(0,a.indexOf("("));a=a.replace(/^function\s(.+)/gi,"$1");return a};function valueString(c){var f="";if(typeof(c)=="boolean"){if(c){return"true"}else{return"false"}}else{if(typeof(c)=="number"){return c}else{if(typeof(c)=="string"){return'"'+c+'"'}else{if(typeof(c)=="undefined"){return"undefined"}else{if(typeof(c)=="object"){if(c==null){return"null"}else{try{var a=c.substr;if(c.length&&typeof(a)=="undefined"){for(var b=0;b<c.length;b++){f+=", "+valueString(c[b])}if(f.length){return"{"+f.substr(2)+"}"}else{return"{}"}}else{throw"geen array"}}catch(d){try{c.getYear();return"#"+c.formatDate("D-M-YYYY H:NN:SS")+"#"}catch(d){try{c.test();return c.toString()}catch(d){try{var a=c.tagName;if(typeof(a)!="undefined"){return"<"+a.toLowerCase()+"/>"}else{a=c.className;if(typeof(a)!="undefined"){if(a=="Point"){return"Point("+c.x+", "+c.y+")"}else{if(a=="Size"){return"Size("+c.width+", "+c.height+")"}else{return a}}}else{if(c.substr){return'"'+c+'"'}else{return c.toString().replace(/^\[object( [^\]]+)\]$/gi,"$1")}}}}catch(d){return c.toString().replace(/^\[object( [^\]]+)\]$/gi,"$1")}}}}}}else{if(typeof(c)=="function"){c=c.toString();return c.substr(0,c.indexOf(")")+1).substr(9)}else{return'unhandled type: "'+typeof(c)+'"'}}}}}}}function random(d){var c="1234567890abcdefghiklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXTZ",a="";for(var b=0;b<d;b++){a+=c.substr(Math.floor(Math.random()*c.length),1)}return a}function playerOpen(a,d){var b=window.open("","wndPlayer","width=320,height=40,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0");b.focus();var c="<html><head><title>"+a+"</title></head><body>\r\n";c+='<strong style="font-size:18px;font-family:Verdana,sans-serif;line-height:1.5">'+a+"</strong>\r\n";c+='<object width="300" height="42" ';c+='classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" ';c+='codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';c+='standby="Loading '+a+'" ';c+='type="application/x-oleobject" >\r\n';c+='	<param name="FileName" value="'+d+'">\r\n';c+="</object>\r\n";c+="</body></html>";b.document.write(c);b.document.close()}function frmThreadSubmit(a){if(a){if(new String(a.elements.edtTitle.value).trim()==""){a.elements.edtTitle.focus();alert("U heeft nog geen titel opgegeven.");return false}if(new String(a.elements.edtName.value).trim()==""){a.elements.edtName.focus();alert("U heeft nog geen naam opgegeven.");return false}if(new String(a.elements.edtEmail.value).trim()==""){a.elements.edtEmail.focus();alert("U heeft nog geen e-mail adres ingevoerd.");return false}if(!isEmail(new String(a.elements.edtEmail.value).trim())){a.elements.edtEmail.focus();alert("U heeft geen geldig e-mail adres ingevoerd.");return false}if(new String(a.elements.oldReaction.value).trim()==new String(a.elements.mmoReaction.value).trim()||new String(a.elements.mmoReaction.value).trim()==""){a.elements.mmoReaction.focus();alert("U heeft nog geen reactie ingevuld.");return false}}return true}function frmMaillistsSubmit(sender){if(sender){if(new String(sender.elements.edtEmail.value).trim()==""){sender.elements.edtEmail.focus();alert("U heeft nog geen e-mail adres ingevoerd.");return false}if(!isEmail(new String(sender.elements.edtEmail.value).trim())){sender.elements.edtEmail.focus();alert("U heeft geen geldig e-mail adres ingevoerd.");return false}var first=null,selected=false;for(var idx=0;idx<sender.elements.length;idx++){with(sender.elements[idx]){if(name.substr(0,6)=="mllID_"){if(checked){selected=true}if(!first){first=sender.elements[idx]}}}}if(first&&!selected){first.focus();alert("U heeft nog geen nieuwsbrief geselecteerd.");return false}}}function confirmPasswordChange(){var a=document.forms.frmLogin;if(a.elements.edtUsername.value.length>0){if(confirm("Weet u zeker dat u een nieuw wachtwoord wil opvragen?")){if(a.elements.edtUsername){a.elements.checkIN.value="newPassword";a.onsubmit=null;a.submit()}}}else{alert("U heeft geen gebruikersnaam ingevuld")}}function usrIDKeyDown(c,e){var d=document.forms.frmLoginLike,a=d.elements.usrID,g=0,f=1;if(e.keyCode==40){g=a.selectedIndex+1}else{if(e.keyCode==38){g=a.selectedIndex-1;f=-1}}if(String(c.value).length>0){for(var b=g;(f>0&&b<a.options.length)||(f<0&&b>0);b=b+f){if(String(a.options[b].text).toUpperCase().indexOf(c.value.toUpperCase())>-1){a.options[b].selected=true;return}}}}function formSelectChange(c,b){var a=String(c.name).split("_")[1],d=document.getElementById("divError_"+a);if(d){if(c.value==b){d.style.display=""}else{d.style.display="none"}}}TDateInput=function(name,element,button,block,date){var FMinDate=new Date(1753,0,1),FMaxDate=new Date(10000,0,1),FDate=(date?new Date(date):null),FShowDate=(FDate?FDate:new Date()),FName=name,FBlock=block,FElement=element,FButton=button;this.className="TDateInput";this.timer=0;this.doHide=true;this.onchange=null;if(typeof(name)=="undefined"||String(name).length==0){throw'Illegal call to constructor. "name" cannot be empty.'}try{eval(name)}catch(error){throw'"name" is not correct. '+name+" is undefined."}if(typeof(element)=="undefined"){throw'Illegal call to constructor. "element" cannot be empty.'}if(typeof(button)=="undefined"){throw'Illegal call to constructor. "button" cannot be empty.'}if(!FBlock){FBlock=new Array()}else{if(!FBlock.contains){throw'Illegal call to constructor. "block" should be an array of Date.'}}for(var i=0;i<FBlock.length;i++){if(!FBlock[i].formatDate){throw'Illegal call to constructor. "block" contains elements which are not of type Date.'}else{FBlock[i]=FBlock[i].round()}}this.div=document.createElement("DIV");this.div.id="div"+name.upperFirst();this.div.style.background="white";this.div.style.border="1px solid black";this.div.style.color="black";this.div.style.display="none";this.div.style.padding="0px";this.div.style.position="absolute";this.div.onmouseover=new Function("event",name+".stopHide( this );");this.div.onmouseout=new Function("event",name+".hide( this );");if(ie4){this.frame=document.createElement("IFRAME");this.frame.id="frm"+name.upperFirst();this.frame.src="/misc/leeg.html";this.frame.style.border="0px solid";this.frame.style.display="none";this.frame.style.position="absolute";this.frame.style.visiblity="hidden";this.frame.onmouseover=new Function("event",name+".stopHide( this );");this.frame.onmouseout=new Function("event",name+".hide( this );")}addEvent(window,"load",name+".init();");this.blocked=function(date){for(var i=0;i<FBlock.length;i++){if(FBlock[i].isSameDate(date)){return true}}return false};this.pButton=function(value){if(typeof(value)=="undefined"){return FButton}else{FButton=document.getElementById(value)}};this.pDate=function(value){if(typeof(value)=="undefined"){return FDate}else{if(value!=null){if(!value.formatDate){throw'Illegal assignment to date. Value is not a date object and not null ("'+valueString(value)+'").'}value=value.round();if(value>=FMaxDate){throw'De ingevoerde datum ligt te ver in de toekomst. De datum moet kleiner dan "'+FMaxDate.formatDate("D-M-YYYY")+'" zijn.'}if(value<FMinDate){throw'De ingevoerde datum ligt te ver in het verleden. De datum moet groter of gelijk zijn aan "'+FMinDate.formatDate("D-M-YYYY")+'".'}if(this.blocked(value.round())){throw"De ingevoerde datum is niet correct. Deze datum is aangegeven als niet te selecteren."}}}if(FDate!=value){FDate=value;if(FDate==null){this.pElement().value=""}else{this.pElement().value=FDate.formatDate("D-M-YYYY");this.pShowDate(FDate)}this.write();if(this.onchange){this.onchange()}}return};this.pElement=function(value){if(typeof(value)=="undefined"){return FElement}else{FElement=document.getElementById(value)}};this.pMaxDate=function(value){if(typeof(value)=="undefined"){return FMaxDate}else{if(value>new Date(9999,11,31)){throw"Illegal assignment to maxDate. Max. value is 31-12-9999"}else{if(value<new Date(1753,0,1)){throw"Illegal assignment to maxDate. Min. value is 1-1-1753"}else{if(value<=FMinDate){throw"Illegal assignment to maxDate. Date smaller than minDate"}else{FMaxDate=value.round();if(FDate&&FDate>=FMaxDate){this.pDate(FMaxDate.priorDay())}if(FShowDate&&FShowDate>=FMaxDate){this.pShowDate(FMaxDate.priorDay())}else{this.write()}}}}}return};this.pMinDate=function(value){if(typeof(value)=="undefined"){return FMinDate}else{if(value>new Date(9999,11,31)){throw"Illegal assignment to minDate. Max. value is 31-12-9999"}else{if(value<new Date(1753,0,1)){throw"Illegal assignment to minDate. Min. value is 1-1-1753"}else{if(value>=FMaxDate){throw"Illegal assignment to minDate. Date greater than maxDate"}else{FMinDate=value.round();if(FDate&&FDate<FMinDate){this.pDate(FMinDate)}if(FShowDate&&FShowDate<FMinDate){this.pShowDate(FMinDate)}else{this.write()}}}}}return};this.pName=function(){return FName};this.pShowDate=function(value){if(typeof(value)=="undefined"){return FShowDate}else{if(value>=FMaxDate){FShowDate=FMaxDate.priorDay()}else{if(value<FMinDate){FShowDate=FMinDate}else{FShowDate=value.round()}}}this.write();return};this.td=function(date){var min=new Date(FMinDate),max=new Date(FMaxDate),disabled=false,retVal="";if(date<FMinDate||date>=FMaxDate||this.blocked(date)){disabled=true;retVal+=' disabled="true"'}else{if(ie4){retVal+=' onclick="if ( '+FName+".setDate("+date.jsDate()+") ) {"+FName+".div.style.display = 'none'; "+FName+".frame.style.visibility = 'hidden'; }\""}else{retVal+=' onclick="if ( '+FName+".setDate("+date.jsDate()+") ) "+FName+".div.style.display = 'none';\""}}if(date.getMonth()!=FShowDate.getMonth()){retVal+=' class="calDayOM'}else{retVal+=' class="calDay'}if(date.isSameDate(new Date())){retVal+=" calToday"}if(FDate&&date.isSameDate(FDate)){retVal+=" calSelected"}retVal+='"';if(!disabled){retVal+=" onmouseover=\"this.oldclass = this.className; this.className += ' calSelected';\"";retVal+=' onmouseout="this.className = this.oldclass;"'}else{retVal+=' style="color:gray; cursor:default;"'}return retVal}};TDateInput.prototype.button=function(){return this.pButton()};TDateInput.prototype.date=function(a){return this.pDate(a);if(typeof(a)!="undefined"&&this.onchange){this.onchange()}return retVal};TDateInput.prototype.dayNo=function(a){return(a.getDay()<firstDay?(7-firstDay)+a.getDay():a.getDay()-firstDay)};TDateInput.prototype.element=function(){return FElement};TDateInput.prototype.hide=function(a,b){if(this.doHide){if(typeof(b)=="undefined"){b=50}if(ie4){this.timer=setTimeout(this.name()+'.div.style.display = "none"; '+this.name()+'.frame.style.visibility = "hidden";',b)}else{this.timer=setTimeout(this.name()+'.div.style.display = "none";',b)}}};TDateInput.prototype.init=function(){this.pElement(this.pElement());if(this.pElement().value!=""){this.setDate(this.pElement())}this.onchange=new Function("event",filterEvent(this.pElement().onchange).replace("this","this.pElement()"));this.pElement().onchange=new Function("event",this.name()+".setDate( this );");if(ie4){this.pElement().style.behavior=null}this.pButton(this.pButton());this.pButton().onmouseout=new Function("event",this.name()+".hide( this, 500 );");this.pButton().onmouseover=new Function("event",this.name()+".stopHide( this );");this.pButton().onclick=new Function("event",this.name()+".show( this )");if(this.pButton().hideFocus){this.pButton().hideFocus=true}if(typeof(this.frame)!="undefined"){document.body.appendChild(this.frame)}document.body.appendChild(this.div)};TDateInput.prototype.maxDate=function(a){return this.pMaxDate(a)};TDateInput.prototype.minDate=function(a){return this.pMinDate(a)};TDateInput.prototype.name=function(){return this.pName()};TDateInput.prototype.nextMonth=function(){try{this.pShowDate(this.pShowDate().nextMonth());return true}catch(a){if(a.description){alert(a.description)}else{if(a.message){alert(a.message)}else{alert(a)}}return false}};TDateInput.prototype.priorMonth=function(){try{this.pShowDate(this.pShowDate().priorMonth());return true}catch(a){if(a.description){alert(a.description)}else{if(a.message){alert(a.message)}else{alert(a)}}return false}};TDateInput.prototype.setDate=function(b){if(b==this.pElement()){if(String(this.pElement().value).length>0){b=isDate(this.pElement().value)}else{b=null}if(b==false){alert("De ingevoerde datum is niet correct. Er wordt een datum met het volgende formaat verwacht: D-M-J.");if(!ie4){if(this.date()){this.pElement().value=this.date().formatDate("D-M-YYYY")}else{this.pElement().value=""}this.pElement().focus()}else{this.pElement().select();event.returnValue=false}return false}}else{if(!b.formatDate&&b!=null){b=isDate(b)}}try{this.pDate(b);return true}catch(a){if(a.description){alert(a.description)}else{if(a.message){alert(a.message)}else{alert(a)}}return false}};TDateInput.prototype.setMonth=function(c){try{var b=new Date(this.pShowDate());b.setMonth(c.value);this.pShowDate(b);return true}catch(a){if(a.description){alert(a.description)}else{if(a.message){alert(a.message)}else{alert(a)}}return false}};TDateInput.prototype.setYear=function(c){try{var b=new Date(this.pShowDate());b.setYear(c.value);this.pShowDate(b);return true}catch(a){if(a.description){alert(a.description)}else{if(a.message){alert(a.message)}else{alert(a)}}return false}};TDateInput.prototype.show=function(c){if(this.div.style.display=="none"&&this.date()){this.pShowDate(this.date())}var b=getLeft(this.pButton()),e=getTop(this.pButton())+this.pButton().offsetHeight,a=getLeft(this.pElement()),d=getTop(this.pElement())+this.pElement().offsetHeight;this.x=a;this.y=Math.max(e,d);this.div.style.left=this.x+"px";this.div.style.top=this.y+"px";this.div.style.zIndex=1000;this.div.style.display="block";if(this.div.offsetLeft+this.div.offsetWidth<b){this.div.style.left=(b+this.pButton().offsetWidth-this.div.offsetWidth)+"px"}if(typeof(this.frame)!="undefined"){this.frame.style.zIndex=999;this.frame.style.left=this.div.offsetLeft+"px";this.frame.style.top=this.div.offsetTop+"px";this.frame.style.width=this.div.offsetWidth+"px";this.frame.style.height=this.div.offsetHeight+"px";this.frame.style.display="block";this.frame.style.visibility="visible"}};TDateInput.prototype.showDate=function(a){return this.pShowDate(a)};TDateInput.prototype.startHiding=function(){this.doHide=true};TDateInput.prototype.stopHiding=function(){this.doHide=false};TDateInput.prototype.stopHide=function(a){clearTimeout(this.timer);this.timer=0};TDateInput.prototype.write=function(){var b=this.name(),c=new Date(this.pShowDate()),f=new Date(this.pMinDate()),l=new Date(this.pMaxDate()),k=c.getFullYear(),j=c.getMonth(),a=new Date(k,j,1),p=a.nextMonth(),d=this.dayNo(a),m=new Date(c),h=c.nextMonth(),e="";m.setDate(1);m=m.priorDay();if(m<f){m=' disabled="true"'}else{m=""}h.setDate(1);if(h>l){h=' disabled="true"'}else{h=""}e='<table border="0" cellspacing="0" cellpadding="3" style="float:left;">\r\n	<col/><col/><col/><col/><col/><col/><col/><col/>\r\n	<tr style="font-size:90%;">\r\n		<td colspan="5" align="center" style="padding:0px 0px; border-bottom:1px solid black;">\r\n			<select onchange="'+b+".setMonth( this ); "+b+'.startHiding();" onmousedown="'+b+".stopHide( this ); "+b+'.stopHiding();" onmouseleave="'+b+'.startHiding();" style="width:100%">\r\n';var o=0,n=11;if(o<f.getMonth()&&k==f.getFullYear()){o=f.getMonth()}if(n>l.getMonth()&&k==l.getFullYear()){n=l.getMonth()}for(var g=o;g<n+1;g++){e+='				<option value="'+g+'"'+(g==j?' selected="selected"':"")+">"+months[g]+"</option>\r\n"}e+='			</select>\r\n		</td>\r\n		<td colspan="3" align="center" style="padding:0px 0px; border-bottom:1px solid black;">\r\n			<select onchange="'+b+".setYear( this ); "+b+'.startHiding();" onmousedown="'+b+".stopHide( this ); "+b+'.stopHiding();" onmouseleave="'+b+'.startHiding();" style="width:100%">\r\n';o=c.getFullYear()-75;n=c.getFullYear()+75;if(o<f.getFullYear()){o=f.getFullYear()}if(n>l.getFullYear()){n=l.getFullYear()}for(var g=o;g<n+1;g++){e+='				<option value="'+g+'"'+(g==k?' selected="selected"':"")+">"+g+"</option>\r\n"}e+='			</select>\r\n		</td>\r\n	</tr>\r\n	<tr style="font-size:90%;">\r\n		<td style="padding:0px 0px;"><button type="button"'+m+' onclick="'+b+'.priorMonth();" onmouseover="'+b+'.stopHide( this );" style="width:100%; margin:0px;">&lt;</button></td>		<td colspan="6" align="center">'+c.formatDate("MMMM YYYY")+'</td>\r\n		<td style="padding:0px 0px;"><button type="button"'+h+' onclick="'+b+'.nextMonth();"  onmouseover="'+b+'.stopHide( this );" style="width:100%; margin:0px;">&gt;</button></td>\r\n	</tr>\r\n	<tr height="20" style="font-size:90%;">\r\n		<td><img src="/img/pixTrans.gif" height="1" width="20" /></td>\r\n';for(var g=firstDay;g<7;g++){e+='		<td class="calDayHeader"><img src="/img/pixTrans.gif" height="1" width="20" /><br/>'+days[g].substr(0,2)+"</td>\r\n"}for(var g=0;g<firstDay;g++){e+='		<td class="calDayHeader"><img src="/img/pixTrans.gif" height="1" width="20" /><br/>'+days[g].substr(0,2)+"</td>\r\n"}e+='	</tr>\r\n	<tr style="font-size:90%;">\r\n		<td class="calWeekNo" style="cursor:default;">'+a.priorDay(d).weekNo()+"</td>\r\n";for(var g=d;g>0;g--){var m=a.priorDay(g);e+="		<td"+this.td(m)+">"+m.formatDate("d")+"</td>\r\n"}while(a<p){e+="		<td"+this.td(a)+">"+a.formatDate("d")+"</td>\r\n";a=a.nextDay();d=this.dayNo(a);if(a<p&&d==0){e+='	</tr>\r\n	<tr style="font-size:90%;">\r\n		<td class="calWeekNo" style="cursor:default;">'+a.weekNo()+"</td>"}}if(d){for(var g=0;g<20&&d<7;a=a.nextDay(),g++){e+="<td"+this.td(a)+">"+a.formatDate("d")+"</td>";d++}}e+="	</tr>\r\n</table>";this.div.innerHTML=e};TUser=function(b,c,d,a){this.ID=b;this.fullname=c;this.username=d;this.eMail=a};TUser.prototype.toJS=function(){var a="new TUser( "+valueString(this.ID)+", "+valueString(this.fullname)+", "+valueString(this.username)+", "+valueString(this.eMail)+")";return a};TUser.prototype.toXML=function(a){if(typeof(a)=="undefined"){a="user"}var b="\r\n<"+a;if(String(this.ID)!="null"){b+=' ID="'+this.ID+'"'}b+=">";if(this.fullname){b+="\r\n\t<fullname>"+this.fullname+"</fullname>"}if(this.username){b+="\r\n\t<username>"+this.username+"</username>"}if(this.eMail){b+="\r\n\t<eMail>"+this.eMail+"</eMail>"}b+="\r\n</"+a+">";return b};
