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

