if(!this.JSON2){JSON2=function(){function f(n){return n<10?'0'+n:n;} Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+ f(this.getUTCMonth()+1)+'-'+ f(this.getUTCDate())+'T'+ f(this.getUTCHours())+':'+ f(this.getUTCMinutes())+':'+ f(this.getUTCSeconds())+'Z';};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==='string'){return c;} return'\\u'+('0000'+ (+(a.charCodeAt(0))).toString(16)).slice(-4);})+'"':'"'+string+'"';} function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);} if(typeof rep==='function'){value=rep.call(holder,key,value);} switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';} gap+=indent;partial=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){length=value.length;for(i=0;i>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;} output=output+keyStr.charAt(enc1)+keyStr.charAt(enc2)+ keyStr.charAt(enc3)+keyStr.charAt(enc4);}while(i>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;out=out+String.fromCharCode(chr1);if(enc3!=64){out=out+String.fromCharCode(chr2);} if(enc4!=64){out=out+String.fromCharCode(chr3);} chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i',start) stop3=head.indexOf("'",start) stop=head.length if(stop10)stop=stop1 if(stop20)stop=stop2 if(stop30)stop=stop3 xhttppageencoding=head.substr(start,stop-start)} else {} return xhttppageencoding;} TAjax.prototype.doRequest=function() {var url url=this.Sourcefile;url=_tajax.addCSRFTokenToUrl(url);this.xmlhttp.open("GET",url,true);eval('this.xmlhttp.onreadystatechange= function() {\nreadyhandle(\''+this.cn+'\');\n }');this.xmlhttp.send(null);} TAjax.prototype.doPost=function() {var url url=this.Sourcefile;if(typeof tajax_csrftokennm!='undefined') {if(url.indexOf('?')>-1) {if(url.substr(url.length-1,1)=='&') {url+=tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);} else {url+='&'+tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);}} else {url+='?'+tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);}} this.xmlhttp.open("POST",url,true);eval('this.xmlhttp.onreadystatechange= function() {\nreadyhandle(\''+this.cn+'\');\n }');this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset="+this.getCharset());this.xmlhttp.send(this.doctosend);} TAjax.prototype.ready=function() {if(this.xmlhttp.readyState==4){eval(this.onReadyresponsecommand);}} TAjax.prototype.doExecute=function(source) {eval(source);} TAjax.prototype.ReportFail=function(source) {if(this.Debug==1) {alert('Request failed:'+this.xmlhttp.getAllResponseHeaders()+'\n===========\n'+source);}} function deleteresponse(nr) {if(TA[nr].deleted!='yes') {delete(TA[nr].xmlhttp);TA[nr].deleted='yes';}} function getresponse(nr) {if(typeof TA[nr]=='object') {TA[nr].doctosend='';if(typeof env=="undefined") {setTimeout('deleteresponse('+nr+')',2000);} return TA[nr].xmlhttp.responseText;} else {return'';}} function getresponsexml(nr) {if(typeof TA[nr]=='object') {TA[nr].doctosend='';if(typeof env=="undefined") {setTimeout('deleteresponse('+nr+')',2000);} return TA[nr].xmlhttp.responseXML;} else {return'';}} if(typeof loaderbar=='object'){loaderbar.loadedfile('ajax.js');} function tajaxDefaultConfig() {this.queing=true;this.autoabort=true;this.defaulttimeout=10;this.debugmode=false;} function tajaxDefaultCallConfig() {this.method='GET';this.doc='';this.weight=10;this.priority=0;this.onError='alert("error")';this.charset='UTF-8';} function tajax_container(cn,config) {this.cn=cn;this.debugmessages=[];this.defaultconfig=new tajaxDefaultConfig;this.currentcalls=[];this.history=[];this.ajaxqueuea=[];this.ajaxqueueb=[];if(typeof config=='object') {this.config=config;} else {this.config=[];} for(var i in this.defaultconfig) {if(typeof this.config[i]=='undefined') {this.config[i]=this.defaultconfig[i];}}} tajax_container.prototype.addCSRFTokenToUrl=function(url) {if(typeof tajax_csrftokennm!='undefined') {if(url.indexOf('?')>-1) {if(url.substr(url.length-1,1)=='&') {url+=tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);} else {url+='&'+tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);}} else {url+='?'+tajax_csrftokennm+'='+encodeURIComponent(tajax_csrftoken);}} return url;} tajax_container.prototype.printdebugdata=function(out) {if(typeof out=="undefined") {out='ajaxdebugout';} var html='';html+='Debug output
';html+='Queued items A:'+this.ajaxqueuea.length+'
';for(var pq=0;pq';} html+='Queued items B:'+this.ajaxqueueb.length+'
';for(pq=0;pq';} html+='History:'+this.history.length+'
';for(pq=0;pq';} if(typeof this.currentcalls[0]!='object') {html+='
feed A free';} else {html+='
feed A busy';} if(typeof this.currentcalls[1]!='object') {html+='
feed B free';} else {html+='
feed B busy';} document.getElementById(out).innerHTML=html;} tajax_container.prototype.debug=function(text) {this.debugmessages[this.debugmessages.length]=text;if(this.config.debugmode) {if(typeof this.config.debugout!='undefined') {document.getElementById(this.config.debugout).innerHTML+=text+'
';} else {alert(text);}}} tajax_container.prototype.readyStateChangeA=function() {_tajax.currentcalls[0].readyStateChange();} tajax_container.prototype.readyStateChangeB=function() {_tajax.currentcalls[1].readyStateChange();} tajax_container.prototype.feedAReady=function() {_tajax.feedReady('A');} tajax_container.prototype.feedBReady=function(feed) {_tajax.feedReady('B');} tajax_container.prototype.feedReady=function(feed) {var tmp=null;this.debug('feed ready'+feed);if(feed=="A") {tmp=this.currentcalls[0];this.currentcalls[0]='';} else {tmp=this.currentcalls[1];this.currentcalls[1]='';} var hcallnr=this.history.length;this.history[hcallnr]=tmp;if(typeof this.history[hcallnr].onFinish=='function') {this.history[hcallnr].onFinish(this.history[hcallnr].response);}} tajax_container.prototype.init=function() {this.interval=setInterval(this.cn+".handleQueue()",200);} tajax_container.prototype.handleQueue=function() {if(this.queuerunning) {return false;} this.queuerunning=true;afeedfree=false;bfeedfree=false;afeednext=-1;bfeednext=-1;bfeedbecameafeed=false;if(typeof this.currentcalls[0]!='object') {afeedfree=true;} if(typeof this.currentcalls[1]!='object') {bfeedfree=true;} lowestprir=false;for(tot=this.ajaxqueuea.length-1;tot>-1;tot--) {tprir=this.ajaxqueuea[tot].weight-this.ajaxqueuea[tot].priority;if(!lowestprir){lowestprir=tprir;afeednext=tot;} if(lowestprir>tprir) {lowestprir=tprir;afeednext=tot;}} lowestprir=false;for(tot=this.ajaxqueueb.length-1;tot>-1;tot--) {tprir=this.ajaxqueueb[tot].weight-this.ajaxqueueb[tot].priority;if(!lowestprir){lowestprir=tprir;bfeednext=tot;} if(lowestprir>tprir) {lowestprir=tprir;bfeednext=tot;}} if(afeedfree) {if(afeednext>-1) {this.debug('starting the a feed with something from a queue ->'+afeednext);this.startafeed(this.ajaxqueuea[afeednext]);this.removefromqueuea(afeednext);this.debug('Queue length'+this.ajaxqueuea.length);} else {if(bfeednext>-1) {bfeedbecameafeed=true;this.debug('starting the a feed with something from b queue ->'+bfeednext);this.startafeed(this.ajaxqueueb[bfeednext]);this.removefromqueueb(bfeednext);this.debug('Queue length'+this.ajaxqueueb.length);} else {}}} if(bfeedfree) {if(!bfeedbecameafeed) {if(bfeednext>-1) {this.debug('starting the b feed with something from b queue ->'+bfeednext);this.startbfeed(this.ajaxqueueb[bfeednext]);this.removefromqueueb(bfeednext);this.debug('Queue length'+this.ajaxqueueb.length);} else {}} else {}} this.queuerunning=false;} tajax_container.prototype.startafeed=function(call) {this.currentcalls[0]=call;this.currentcalls[0].feed=0;this.currentcalls[0].doCall();} tajax_container.prototype.startbfeed=function(call) {this.currentcalls[1]=call;this.currentcalls[1].feed=1;this.currentcalls[1].doCall();} tajax_container.prototype.removefromqueuea=function(queueaid) {newar=[];for(hh=0;hhdocument.body.offsetHeight){yWithScroll=document.body.scrollHeight;xWithScroll=document.body.scrollWidth;}else{yWithScroll=document.body.offsetHeight;xWithScroll=document.body.offsetWidth;} arrayPageSizeWithScroll=new Array(xWithScroll,yWithScroll);return arrayPageSizeWithScroll;} viewportinfo.prototype.getviewportsize=function() {var viewportwidth;var viewportheight;var pagesizewithscroll=this.getPageSizeWithScroll();var viewprt={};var docwidth=pagesizewithscroll[0];var docheight=pagesizewithscroll[1];if(typeof window.innerWidth!='undefined') {viewportwidth=window.innerWidth;viewportheight=window.innerHeight;} else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0) {viewportwidth=document.documentElement.clientWidth;viewportheight=document.documentElement.clientHeight;} else {viewportwidth=document.getElementsByTagName('body')[0].clientWidth;viewportheight=document.getElementsByTagName('body')[0].clientHeight;} viewprt={};viewprt.width=viewportwidth;viewprt.height=viewportheight;if(docheightdocument.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;} var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;} if(yScroll:'+md3lists.lists[elem].config[i]+'
';} out+='sort
';for(var i in md3lists.lists[elem].sort) {out+=''+i+':'+md3lists.lists[elem].sort[i]+'
';} document.getElementById(outelem).innerHTML=out;}} md3debug.prototype.show=function(elem) {document.getElementById(elem).style.display='block';} md3debug.prototype.refresh=function() {var html='';html+='';html+='
elements:
';var tmpobj;html+='
Forms
';html+='';if(available) {htmla+=thtml;} else {htmlb+=thtml;}} html+='Existing forms:
'+htmla;html+='
Old forms:
'+htmlb;html+='
';html+='
Lists
';html+='';html+='';document.getElementById(this.output).innerHTML=html;} var _md3debug=new md3debug('_md3debug'); function print_r(variable,returnMe) {if(typeof returnMe=='undefined') {returnMe=false;} if(returnMe) {return JSON2.stringify(variable);} else {alert(JSON2.stringify(variable));}} if(!Array.prototype.filter){Array.prototype.filter=function(fun,scope){var T=this,A=[],i=0,itm,L=T.length;if(typeof fun=='function'){while(i-1) {parts=txt.split('/*JSGC::',2);parts=parts[1].split('*/',2);if(document.getElementById(parts[0])) {if(typeof console!='undefined') {} continue;} else {html_doc.removeChild(scripts.item(o));if(typeof console!='undefined') {}}}}} setInterval('jsGC();',10000);function execJS(node){var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bChrome=(navigator.userAgent.indexOf('Chrome')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');var bIE=(navigator.appName=='MSIE');var st=node.getElementsByTagName('script');var strExec;for(var i=0;i-1) {eval(strExec);} else {var html_doc=document.getElementsByTagName('head').item(0);var js=document.createElement('script');js.setAttribute('language','javascript');js.setAttribute('type','text/javascript');js.text=strExec;if(tmpsrc!='') {js.setAttribute('src',tmpsrc);} html_doc.appendChild(js);} continue;}catch(e){alert('execjs'+e.getMessage());}}} if(typeof loaderbar=='object'){loaderbar.loadedfile('main.js');} var scalersizes=[];tmpscale={};tmpscale.biggerthan=1280;tmpscale.targetwidth=1200;tmpscale.sidespacing='%';tmpscale.showfullscreen=true;scalersizes[scalersizes.length]=tmpscale;tmpscale={};tmpscale.smallerthan=1000;tmpscale.targetwidth='%';tmpscale.sidespacing=0;tmpscale.showfullscreen=false;scalersizes[scalersizes.length]=tmpscale;tmpscale={};tmpscale.isdefault=true;tmpscale.targetwidth='%';tmpscale.sidespacing=13;tmpscale.showfullscreen=false;scalersizes[scalersizes.length]=tmpscale;var fullscreensize=tmpscale; function punt_api(cn) {this.cn=cn;this.msgboxes=[];this.widgets=[];this.hooks=[];this.timers=[];this.mydrag=[];this.totalWROteller=0;this.uplform=0;this.reporter=0;this.messagelist=[];this.stepspeed=10;this.icon1sizex=90;this.icon1sizex=80;this.icon2sizex=45;this.icon2sizey=40;this.actionButtons=[];this.actionButtons2=[];this.actionButtontarget='main';this.defaulttarget='';this.debug=false;this.currentlang='';this.currentlangtags='';this.autoupdatelangtags=0;this.openchanges=false;this.keepNotificationsForTrip=0;this.isFullScreen=false;this.includeAlternativeTargets=false;} punt_api.prototype.selectLocaleDialog=function() {puntdialog.startdialog('adminoverview','selectLocale','','');} punt_api.prototype.checkUnsavedChanges=function() {var unsaved=false;if(typeof FUM!='undefined') {if(FUM.uploadIsHappening()) {if(!unsaved) {unsaved='';} else {unsaved+=',';} unsaved+='Je bent nog bezig met het uploaden van bestanden.';}} return unsaved;} punt_api.prototype.attachEvent=function(element,ev,func) {if(window.addEventListener){element.addEventListener(ev,func,false);}else{element.attachEvent('on'+ev,func);}} punt_api.prototype.befunload=function() {var response='';if(response=puntapi.checkUnsavedChanges()){return response;} else {}} punt_api.prototype.rescale=function(e) {puntforms.rescalestart();try{_lb.rescale();}catch(e){} puntapi.redrawPositions();if(typeof FUM!='undefined') {FUM.rescale();} if(typeof _tW!='undefined') {_tW.rescale();} puntforms.rescaledone();if(typeof timg!='undefined') {timg.rescale();}} punt_api.prototype.toggleAlternativeTargets=function() {if(this.includeAlternativeTargets) {this.includeAlternativeTargets=false;} else {this.includeAlternativeTargets=true;}} punt_api.prototype.saveLanguageWidgetdoneEXT=function(msg) {var msgtxt=msg.text.split('^');var msgtxt2=msgtxt[0].split('#');if(msgtxt[1]=='ok') {var color='green';var displ='none';} else {var color='red';var displ='block';} var ltags2=this.currentlangtags.split('/');var ltags=ltags2[1].split(',');for(var lnr=0;lnr
    ";for(var lnr=0;lnr"+ltags[lnr]+"
    ";}} html+="
";puntapi._('languageoutputbox').innerHTML=html;} punt_api.prototype.saveLanguageWidgetExistingChanged=function() {var ltags2=this.currentlangtags.split('/');var ltags=ltags2[1].split(',');if(!this.loadedTags) {return false;} var changedTags=[];for(var lnr=0;lnr
    ";for(var lnr=0;lnr"+ltags[lnr]+"
    ";html+="";html+="";html+="";}} html+="
";this.loadLanguageTagExisting(ltags);puntapi._('languageoutputboxext').innerHTML=html;} punt_api.prototype.changeDefaultTarget=function(target) {this.defaulttarget=target;} punt_api.prototype.changeActionbuttonTarget=function(target) {this.actionButtontarget=target;} punt_api.prototype.touchActionbutton=function(id) {} punt_api.prototype.startDownload=function(url) {} punt_api.prototype.defineActionButton=function(id,title,icon,application,command,query,target,customscript) {} punt_api.prototype.actionButtonHtml=function(title,icon,application,command,id,query,target,customscript) {var bonclick=customscript;if((bonclick=='')||(typeof bonclick=='undefined')) {if(this.actionButtontarget=='dialog') {bonclick='puntdialog.changecommand(\''+application+'\',\''+command+'\',\''+id+'\',\''+query+'\')';} else {bonclick=this.cn+'.DoCommand(\''+application+'\',\''+command+'\',\''+id+'\',\''+query+'\',\'\',\'\',\''+target+'\')';}} html2=_tT.parse('actionbutton_small_onclick',{title:title,icon:icon,onclick:bonclick});return html2;} punt_api.prototype.changehost=function(hostname) {} punt_api.prototype.findArrayElement=function(arr,name) {for(var ay=0;ay';} else {}}} html='';var hasbuttons=false;for(tt=0;tt ';} else {html+='';hasbuttons=true;}} html+='
'+abbb[tt].html+' '+abbb[tt].html+'
';for(tt=0;tt';} puntapi._(target).innerHTML=html;if(hasbuttons) {puntapi._(target).style.display='block';} else {puntapi._(target).style.display='none';}} punt_api.prototype.appendActionButton=function(title,icon,application,command,id,query,target,customscript) {if(this.actionButtontarget=='dialog') {newpos=this.actionButtons2.length;this.actionButtons2[newpos]=new Array() this.actionButtons2[newpos].html=this.actionButtonHtml(title,icon,application,command,id,query,target,customscript);this.redrawActionButtons();} else {newpos=this.actionButtons.length;this.actionButtons[newpos]=new Array() this.actionButtons[newpos].html=this.actionButtonHtml(title,icon,application,command,id,query,target,customscript);this.redrawActionButtons();}} punt_api.prototype.addActionButton=function(title,icon,application,command,id,query,target,customscript,doubleposition) {var yy;var nab;nab=[];newpos=0;if(this.actionButtontarget=='dialog') {abbb=this.actionButtons2;} else {abbb=this.actionButtons;} nab[newpos]=new Array() nab[newpos].html=this.actionButtonHtml(title,icon,application,command,id,query,target,customscript);nab[newpos].doubleposition=doubleposition;for(yy=1;yy0) {} else {width+='px';}} else {width=width+'px';} div_new.setAttribute('style','width:'+width+';');}} else {width='';} msg='
';msg+='
'+title+'     X  
';msg+=data;msg+='
';if(nook!='yes') {msg+='';} msg+='
';msg+='';msg+='
';div_new.innerHTML=msg;msgboxlayer.appendChild(div_new);this.mydrag[max]=new Draggable('msgbox_'+max,{})} punt_api.prototype.writeToMessagebox=function(id,data) {msgboxid='msgbox_'+id;msg='
';msg+='
'+title+'     X
';msg+=data;msg+='';msg+='
';puntapi._(msgboxid).innerHTML=msg;} punt_api.prototype.uploadBox=function(formid,formfield) {this.uplform++;data='
';data+='
';data+='';data+='';data+='';data+='
';data+='
';data+='';data+='
';data+='
';data+='
';data+='';this.newMessagebox('Bestand uploaden',data,'',300,'yes');} punt_api.prototype.reportsent=function(response,msgbox) {msg="Rapportage verstuurd. Je kunt binnenkort in het hoofdmenu je bugs terug vinden.
Rapportage ID:"+response+"
";this.writeToMessagebox(msgbox,msg);} punt_api.prototype.endUploadSequence=function(nr,formid,formfield,id,filenr) {puntapi._(formid+'_'+formfield).value+='^$'+escape(id)+'|'+escape(filenr);this.filelistRepaint(formid,formfield);this.closeMsgbox(nr);} punt_api.prototype.filelistRepaint=function(formid,formfield) {html='';data=puntapi._(formid+'_'+formfield).value;data2=data.split('^$');if(data2.length>0) {for(u=1;u'+data3[1]+'
\n';}} puntapi._(formid+'_'+formfield+'_filelist').innerHTML=html;} punt_api.prototype.startUploadSequence=function(nr) {} punt_api.prototype.closeMsgbox=function(nr) {this.mydrag[nr].destroy();var msgboxlayer=puntapi._('msgboxlayer');msgboxlayer.removeChild(puntapi._('msgbox_'+nr));} punt_api.prototype.registerTimers=function(timers) {total=timers.length;for(i=0;i'+TA[o].Sourcefile.substring(0,70)+'
';} catch(e) {}} strt+='';this.setlightbox(strt);} punt_api.prototype.debugshowrequest=function(reqnr) {strt='
back to debugscreen
Request '+reqnr+':
'+TA[reqnr].Sourcefile+'

';this.setlightbox(strt);} punt_api.prototype.runTime=function(id) {var widgetlayer=puntapi._('widgetlayer');data=this.timers[id];timeout=data[0];command=data[1];eval(command);setTimeout(this.cn+'.runTime('+id+')',timeout);} punt_api.prototype.fman_editfile=function(path,file) {this.DoCommand('filemanager','editfile',file,'path='+path+file);} punt_api.prototype.fman_setpath=function(path,file,w,h) {path=path+file;path=document.location.protocol+'//'+document.domain+path;puntapi._('fileman_selectedfile').value=path;puntapi._('fman_imagew').value=w;puntapi._('fman_imageh').value=h;this.fman_pathchange(path);} punt_api.prototype.fman_pathchange=function(path) {imageext=[];imageext[0]='mbp';imageext[1]='jpg';imageext[2]='png';imageext[3]='gif';imageext[4]='jpeg';splitted=path.split('.');extension=splitted[splitted.length-1];if(!this.fman_validateextention(imageext,extension)) {this.fman_toggleimagesettings('off');this.fman_togglefilesettings('on');} else {this.fman_toggleimagesettings('on');this.fman_togglefilesettings('off');}} punt_api.prototype.fman_validateextention=function(extensions,extension) {for(o=0;o"+window.location.hostname+"";if(this._('adminzone_output_topright').innerHTML==''){var html="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="";html+="
Artikelenladen Albumsladen ruimte gebruiktladen 
 reactiesladen ruimte overladen 
";this._('adminzone_output_topright').innerHTML=html;} var func1=function(response){puntapi.adminZoneDataReciever('comment','total',response);} _tajax.makeCall(basepath+'/API/comment/getstats/total',{method:'POST',onFinish:func1});var func3=function(response){puntapi.adminZoneDataReciever('content','total',response);} _tajax.makeCall(basepath+'/API/content/getstats/total',{method:'POST',onFinish:func3});var func4=function(response){puntapi.adminZoneDataReciever('mediaalbum','total',response);} _tajax.makeCall(basepath+'/API/mediaalbum/getstats/total',{method:'POST',onFinish:func4});var func5=function(response){puntapi.adminZoneDataReciever('wsp','diskUsage',response);} _tajax.makeCall(basepath+'/API/wsp/diskUsage',{method:'POST',onFinish:func5});var timeout=1000*60*5;if(!this.intervaladminzonedataloader) {this.intervaladminzonedataloader=setInterval('puntapi.adminZoneDataLoader();',timeout);}} punt_api.prototype.sendForm=function(formname,url,formelements) {doctosend='';} punt_api.prototype.updateSystembox=function() {nr++ TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';TA[nr].Sourcefile=basepath+'/API/messenger/messages?AJAX_REQ=yes';TA[nr].onReadyresponsecommand=this.cn+'.updateSystembox_Write(getresponse('+nr+'),getresponsexml('+nr+'))';TA[nr].doPost();} punt_api.prototype.updateSystembox_Write=function(msg,message) {try {var root=message.getElementsByTagName('messages').item(0);totaalmessages=0;messagelist=[];if(root) {messages=root.getElementsByTagName('message');for(o=0;o0) {html+='
';alternator='a';for(u=0;u 
  '+messagelist[u].titlevalue+'
 
';} html+='';} puntapi._('systemmessagebox').innerHTML=html;this.checknewmessages(messagelist);this.messagelist=messagelist;} else {}} catch(e) {} setTimeout(this.cn+'.updateSystembox();',60000);} punt_api.prototype.checknewmessages=function(messagelist) {try {for(o=0;o=0) {setTimeout(this.cn+'.blinkmessagetitle(\''+id+'\','+ammount+','+(blinkspeed)+','+state+')',blinkspeed);}} punt_api.prototype.showlightbox=function(var1,var2,contents) {if(typeof contents!='undefined'){_lb.open(contents);} else {_lb.open('loading_lightbox');}} punt_api.prototype.hidelightbox=function() {_lb.hide();} punt_api.prototype.showlightbox_old=function(step,noonclick) {step=step+1;step=0;if(step==0) {viewprt=puntapi.getviewportsize();try {puntapi._('Application').style.overflow='hidden';puntapi._('Application').style.display='none';} catch(e) {puntapi._('websitecontent').style.overflow='hidden';} puntapi._('lightbox').style.display='block';if(noonclick) {puntapi._('lightbox').onclick='';} else {puntapi._('lightbox').onClick=function(){puntapi.hidelightbox(7);}} puntapi._('lightbox_underlay').style.display='block';puntapi._('lightbox_underlay').style.width='100%';puntapi._('lightbox_underlay').style.height=viewprt.docheight+'px';} this.lightup(puntapi._('lightbox_underlay'),70);this.lightup(puntapi._('lightbox'),100);step=4;if(step<3) {setTimeout(this.cn+'.showlightbox('+step+')',this.stepspeed);}} punt_api.prototype.hidelightbox_old=function(step) {step=0;if(step>0) {setTimeout(this.cn+'.hidelightbox('+step+')',this.stepspeed);} else {puntapi._('lightbox_underlay').style.display='none';puntapi._('lightbox').style.display='none';try {puntapi._('Application').style.overflow='';puntapi._('Application').style.display='';puntapi._('lightbox').style.width='';} catch(e) {puntapi._('websitecontent').style.overflow='';puntapi._('lightbox').style.width='';}}} punt_api.prototype.setlightbox=function(msg,noonclick,lbwidth,lbheight) {if(typeof lbwidth!='undefined') {puntapi._('lightbox').style.width=lbwidth;puntapi._('lightbox').style.height=lbheight;} this.showlightbox(-1,noonclick,msg);} punt_api.prototype.fillintags=function(){ppos=arguments.length;for(o=0;o';onok='puntapi.translatedtag(\''+tag+'\')';this.newMessagebox(title,html,onok,'800');} punt_api.prototype.translatedtag=function(tag){encodedtag=this.encodetagmsgbox(tag);} punt_api.prototype.lightup=function(imageobject,opacity){if(navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5) {imageobject.style.MozOpacity=opacity/100;} else if(navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4) {imageobject.style.filter='alpha(opacity='+opacity+')';}} punt_api.prototype.setHelp=function(msg,length) {if(length<1) {this.currenthelptext='';} else {this.helpopen=0;this.currenthelptext=msg;this.appendActionButton('Help','help','','','','','',this.cn+'.showhelp(this)');}} punt_api.prototype.showhelp=function(closeaction) {if(closeaction=='closed') {this.helpopen=0;puntapi._('Pagehelp').innerHTML='';puntapi._('Pagehelp').style.display='none';} else {if(this.helpopen==1) {this.helpopen=0;puntapi._('Pagehelp').innerHTML='';puntapi._('Pagehelp').style.display='none';} else {this.helpopen=1;var istyle='color:#555555;background-color:#eeecbe;padding-left:2px;padding-right:2px;';puntapi._('Pagehelp').innerHTML=_tT.parse('helpbox',{style:istyle,color:'d4d2d2',text:this.currenthelptext,height:200});puntapi._('Pagehelp').style.display='block';}}} punt_api.prototype.resizehelp=function(direction) {originalheight=puntapi._('pagehelpinner').style.height.split('px');if(direction=='bigger') {var newheight=parseInt(originalheight[0])+100;puntapi._('pagehelpinner').style.height=newheight+'px';} else {var newheight=parseInt(originalheight[0])-100;if(newheight>=100) {puntapi._('pagehelpinner').style.height=newheight+'px';}}} punt_api.prototype.closehelp=function() {this.showhelp('closed');} punt_api.prototype.onclose=function() {if(!mayclose){return confirm('Weet je zeker dat je dit venster wilt sluiten?')}} punt_api.prototype.preventclose=function(state) {if(state=='on') {mayclose=false;} else {mayclose=true;}} punt_api.prototype.showhelptexts=function() {if(puntapi._('helpboxtxt').style.display=='') {puntapi._('helpboxtxt').style.display='block';puntapi._('helpboxtitle').innerHTML='Klap het hulpscherm weer in';} else if(puntapi._('helpboxtxt').style.display=='block') {puntapi._('helpboxtxt').style.display='none';puntapi._('helpboxtitle').innerHTML='Toon hulp bij dit scherm';} else {puntapi._('helpboxtxt').style.display='block';puntapi._('helpboxtitle').innerHTML='Klap het hulpscherm weer in';}} punt_api.prototype.togglehelp=function(id) {} punt_api.prototype.gethelp=function(application,command,returndat) {try{if(helpenabled=='yes'){if(typeof returndat=='object'){helpelement=returndat.getElementsByTagName('help').item(0);helpboxout='';if(helpelement){commands=helpelement.getElementsByTagName('command');for(o=0;o';helpboxout+='
'+title+'
';if(o==0){helpboxout+=''+text+'';} else{helpboxout+='';} helpboxout+='
';}} this.setHelp(helpboxout,commands.length);} else{nr++ TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';TA[nr].Sourcefile=basepath+'/API/help/'+application+'/'+command+'?AJAX_REQ=yes&bp='+encodeURIComponent(basepath);TA[nr].onReadyresponsecommand=this.cn+'.gethelp(\''+application+'\',\''+command+'\',getresponsexml('+nr+'))';TA[nr].doPost();}}} catch(e) {}} punt_api.prototype.DoCommand_delay=function(app,command,id,query,confirmation,doc) {cmd='this.DoCommand(\''+app+'\',\''+command+'\',\''+id+'\',\''+query+'\',\''+confirmation+'\',\''+doc+'\');';setTimeout(cmd,300);} punt_api.prototype.repeatCommand=function() {if(typeof this.lr=='object') {if(this.lr.app=='command2') {this.DoCommand2(this.lr.path,this.lr.doc,this.lr.resulttarget);} else {this.DoCommand(this.lr.app,this.lr.command,this.lr.id,this.lr.query,this.lr.confirmation,this.lr.doc,this.lr.resulttarget);}}} punt_api.prototype.doRefresh=function(id) {if(this._(id)){this.DoCommand2(this.refreshUrl);}} punt_api.prototype.refresh=function(id,url,delay) {this.refreshUrl=url.replace('&','&');setTimeout('puntapi.doRefresh("'+id+'")',(1000*delay));} punt_api.prototype.DoCommand=function(app,command,id,query,confirmation,doc,resulttarget,callback) {if(typeof wsmLH!='undefined') {if(!wsmLH.canI(app,command,id,query,confirmation,doc,resulttarget,callback)) {return false;}} var confirmed=true;if(this.openchanges) {confirmed=confirm('global_openchanges_form');} else if((typeof confirmation!='undefined')&&(confirmation!='')) {confirmed=confirm(confirmation);} this.lr=[];this.lr.type='command';this.lr.app=app;this.lr.command=command;this.lr.id=id;this.lr.query=query;this.lr.confirmation=confirmation;this.lr.doc=doc;if(this.defaulttarget==resulttarget) {mdunloadUnloadable=true;} if((typeof resulttarget=='undefined')||(resulttarget=='')) {var tmpDialogTarget=dialog.getDialogTarget();if(tmpDialogTarget!='') {resulttarget=tmpDialogTarget;} else if(this.defaulttarget!='') {resulttarget=this.defaulttarget;} else {resulttarget='';}} this.lr.resulttarget=resulttarget;key=app+'_'+command+'_'+id+'_'+query;if(typeof puntMedia!='undefined') {puntMedia.reloaditem=0;} if(resulttarget==this.defaulttarget) {if(resulttarget!='dialogoutput'){window.scrollTo(0,0);}} else {if(resulttarget=='wizard_pageoutput'){window.scrollTo(0,0);}} if(typeof _toolTip!='undefined') {_toolTip.disabled=true;_toolTip.hide();} if((this.notificationsticky!='yes')&&(this.notificationtimeout==-1)) {if(this.keepNotificationsForTrip>0){this.keepNotificationsForTrip--;} else{this.hideNotification();}} if((this.alertsticky!='yes')&&(this.alerttimeout==-1)) {this.hideAlert();} mayclose=true;if(confirmed) {var lastpart="'"+key+"'";var CB="";var enableTarget="''";if(typeof resulttarget!='undefined') {if(resulttarget!='') {enableTarget=resulttarget;lastpart="'"+key+"','"+resulttarget+"'";}} if(typeof callback!='undefined') {CB="\n"+callback;} var toeval="var func = function(resp){puntapi.WriteAppresponse(resp.xml,resp.text,"+lastpart+");puntapi.enableMaincontent('"+app+command+"', "+enableTarget+");"+CB+"};";eval(toeval);var url=basepath;var targetdiv='';if(typeof resulttarget!='undefined') {if(resulttarget!='') {targetdiv='formtargetdiv='+resulttarget+'&';}} if(command=='') {url=basepath+'/'+app+'?AJAX_REQ=yes&'+targetdiv+query;} else {if(id!='') {url=basepath+'/'+app+'/'+command+'/'+id+'?AJAX_REQ=yes&'+targetdiv+query;} else {url=basepath+'/'+app+'/'+command+'?AJAX_REQ=yes&'+targetdiv+query;}} this.start_hidercount();if(typeof doc=='undefined') {doc='';} _tajax.makeCall(url,{method:'post',onFinish:func,doc:doc,weight:1});} return false;} punt_api.prototype.disableMaincontent=function() {mainContent=document.getElementById("maincontentcontainer");mainContent.style.display="none";} punt_api.prototype.enableMaincontent=function(callName,resulttarget) {if(callName=='domainmanagerdashboard') {this.disableMaincontent();return false;} if(resulttarget!="") {var location=window.location.href;if(location.search("Profile#INDEX")||location.search("domainmanager_dashboard")) {return false;}} mainContent=document.getElementById("maincontentcontainer");mainContent.style.display="block";} punt_api.prototype.DoCommand2=function(path,doc,resulttarget,callback,noscroll) {this.lr={};this.lr.type='command2';this.lr.path=path;this.lr.doc=doc;this.lr.resulttarget=resulttarget;mdunloadUnloadable=true;var st=0;var splitpath=path.split('?');var sp2=splitpath[0].split('/');if((sp2[0]=='http:')||(sp2[0]=='https:')) {if((sp2[3]=='Profile')||(sp2[3]=='Admin')||(sp2[3]=='Service')||(sp2[3]=='Supplier')||(sp2[3]=='Control')) {st=3;} else {st=2;}} else if((sp2[1]=='Profile')||(sp2[1]=='Admin')||(sp2[1]=='Service')||(sp2[1]=='Supplier')||(sp2[1]=='Control')) {st=1;} else {st=0;} var qapplication=sp2[st+1];var qcommand=sp2[st+2];var qid=sp2[st+3];if(sp2.length>st+3) {var tmpqid=[];for(var q1=st+3;q1.');return newVersion;} punt_api.prototype.setrdomtitle=function(title,id) {try {if(puntapi.currentselecteddomain!=id) {if((id!='')&&(title!='')&&(id!=false)&&(title!=false)) {tautocompletecontainer.update('selectdomainbox',id,title);if(title.length>35) {title=title.substring(0,15)+'...'+title.substring(title.length-15);} this.currentselecteddomain=id;if(basepath!='/Admin'){puntapi._('hostname').innerHTML=""+this.replaceDots(title)+"";} else {puntapi._('hostname').innerHTML=""+this.replaceDots(window.location.hostname)+"";}}}} catch(e) {}} punt_api.prototype.pagePrepend=function(source) {var tmp_data=puntapi._(source).value;if(tmp_data.length>0) {puntapi._('contentprepend').innerHTML=tmp_data;puntapi._('contentprepend').style.display='block';} else {puntapi._('contentprepend').innerHTML='';puntapi._('contentprepend').style.display='none';}} punt_api.prototype.mustRefreshPage=function(url,target) {return"to refresh go to: global_reload_now";} punt_api.prototype.WriteAppresponse=function(response,responsetxt,key,resulttarget,fromhistory) {var resp='';var app='';var command='';var id='';var query='';var tkey='';var xmlDoc='';var applicationpath='';var rtitle='';var rdomtitles='';var rdomtitle='';if(typeof resulttarget!='undefined') {if((resulttarget=='Application_Output')||(resulttarget=='')) {resulttarget=undefined;}} if(this.debug) {resp=responsetxt.replace(/[<]/g,'<');try {puntapi._('debugdatafield').innerHTML='Laatste antwoord
';} catch(e) {}} try {} catch(e) {} if(typeof _toolTip!='undefined') {_toolTip.disabled=false;} if(typeof ajaxhist!='undefined') {if(responsetxt.indexOf('')==-1) {if(typeof resulttarget=='undefined') {if(typeof key!='undefined') {key=key.replace('#','');if(key!='') {if(typeof fromhistory=='undefined') {var targs=[];for(var ttval=0;ttval<5;ttval++) {targs[ttval]=arguments[ttval];} ajaxhist.registerhistory(key,targs);} tkey=key.split('_');app='';command='';id='';if(typeof tkey[0]!='undefined') {app=tkey[0];} if(typeof tkey[1]!='undefined') {command=tkey[1];} if(typeof tkey[2]!='undefined') {id=tkey[2];} if(typeof tkey[3]!='undefined') {query=tkey[3];} md3nav.highlight(app,command,id,query);puntapi.gethelp(app,command,0);this.currentapp=app;this.currentcommand=command;}}} else {if(typeof key!='undefined') {key=key.replace('#','');if((resulttarget=='dialogoutput')||(resulttarget.indexOf('list_page')>-1)) {if(key!='') {if(typeof fromhistory=='undefined') {var targs=[];for(var ttval=0;ttval<5;ttval++) {targs[ttval]=arguments[ttval];} ajaxhist.registerhistory(key,targs);} tkey=key.split('_');app='';command='';id='';if(typeof tkey[0]!='undefined') {app=tkey[0];} if(typeof tkey[1]!='undefined') {command=tkey[1];} if(typeof tkey[2]!='undefined') {id=tkey[2];} if(typeof tkey[3]!='undefined') {query=tkey[3];} this.currentapp=app;this.currentcommand=command;this.currentid=id;this.currentquery=query;}}}}}} try {xmlDoc=response;var x=xmlDoc.getElementsByTagName('page').item(0);applicationpath='';try{applicationpath=x.getElementsByTagName('applicationpath').item(0).firstChild.nodeValue;}catch(e){} rtitle='';try{rtitle=x.getElementsByTagName('title').item(0).firstChild.nodeValue;}catch(e){} try{rdomtitles=x.getElementsByTagName('domaintitle');if(rdomtitles.length>0) {rdomtitle=rdomtitles.item(0).firstChild.nodeValue;} else {rdomtitle='';}}catch(e){rdomtitle='';} var rdomtitle='';try{rdomtitle=x.getElementsByTagName('domaintitle').item(0).firstChild.nodeValue;}catch(e){} var rdomid='';try{rdomid=x.getElementsByTagName('domaintitleid').item(0).firstChild.nodeValue;}catch(e){} var content='';try{content=x.getElementsByTagName('content').item(0).firstChild.nodeValue;}catch(e){} var sideinfo='';try{sideinfo=x.getElementsByTagName('sideinfo').item(0).firstChild.nodeValue;}catch(e){} var nootherwidgets='';try{nootherwidgets=x.getElementsByTagName('widgets').item(0).getAttribute('nootherwidgets');}catch(e){} var widgets='';try{widgets=x.getElementsByTagName('widgets').item(0).firstChild.nodeValue;}catch(e){} var actionbuttons='';try{actionbuttons=x.getElementsByTagName('actionbuttons').item(0);}catch(e){} var notifications='';try{notifications=x.getElementsByTagName('notifications').item(0);}catch(e){} var errormessages='';try{errormessages=x.getElementsByTagName('errormessages').item(0);}catch(e){} var redirecturl='';try{redirecturl=x.getElementsByTagName('redirecturl').item(0).firstChild.nodeValue;}catch(e){} var debugmessages='';try{debugmessages=x.getElementsByTagName('debugmessages').item(0).firstChild.nodeValue;}catch(e){} var appicon='';try{appicon=x.getElementsByTagName('appicon').item(0).firstChild.nodeValue;}catch(e){} var mustrefresh='';try{mustrefresh=x.getElementsByTagName('mustrefresh').item(0).firstChild.nodeValue;}catch(e){} var refreshUrl='';try{refreshUrl=x.getElementsByTagName('refreshUrl').item(0).firstChild.nodeValue;}catch(e){} var tmplangtags='';var tmplang='';try{tmplangtags=x.getElementsByTagName('notreplacedtags').item(0).firstChild.nodeValue;}catch(e){} if(tmplangtags!='') {if((typeof resulttarget=='undefined')||this.includeAlternativeTargets) {this.currentlangtags=tmplangtags;}} try{tmplang=x.getElementsByTagName('notreplacedtags').item(0).getAttribute('lang');}catch(e){} if(tmplang!='') {this.currentlang=tmplang;} var tracedata='';try{tracedata=x.getElementsByTagName('trace').item(0).firstChild.nodeValue;}catch(e){} if(typeof fromhistory!='undefined') {if(mustrefresh=='yes') {content=puntapi.DoCommand2(refreshUrl,'',resulttarget);return false;}} if(debugmessages!='') {try {puntapi._('debugtextdata').value+=debugmessages;this.blinkmessagetitle('debugtogglefield',20,200,0);if(typeof console!='undefined') {console.log(debugmessages);}} catch(e) {}} if((typeof resulttarget=='undefined')||(resulttarget=='')) {if(this.autoupdatelangtags==1) {this.printLanguageWidget();} try {_tW.demandWidgets(widgets,nootherwidgets);} catch(err) {} try{tracedata=JSON2.parse(tracedata);} catch(e) {} if(typeof tracedata=='object') {} else {} this.readNotifications(notifications,errormessages);if(typeof redirecturl!='undefined') {if((redirecturl!='')&&(redirecturl!=null)) {this.keepNotificationsForTrip=1;this.DoCommand2(redirecturl);return true;}} this.createActionButtons(actionbuttons);this.setrdomtitle(rdomtitle,rdomid);var application_elem=puntapi._('Application');try {puntapi._('contentprepend').innerHTML='';puntapi._('contentprepend').style.display='none';} catch(e) {} var appout=document.getElementById('Application_Output');appout.innerHTML=content;puntapi._('Applicationpath').innerHTML=applicationpath;if(applicationpath.length>0) {puntapi._('Applicationpath').style.display='block';} else {puntapi._('Applicationpath').style.display='none';} puntapi._('Pagetitle').innerHTML=rtitle;puntapi._('Pagehelp').innerHTML='';var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');if(bSaf){execJS(puntapi._('Application_Output'));}else if(bOpera){execJS(puntapi._('Application_Output'));}else if(bMoz){execJS(puntapi._('Application_Output'));}else{execJS(puntapi._('Application_Output'));}} else {if(resulttarget=='dialogoutput') {this.createActionButtons(actionbuttons);} var application_elem=puntapi._(resulttarget);if(!application_elem) {return false} application_elem.innerHTML=content;var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');if(bSaf){execJS(application_elem);}else if(bOpera){execJS(application_elem);}else if(bMoz){execJS(application_elem);}else{execJS(application_elem);} if(resulttarget=='dialogoutput') {var content=md3._('loadercontainer');if(content) {var progress=md3._('loaderprogressbar');progress.style.display='none';content.style.display='block';}}}} catch(errorz) {this.addAlert('Oeps er is iets fout gegaan.','Daar ging iets niet helemaal goed. Het technische team van Mijndomein is direct per e-mail ingelicht en gaat voor je aan de slag. Onze excuses voor dit nare ongemak. ');} this.rescale();this.stop_hider();} punt_api.prototype._=function(id) {return document.getElementById(id);} punt_api.prototype.handleTrace=function(data) {if(data.length>0) {this._('tracecontainer').style.display='block';} else {this._('tracecontainer').style.display='none';}} punt_api.prototype.renderTrace=function(data) {var parts=[];var sep='>';for(var uu=0;uuscalersizes[ssnr].biggerthan) {usedsize=scalersizes[ssnr];}} if(typeof scalersizes[ssnr].smallerthan!='undefined') {if(vp.width$(window).height()) {hasScrollbar=true;} if(!hasScrollbar) {scrollbar=0;} var osfactor=0;var hasVScroll=document.body.scrollHeight>document.body.clientHeight;if(typeof md3nav!='undefined') {if(md3nav.getMode()=='small') {menusize=45+spacer;}} allWrapperLeft.style.marginLeft=menusize+'px';if((widgetinfo.left>0)||(widgetinfo.right>0)) {if(widgetinfo.left>0&&widgetinfo.right>0) {mainsize=scalersize.actualwidth-(menusize+leftsize+rightsize+spacer+scrollbar+osfactor);} else if(widgetinfo.left>0) {mainsize=scalersize.actualwidth-(menusize+leftsize+spacer+scrollbar+osfactor);} else if(widgetinfo.right>0) {mainsize=scalersize.actualwidth-(menusize+rightsize+spacer+scrollbar+osfactor);} else {} contentwapperElement.style.width=mainsize+'px';} else {mainsize=scalersize.actualwidth-menusize;contentwapperElement.style.width='100%';}} catch(e) {}} punt_api.prototype.redrawPositionsOld=function() {var scalersize=this.determineSizes();if(!scalersize) {return false;} if(typeof _tW!='undefined') {var widgetinfo=_tW.widgetsVisible();} else {var widgetinfo=false;} return false;var sep=10;var targetelem=null;var bgcontainer=puntapi._('backgroundcontainer');var menubarelem=puntapi._('menubar');var topbarelem=puntapi._('topbar');var alertcontainerElement=puntapi._('alertcontainer');var notificationcontainerElement=puntapi._('notificationcontainer');var contentwapperElement=puntapi._('contentwrapper');var widgetLeftElement=puntapi._('leftcolumn');var widgetFarLeftElement=puntapi._('farleftcolumn');var widgetRightElement=puntapi._('rightcolumn');var topbar=puntapi._('topbar');var _dim=new dimensions();try {if((this.alertenabled)&&(this.notificationenabled)) {alertcontainerElement.style.display="block";notificationcontainerElement.style.display="block";dim=_dim.dimensions(topbar);alertcontainerElement.style.top=(dim.y+dim.h+sep)+'px';dima=_dim.dimensions(alertcontainerElement);notificationcontainerElement.style.top=(dima.y+dima.h+sep)+'px';targetelem=notificationcontainerElement;} else if(this.alertenabled) {alertcontainerElement.style.display="block";notificationcontainerElement.style.display='';alertcontainerElement.style.top='';notificationcontainerElement.style.top='';dim=_dim.dimensions(topbar);alertcontainerElement.style.top=(dim.y+dim.h+sep)+'px';targetelem=alertcontainerElement;} else if(this.notificationenabled) {alertcontainerElement.style.display='';notificationcontainerElement.style.display='block';alertcontainerElement.style.top='';notificationcontainerElement.style.top='';dim=_dim.dimensions(topbar);notificationcontainerElement.style.top=(dim.y+dim.h+sep)+'px';targetelem=notificationcontainerElement;} else {alertcontainerElement.style.display='';notificationcontainerElement.style.display='';contentwapperElement.style.top='';widgetLeftElement.style.top='';targetelem=topbar;} dim2=_dim.dimensions(targetelem);var farleftsize=200;alertcontainerElement.style.left=(scalersize.sidespacing+farleftsize)+'px';alertcontainerElement.style.right=scalersize.sidespacing+'px';if(scalersize.sidespacing>0) {bgcontainer.style.right=(scalersize.sidespacing-13)+'px';} else {bgcontainer.style.right=scalersize.sidespacing+'px';} notificationcontainerElement.style.left=(scalersize.sidespacing+farleftsize)+'px';notificationcontainerElement.style.right=scalersize.sidespacing+'px';contentwapperElement.style.top=(dim2.y+dim2.h+sep)+'px';widgetLeftElement.style.left=(scalersize.sidespacing+farleftsize)+'px';widgetRightElement.style.right=scalersize.sidespacing+'px';widgetLeftElement.style.top=(dim2.y+dim2.h+sep)+'px';widgetRightElement.style.top=(dim2.y+dim2.h+sep)+'px';var leftcontentspacing=285+sep+farleftsize;if(widgetinfo.left==0) {leftcontentspacing=0;} var rightcontentspacing=285+sep+farleftsize;if(widgetinfo.right==0) {rightcontentspacing=0;} contentwapperElement.style.left=(scalersize.sidespacing+leftcontentspacing)+'px';contentwapperElement.style.right=(scalersize.sidespacing+rightcontentspacing)+'px';if(isie6=='yes') {topbarelem.style.width=scalersize.width+'px';menubarelem.style.width=scalersize.width+'px';bgcontainer.style.width=scalersize.width+'px';alertcontainerElement.style.width=scalersize.width+'px';notificationcontainerElement.style.width=scalersize.width+'px';contentwapperElement.style.width=(scalersize.width-(rightcontentspacing+leftcontentspacing))+'px';}} catch(e) {}} punt_api.prototype.updateAlertCounter=function() {this.alerttimeout--;var seconds='';if(this.alerttimeout>1) {seconds=' seconden';} else {seconds=' seconde';} puntapi._('alerttimeroutput').innerHTML='Deze waarschuwing wordt automatisch verborgen in '+this.alerttimeout+seconds;if(this.alerttimeout<=0) {this.hideAlert();}} punt_api.prototype.updateNotificationCounter=function() {this.notificationtimeout--;var seconds='';if(this.notificationtimeout>1) {seconds=' seconden';} else {seconds=' seconde';} puntapi._('notificationtimeroutput').innerHTML='Deze notificatie wordt automatisch verborgen in '+this.notificationtimeout+seconds;if(this.notificationtimeout<=0) {this.hideNotification();}} punt_api.prototype.hideAlert=function() {clearTimeout(this.alerttimer);clearInterval(this.alertinterval);this.alertenabled=false;this.redrawPositions();puntapi._('alerttimeroutput').innerHTML='';puntapi.rescale();} punt_api.prototype.hideNotification=function() {clearTimeout(this.notificationtimer);clearInterval(this.notificationinterval);this.notificationenabled=false;this.redrawPositions();puntapi.rescale();puntapi._('notificationtimeroutput').innerHTML='';} punt_api.prototype.readNotifications=function(notifications,errormessages) {var notifs=null;var errormsgs=null;var sticky='no';var timeout=-1;if(typeof notifications=='object') {try {notifs=notifications.getElementsByTagName('notification');for(tt=0;tt-1) {this.alerttimer=setTimeout(this.cn+'.hideAlert()',timeout*1000);this.alertinterval=setInterval(this.cn+'.updateAlertCounter()',1000);} this.redrawPositions();} catch(e) {}} punt_api.prototype.addNotificationOld=function(title,text,sticky,timeout) {try {clearTimeout(this.notificationtimer);clearInterval(this.notificationinterval);elem2=puntapi._('notificationtitle');elem3=puntapi._('notificationtext');elem2.innerHTML=title;elem3.innerHTML=text;this.notificationenabled=true;this.notificationsticky=sticky;this.notificationtimeout=timeout;if(timeout>-1) {this.notificationtimer=setTimeout(this.cn+'.hideNotification()',timeout*1000);this.notificationinterval=setInterval(this.cn+'.updateNotificationCounter()',1000);} this.redrawPositions();} catch(e) {}} punt_api.prototype.insertHTML=function(html,n,returnselection,returnrange) {var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var browserName=navigator.appName;if(browserName=="Microsoft Internet Explorer"){if((typeof returnrange=='undefined')||(returnselection=='')) {puntapi._(n+'_ifr').contentWindow.document.body.setActive();returnselection=puntapi._(n+'_ifr').contentWindow.document.selection.createRange();returnselection.pasteHTML(html);} else {returnrange.pasteHTML(html);}} else{var div=puntapi._(n+'_ifr').contentWindow.document.createElement("span");div.innerHTML=html;div2=div.firstChild;if(typeof returnselection=='undefined') {var node=this.insertNodeAtSelection(div2,n);} else {var node=this.insertNodeAtSelection(div2,n,returnselection);}}} punt_api.prototype.insertNodeAtSelection=function(insertNode,n,overrideselection) {if(typeof overrideselection=='undefined') {var sel=puntapi._(n+'_ifr').contentWindow.getSelection();} else {var sel=overrideselection;} var range=sel.getRangeAt(0);sel.removeAllRanges();range.deleteContents();var container=range.startContainer;var pos=range.startOffset;range=document.createRange();if(container.nodeType==3&&insertNode.nodeType==3){container.insertData(pos,insertNode.nodeValue);range.setEnd(container,pos+insertNode.length);range.setStart(container,pos+insertNode.length);} else{var afterNode;if(container.nodeType==3){var textNode=container;container=textNode.parentNode;var text=textNode.nodeValue;var textBefore=text.substr(0,pos);var textAfter=text.substr(pos);var beforeNode=document.createTextNode(textBefore);afterNode=document.createTextNode(textAfter);container.insertBefore(afterNode,textNode);container.insertBefore(insertNode,afterNode);container.insertBefore(beforeNode,insertNode);container.removeChild(textNode);} else{afterNode=container.childNodes[pos];container.insertBefore(insertNode,afterNode);} range.setEnd(afterNode,0);range.setStart(afterNode,0);} sel.addRange(range);};punt_api.prototype.writeOptionsToId=function(utarget,data) {var itemselected='';puntapi._(utarget).options.length=0;if(data) {var root=data.getElementsByTagName('options').item(0);if(root) {options=root.getElementsByTagName('option');for(o=0;o';html+='';html+='
 
Klik hier voor de helpdesk.


';html+='';html+='
 
Geef je mening over de Websitemaker
';html+='';html+='
wsp_shortdescription
\n
\nGeef hieronder je wensen door over nieuwe mogelijkheden van de Mijndomein websitemaker die jij graag zou zien in de toekomst.
\n\n
';html+='
'+_tT.parse('actionbutton',{onclick:'puntapi.feedbacksubmit()',title:'Feedback versturen',icon:'ok'})+'
';html+='';_lb.open(html,'60%','60%',undefined,undefined,function(){puntapi.feedbackonhide()});} punt_api.prototype.feedbackrestore=function() {_lb.hide();} punt_api.prototype.feedbacksent=function() {setTimeout(this.cn+'.feedbackrestore()',2000);} punt_api.prototype.createRequestObject=function() {var sourcefiles=[];for(var nn=0;nnthis.maxticks)||(this.needsUsageUpdate)) {this.ticks=0;this.updateUsage();} else {this.ticks++;}},updateUsage:function() {_tajax.makeCall('/Admin/wsmlicence/getLicenceUsage',{method:'post',onFinish:function(resp){wsmLH.receiveUsage(resp);},weight:100});},receiveUsage:function(response) {var doc=response.xml;var nl=false;if(doc.childNodes[0].nodeName=='usage') {nl=doc.childNodes[0].childNodes;} else {nl=doc.childNodes;} var nn=false;var nv=false;for(var n=0;nparseInt(parts[2],10)) {limitMatches=true;}} else if(parts[1]=="equal") {if(itemval==parts[2]) {limitMatches=true;}} else if(parts[1]=="lesser") {if(parseInt(itemval)=parseInt(parts[2],10)) {limitMatches=true;}} else if(parts[1]=="inequal") {if(parseInt(itemval)!=parseInt(parts[2],10)) {limitMatches=true;}}} if(limitMatches) {cw.active=true;} else {cw.active=false;}}},triggerWarningOnUrl:function(warning) {var html=warning.warningHTML;var cl="";for(var i in this.usage) {cl="/{"+i+"}/g";eval("html = html.replace("+cl+",this.usage[i])");cl="/___"+i+"___/g";eval("html = html.replace("+cl+",this.usage[i])");} var dia=dialog.createDialog('warningtrigger_'+warning.licenceid+'_'+warning.id,{html:html});dialog.show(dia);},canI:function() {var licence={};var pathLicencesToCheck=[];var path={};var p=0;var needsupdate=false;for(p=0;p0) {c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1) {c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}} return"";} bc_md3.prototype.shortenText=function(text,mleng) {var maxlength=30;if(typeof mleng!='undefined') {maxlength=mleng;} var maxlengthhalf=Math.floor(maxlength/2);if(text.length>maxlength) {var textnew=text.substr(0,maxlengthhalf-3)+'...';textnew+=text.substr(text.length-maxlengthhalf);text=textnew;} return text;} bc_md3.prototype.attachEvent=function(element,ev,func) {if(window.addEventListener){element.addEventListener(ev,func,false);}else{element.attachEvent('on'+ev,func);}} bc_md3.prototype.get_html_translation_table=function(table,quote_style){var entities={},hash_map={},decimal=0,symbol='';var constMappingTable={},constMappingQuoteStyle={};var useTable={},useQuoteStyle={};constMappingTable[0]='HTML_SPECIALCHARS';constMappingTable[1]='HTML_ENTITIES';constMappingQuoteStyle[0]='ENT_NOQUOTES';constMappingQuoteStyle[2]='ENT_COMPAT';constMappingQuoteStyle[3]='ENT_QUOTES';useTable=!isNaN(table)?constMappingTable[table]:table?table.toUpperCase():'HTML_SPECIALCHARS';useQuoteStyle=!isNaN(quote_style)?constMappingQuoteStyle[quote_style]:quote_style?quote_style.toUpperCase():'ENT_COMPAT';if(useTable!=='HTML_SPECIALCHARS'&&useTable!=='HTML_ENTITIES'){throw new Error("Table: "+useTable+' not supported');} entities['38']='&';if(useTable==='HTML_ENTITIES'){entities['160']=' ';entities['161']='¡';entities['162']='¢';entities['163']='£';entities['164']='¤';entities['165']='¥';entities['166']='¦';entities['167']='§';entities['168']='¨';entities['169']='©';entities['170']='ª';entities['171']='«';entities['172']='¬';entities['173']='­';entities['174']='®';entities['175']='¯';entities['176']='°';entities['177']='±';entities['178']='²';entities['179']='³';entities['180']='´';entities['181']='µ';entities['182']='¶';entities['183']='·';entities['184']='¸';entities['185']='¹';entities['186']='º';entities['187']='»';entities['188']='¼';entities['189']='½';entities['190']='¾';entities['191']='¿';entities['192']='À';entities['193']='Á';entities['194']='Â';entities['195']='Ã';entities['196']='Ä';entities['197']='Å';entities['198']='Æ';entities['199']='Ç';entities['200']='È';entities['201']='É';entities['202']='Ê';entities['203']='Ë';entities['204']='Ì';entities['205']='Í';entities['206']='Î';entities['207']='Ï';entities['208']='Ð';entities['209']='Ñ';entities['210']='Ò';entities['211']='Ó';entities['212']='Ô';entities['213']='Õ';entities['214']='Ö';entities['215']='×';entities['216']='Ø';entities['217']='Ù';entities['218']='Ú';entities['219']='Û';entities['220']='Ü';entities['221']='Ý';entities['222']='Þ';entities['223']='ß';entities['224']='à';entities['225']='á';entities['226']='â';entities['227']='ã';entities['228']='ä';entities['229']='å';entities['230']='æ';entities['231']='ç';entities['232']='è';entities['233']='é';entities['234']='ê';entities['235']='ë';entities['236']='ì';entities['237']='í';entities['238']='î';entities['239']='ï';entities['240']='ð';entities['241']='ñ';entities['242']='ò';entities['243']='ó';entities['244']='ô';entities['245']='õ';entities['246']='ö';entities['247']='÷';entities['248']='ø';entities['249']='ù';entities['250']='ú';entities['251']='û';entities['252']='ü';entities['253']='ý';entities['254']='þ';entities['255']='ÿ';} if(useQuoteStyle!=='ENT_NOQUOTES'){entities['34']='"';} if(useQuoteStyle==='ENT_QUOTES'){entities['39']=''';} entities['60']='<';entities['62']='>';for(decimal in entities){symbol=String.fromCharCode(decimal);hash_map[symbol]=entities[decimal];} return hash_map;} bc_md3.prototype.base_convert=function(number,frombase,tobase){return parseInt(number+'',frombase|0).toString(tobase|0);} bc_md3.prototype.html_entity_decode=function(string,quote_style){var hash_map={},symbol='',tmp_str='',entity='';tmp_str=string.toString();if(false===(hash_map=this.get_html_translation_table('HTML_ENTITIES',quote_style))){return false;} delete(hash_map['&']);hash_map['&']='&';for(symbol in hash_map){entity=hash_map[symbol];tmp_str=tmp_str.split(entity).join(symbol);} tmp_str=tmp_str.split(''').join("'");return tmp_str;} bc_md3.prototype.ieLoadBugFix=function(scriptElement,callback){if(scriptElement.readyState=='loaded'||scriptElement.readyState=='completed'){callback();}else{setTimeout(function(){md3.ieLoadBugFix(scriptElement,callback);},100);}} bc_md3.prototype.getScript=function(url,callback) {var headID=document.getElementsByTagName("head")[0];var script=document.createElement('script');script.type='text/javascript';script.src=url;script.onload=callback;this.ieLoadBugFix(script,callback);headID.appendChild(script);} var md3=new bc_md3(); function md3_UIsettingmanager() {} md3_UIsettingmanager.prototype.init=function() {} md3_UIsettingmanager.prototype.getValue=function(itemname,defaultvalue) {var tmpval=md3.getCookie('md3setting_'+itemname);if(tmpval=='') {return defaultvalue} return tmpval;} md3_UIsettingmanager.prototype.setValue=function(itemname,val) {md3.setCookie('md3setting_'+itemname,val,365);} md3_UIsettingmanager.delayedRead=function() {} md3_UIsettingmanager.delayedWrite=function() {} md3.settings=new md3_UIsettingmanager();md3.settings.init(); function punt_dialog(cn) {this.cn=cn;this.returnfunction='';this.application='';this.command='';this.idval='';this.query='';this.query2='';this.returndata='';this.returndata2='';this.semi=false;} punt_dialog.prototype.changecommand=function(application,command,id,query,confirm,doc) {this.application=application;this.command=command;this.idval=id this.query=query+'&dialog=yes';puntapi.DoCommand(this.application,this.command,this.idval,this.query+this.query2,confirm,doc,'dialogoutput');} punt_dialog.prototype.startSemiDialog=function(htmlpre,htmlpost,returnfunction,returndata,returndata2,query2,notclosable,useloading) {this.returnfunction=returnfunction;this.returndata=returndata;this.returndata2=returndata2;this.semi=true;this.query2=query2;this.onCloseMethod=false;if(typeof notclosable!='undefined') {notclosable=notclosable;this.notclosable=notclosable;} else {notclosable=false;this.notclosable=false;} if(typeof useloading=='undefined') {useloading=false} if(!useloading) {this.useloading=false;_lb.open(htmlpre+'
 
'+htmlpost,'60%','90%',undefined,undefined,function(){puntdialog.onhide()},notclosable);} else {this.useloading=true;_lb.open('
";} this.overlay.innerHTML=tmpout;eval('tmpfunc = function(event){_tselect.passThroughEvent(\''+this.id+'\',event);}');for(u=0;u0) {if(endpos>vp.height+scrollheight) {openup=true;}} else if(endpos>vp.height) {openup=true;} else if(endpos>vp.docheight) {openup=true;} if(openup) {var toppos=0;if(this.overlay.scrollHeight>this.config.height) {toppos=(dim.y-(this.config.height+compensationy))+'px';} else {toppos=(dim.y-(dim2.h+this.config.spacingY))+'px';} this.overlay.style.position='absolute';this.overlay.style.top=toppos;this.overlay.style.left=dim.x+'px';this.overlay.style.width=(dim.w+compensation)+'px';this.overlay.className=this.config.baseClass+'_overlay foldup';dim2=this.getDimensions(this.overlay);} else {this.overlay.style.top=(dim.y+(dim.h+compensationy))+'px';this.overlay.style.left=dim.x+'px';this.overlay.style.width=(dim.w+compensation)+'px';this.overlay.className=this.config.baseClass+'_overlay folddown';}} tSelectBox.prototype.moveTo=function(id) {if(this.values.length>=1) {var itemheight=this.overlay.scrollHeight/this.values.length;this.overlay.scrollTop=Math.floor(itemheight*id);} else {this.overlay.scrollTop=0;}} tSelectBox.prototype.open=function() {this.reposition();this.overlay.style.display='block';this.opened=true;this.moveTo(this.currentValueId);} tSelectBox.prototype.close=function() {this.overlay.style.display='none';this.opened=false;} tSelectBox.prototype.toggleOpenClose=function() {if(this.opened) {this.close();} else {this.open();this.valueContainer.focus();}} tSelectBox.prototype.handleClick=function(e,target) {if((target.id==this.valueContainer.id)||(target.id==this.valueContainerDummy.id)) {clearTimeout(this.closeTimer);this.toggleOpenClose();this.valueContainer.focus();} else {clearTimeout(this.closeTimer);if(target.id.indexOf('_item_')) {var splitted=target.id.split('_item_');if(splitted.length>1) {this.selectItem(parseInt(splitted[1]),e);}}}} tSelectBox.prototype.moveCursorPos=function(item,mouse) {var oldcursorPos=this.cursorPos;var newcursorPos=0;if(item=='up') {newcursorPos=oldcursorPos-1;} else if(item=='down') {newcursorPos=oldcursorPos+1;} else {newcursorPos=item;} var noupdate=false;if(newcursorPos>this.values.length-1) {this.newcursorPos=this.values.length;noupdate=true;} if(newcursorPos<0) {this.newcursorPos=0;noupdate=true;} var tmpid=this.id+'_item_'+oldcursorPos;if(!noupdate) {if(this.values[oldcursorPos].selected) {if(this._(tmpid).className!=this.config.baseClass+'_item_selected') {this._(tmpid).className=this.config.baseClass+'_item_selected';}} else {if(this._(tmpid).className!=this.config.baseClass+'_item') {this._(tmpid).className=this.config.baseClass+'_item';}} this._(this.id+'_item_'+newcursorPos).className=this.config.baseClass+'_item_over';this.cursorPos=newcursorPos;} var itemheight=this.overlay.scrollHeight/this.values.length;if(!mouse) {this.overlay.scrollTop=Math.floor(itemheight*newcursorPos);}} tSelectBox.prototype.changeToValue=function(value) {for(var o=0;o1) {this.moveCursorPos(parseInt(splitted[1]),true);}}}} tSelectBox.prototype.endIgnore=function() {clearTimeout(this.ignoreTimeOut);this.ignoreothers=true;} tSelectBox.prototype.triggerEvent=function(e) {try{if(e.type=='ignoreStop'){this.ignoreothers=false;return false;}} catch(e) {} var targ;if(!e)var e=window.event;if(e.target)targ=e.target;else if(e.srcElement)targ=e.srcElement;if(targ.nodeType==3) targ=targ.parentNode;if(e.type=='click') {this.handleClick(e,targ);} else if(e.type=='mouseover') {this.handleMouse('over',e,targ);} else if(e.type=='mouseout') {this.handleMouse('out',e,targ);} else if((e.type=='focus')||(e.type=='blur')) {this.handleFocus(e,targ);} else if((e.type=='keypress')||(e.type=='keyup')) {this.endIgnore();return this.handleKeypress(e,targ);} else if(e.type=='selectstart') {this.endIgnore();return false;} else if(e.type=='scroll') {this.handleScroll(e,targ);} else {}} tSelectBox.prototype.triggerTimer=function(type) {if(type=='close') {this.close();}} tSelectBox.prototype.handleFocus=function(e,target) {if(target.id==this.valueContainer.id) {if(e.type=='focus') {clearTimeout(this.closeTimer);this.open();} else {this.closeTimer=setTimeout('_tselect.passThroughTimer(\''+this.id+'\',\'close\')',500);}}} tSelectBox.prototype.handleScroll=function(e,target) {if(target.id==this.overlay.id) {clearTimeout(this.closeTimer);this.valueContainer.focus();}} tSelectBox.prototype.handleKeypress=function(e,target) {var Esc=(window.event)?27:e.DOM_VK_ESCAPE var keynum=(window.event)?event.keyCode:e.keyCode;if((keynum>=37)&&(keynum<=40)) {if(keynum==38) {if(this.opened) {this.moveCursorPos('up');} else {this.open();} return false;} else if(keynum==40) {if(this.opened) {this.moveCursorPos('down');} else {this.open();} return false;}} if(keynum==Esc) {this.close();return false;} if(keynum==13) {if(this.opened) {this.selectItem(this.cursorPos,e);} else {this.open();} return false;} var keychar=String.fromCharCode(keynum) return false;} tSelectBox.prototype.attachEvents=function() {eval('var func = function(event){return _tselect.passThroughEvent(\''+this.id+'\',event);}');var func2=function(){return false};this._a(this.valueContainerDummy,'onclick',func);this._a(this.overlay,'onscroll',func);this._a(this.valueContainer,'onblur',func);this._a(this.valueContainer,'onkeyup',func);this._a(this.valueContainer,'onselectstart',func2);this._a(this.originalElement,'onkeyup',func);} tSelectBox.prototype._=function(id) {return document.getElementById(id);} tSelectBox.prototype.__=function(id) {var elem=this._(id);return elem.parentNode;} tSelectBox.prototype._a=function(element,on,func) {if(element.addEventListener) {var doon=on.substring(2);element.addEventListener(doon,func,false);} else if(element.attachEvent) {element.attachEvent(on,func);} else {element[on]=func;}} tSelectBox.prototype._getElementHeight=function(elem) {var h;h=elem.scrollHeight;return h;if(this.isOpera){h=elem.style.pixelHeight;}else{h=elem.offsetHeight;} return h;} tSelectBox.prototype._getElementWidth=function(elem) {var w;w=elem.scrollWidth;return w;if(this.isOpera){w=elem.style.pixelWidth;}else{w=elem.offsetWidth;} return w;} tSelectBox.prototype.getPageOffsetLeft=function(el){var x;x=el.offsetLeft;if(el.offsetParent!=null)x+=this.getPageOffsetLeft(el.offsetParent);return x;} tSelectBox.prototype.getPageOffsetTop=function(el){var y;y=el.offsetTop;if(el.offsetParent!=null)y+=this.getPageOffsetTop(el.offsetParent);return y;} tSelectBox.prototype.getDimensions=function(el) {var dim=[];dim.x=this.getPageOffsetLeft(el);dim.y=this.getPageOffsetTop(el);dim.w=this._getElementWidth(el);dim.h=this._getElementHeight(el);return dim;} function tSelectContainer() {this.selectboxes=[];} tSelectContainer.prototype.register=function(id) {if(typeof this.selectboxes[id]!='undefined') {this.selectboxes[id].cleanUp();this.selectboxes[id]=new tSelectBox(id);} else {this.selectboxes[id]=new tSelectBox(id);}} tSelectContainer.prototype.passThroughTimer=function(id,type) {if(typeof this.selectboxes[id]!='undefined') {return this.selectboxes[id].triggerTimer(type);}} tSelectContainer.prototype.changeValue=function(id,value) {if(typeof this.selectboxes[id]!='undefined') {return this.selectboxes[id].changeToValue(value);}} tSelectContainer.prototype.passThroughEvent=function(id,event) {if(typeof this.selectboxes[id]!='undefined') {return this.selectboxes[id].triggerEvent(event);}} var _tselect=new tSelectContainer(); function md3lists_bc(cn) {this.cn=cn;this.lists=[];this.maxpagecount=1000;} md3lists_bc.prototype.debug=function(text) {alert(text);} md3lists_bc.prototype.findList=function(name) {for(var lnr=0;lnrtpg) {max=tpg;}} if(startfrom>0) {listselect.options[listselect.options.length]=new Option("<"+(startfrom),'LESS');} for(var pg=startfrom;pgmaxpagecount) {if(startfrom+maxpagecount"+(pg),'MORE');} if(startfrom+(maxpagecount*10)>"+(pg+(maxpagecount*10)),'EVENMORE');} if(startfrom+(maxpagecount*100)>>"+(pg+(maxpagecount*100)),'EVENMOREMORE');}} _tselect.register('list_pageselect'+listid);}} catch(e) {}} md3lists_bc.prototype.init=function(config,page) {listnr=this.findList(config.listid);if(listnr>-1) {llen=listnr;} else {llen=this.lists.length;this.lists[llen]={};this.lists[llen].blockNavigation=false;this.lists[llen].name=config.listid;this.lists[llen].selectedRows=[];} this.lists[llen].config=config;if((this.lists[llen].config.totalrows>0)&&(this.lists[llen].config.pagelength>0)) {this.lists[llen].config.totalpages=Math.ceil(this.lists[llen].config.totalrows/this.lists[llen].config.pagelength);} else {this.lists[llen].config.totalpages=0;} this.fillSelect(config.listid,0);if(this.lists[llen].config.type=='alldata') {this.openpage(config.listid,page);} if(this.lists[llen].config.type=='querybased') {this.lists[llen].pages=[];this.lists[llen].pages[page]={};this.lists[llen].pages[page].content=md3._('list_page'+this.lists[llen].config.listid+'_'+page).innerHTML;this.openpage(config.listid,page);} if(this.lists[llen].config.initialorder!='') {this.lists[listnr].sort={};this.lists[listnr].sort.column=this.lists[llen].config.initialorder;this.lists[listnr].sort.direction=this.lists[llen].config.initialorderdirection;}} md3lists_bc.prototype.GlobalDoCommand=function(listid,application,command,id,query,confirmation,target) {var listnr=this.findList(listid);var rowids=this.lists[listnr].selectedRows;var doc='&LIST_SELECTED_ROWS='+encodeURIComponent(rowids.join(","));this.DoCommand(application,command,id,query,confirmation,target,doc);} md3lists_bc.prototype.DoCommand=function(application,command,id,query,confirmation,target,doc) {if(typeof doc=='undefined') {doc='';} if(basepath=='') {if(confirmation!='') {if(!confirm(confirmation)) {return false;} else {window.location.href=basepath+'/'+application+'/'+command+'/'+id+'/?'+query;}} else {window.location.href=basepath+'/'+application+'/'+command+'/'+id+'/?'+query;}} else {if(puntapi.defaulttarget=='dialogoutput') {puntdialog.changecommand(application,command,id,query);} else {puntapi.DoCommand(application,command,id,query,confirmation,doc,target);}}} md3lists_bc.prototype.pageSelectedRows=function(listid) {listnr=this.findList(listid);ids=[];if(listnr>-1) {var rowids=this.lists[listnr].selectedRows;for(var yar=0;yarBezig met selecteren 1/'+c.totalpages+"
";var listpagesContainer=md3._('list_pagescontainer_'+listid);for(var curp=1;curp<=c.totalpages;curp++) {if(typeof this.lists[listnr].pages[curp]!='undefined') {continue;} if(typeof this.lists[listnr].pages[curp]=='undefined') {var tmpelem=document.createElement('div');tmpelem.setAttribute('id','list_page'+listid+'_'+(curp));tmpelem.className='list_newpage_hidden';listpagesContainer.appendChild(tmpelem);} else {} this.getPageForListSelectAllPages(listid,curp);}} md3lists_bc.prototype.getPageForListSelectAllPages=function(listid,page) {var listnr=this.findList(listid);var doctosend="activelist="+listid+'&pagenr='+page+'&listcall=yes';if(typeof this.lists[listnr].sort!='undefined') {doctosend+='&sort=yes&column='+encodeURIComponent(this.lists[listnr].sort.column)+'&direction='+encodeURIComponent(this.lists[listnr].sort.direction);} var tmpurl=basepath+'/'+this.lists[listnr].config.appname if(this.lists[listnr].config.appcommand!='') {tmpurl+="/"+this.lists[listnr].config.appcommand;} if(this.lists[listnr].config.appid!='') {tmpurl+="/"+this.lists[listnr].config.appid;} if(this.lists[listnr].config.appquery!='') {tmpurl+="?"+this.lists[listnr].config.appquery+'&'+doctosend;} var apppost=this.lists[listnr].config.apppost;puntapi.DoCommand(this.lists[listnr].config.appname,this.lists[listnr].config.appcommand,this.lists[listnr].config.appid,this.lists[listnr].config.appquery+'&'+doctosend,'',apppost,'list_page'+listid+'_'+(page),this.cn+'.pageloadedSelectAll(\''+listid+'\','+page+')');} md3lists_bc.prototype.filterForUnique=function(data) {var tmp=data.filter(function(itm,i,a){return i==a.indexOf(itm);});var tmp2=[];for(var u=0;u-1) {var rowids=this.lists[listnr].selectedRows;var checkboxes=document.getElementsByTagName('input');var checkbox=false;var tmpid=false;var tmpid2=false;var checkname='listcheckbox_'+listid+'_' var config=this.lists[listnr].config;var checkname2=checkname+config.currentpage;if(this.lists[listnr].config.multiPageSelect=='yes') {if(checked) {if(config.totalpages>1) {md3._('list_select_all_pages_'+listid+'_'+config.currentpage).style.display='inline-block';}}} for(var cb=0;cb-1) {var checkboxes=document.getElementsByTagName('input');var checkbox=false;var tmpid=false;var tmpid2=false;var checkname='listcheckbox_'+listid+'_' var config=this.lists[listnr].config;var checkname2=checkname+config.currentpage;var newSelectedRows=[];for(var cb=0;cb-1) {if(this.lists[listnr].selectedRows.length>0) {md3._('list_'+listid+'_selection_counter').innerHTML=this.lists[listnr].selectedRows.length;md3._('list_'+listid+'_selection_count_container').className='list_has_selection';} else {md3._('list_'+listid+'_selection_counter').innerHTML=this.lists[listnr].selectedRows.length;md3._('list_'+listid+'_selection_count_container').className='list_selection';}}} md3lists_bc.prototype.pageback=function(listid) {listnr=this.findList(listid);try {if(listnr>-1) {var pb=this.lists[listnr].config.currentpage-1;if(pb>0) {this.openpage(listid,pb)}}} catch(e) {this.debug(JSON.stringify(e));}} md3lists_bc.prototype.pageforward=function(listid) {listnr=this.findList(listid);try {if(listnr>-1) {var pb=this.lists[listnr].config.currentpage+1;if(pb<=this.lists[listnr].config.totalpages) {this.openpage(listid,pb)}}} catch(e) {this.debug(JSON.stringify(e));}} md3lists_bc.prototype.showPageLoading=function(listid) {var pl=md3._('list_'+listid+'_pageloading');pl.className='listpageloading showloading';} md3lists_bc.prototype.hidePageLoading=function(listid) {var pl=md3._('list_'+listid+'_pageloading');pl.className='listpageloading hideloading';} md3lists_bc.prototype.pageloaded=function(listid,page) {listnr=this.findList(listid);if(listnr>-1) {this.lists[listnr].pages[page]={};this.lists[listnr].pages[page].content='';this.lists[listnr].pages[page].content=md3._('list_page'+listid+'_'+page).innerHTML;this.hidePageLoading(listid);this.switchpage(listid,page);}} md3lists_bc.prototype.openpage=function(listid,page) {listnr=this.findList(listid);if(this.lists[listnr].blockNavigation) {return false;} if(page=='LESS') {if(this.lists[listnr].config.currentStartFrom-this.maxpagecount>0) {page=this.lists[listnr].config.currentStartFrom-this.maxpagecount-1;this.fillSelect(listid,this.lists[listnr].config.currentStartFrom-this.maxpagecount);} else {page=0;this.fillSelect(listid,0);}} else if(page=='MORE') {if(this.lists[listnr].config.currentStartFrom+this.maxpagecount-1) {var listpagesContainer=md3._('list_pagescontainer_'+listid);if(!md3._('list_page'+listid+'_'+(page))) {var tmpelem=document.createElement('div');tmpelem.setAttribute('id','list_page'+listid+'_'+(page));tmpelem.className='list_newpage_hidden';listpagesContainer.appendChild(tmpelem);} if(this.lists[listnr].config.type=='querybased') {if(typeof this.lists[listnr].pages[page]=='undefined') {var doctosend="activelist="+listid+'&pagenr='+page+'&listcall=yes';if(typeof this.lists[listnr].sort!='undefined') {doctosend+='&sort=yes&column='+encodeURIComponent(this.lists[listnr].sort.column)+'&direction='+encodeURIComponent(this.lists[listnr].sort.direction);} var tmpurl=basepath+'/'+this.lists[listnr].config.appname if(this.lists[listnr].config.appcommand!='') {tmpurl+="/"+this.lists[listnr].config.appcommand;} if(this.lists[listnr].config.appid!='') {tmpurl+="/"+this.lists[listnr].config.appid;} if(this.lists[listnr].config.appquery!='') {tmpurl+="?"+this.lists[listnr].config.appquery+'&'+doctosend;} var apppost=this.lists[listnr].config.apppost;this.showPageLoading(listid);puntapi.DoCommand(this.lists[listnr].config.appname,this.lists[listnr].config.appcommand,this.lists[listnr].config.appid,this.lists[listnr].config.appquery+'&'+doctosend,'',apppost,'list_page'+listid+'_'+(page),this.cn+'.pageloaded(\''+listid+'\','+page+')');} else {this.switchpage(listid,page);}} else {this.switchpage(listid,page);}}} catch(e) {}} md3lists_bc.prototype.switchpage=function(listid,page) {try {listnr=this.findList(listid);var cl=this.lists[listnr];if(cl.blockNavigation) {return false;} this.lists[listnr].config.currentpage=parseInt(page);var needspagenrs=false;if(md3._('list_pageselect'+listid)) {if(md3._('list_pageselect'+listid).value!=page) {md3._('list_pageselect'+listid).value=page;try {_tselect.changeValue('list_pageselect'+listid,page);} catch(e) {}}} else {needspagenrs=true;} for(var pnr=0;pnr=page-(range-1))&&((pnr+1)<=page+(range-1))) {pagenr.style.display='inline-block';} else if(((pnr+1)==1)||((pnr+1)==this.lists[listnr].config.totalpages)) {pagenr.style.display='inline-block';} else {pagenr.style.display='none';}}} if(this.lists[listnr].config.totalpages>2) {var pagenrspacer=md3._('list_pagenrspacer'+listid+'_1');var pagenrspacer2=md3._('list_pagenrspacer'+listid+'_'+this.lists[listnr].config.totalpages);if(page-range>1) {pagenrspacer.style.display="inline-block";} else {pagenrspacer.style.display="none";} if(page+range=this.exportpages) {if(this.lists[llen].config.type=='alldata'){md3._('list_export_pagesdone').innerHTML=this.lists[listnr].config.totalpages;} setTimeout("md3lists.displayExportResults('"+listid+"');",200);}} md3lists_bc.prototype.displayExportResults=function(listid) {var listnr=this.findList(listid);md3._('list_export_loading').style.display='none';md3._('list_export_results').innerHTML=_tT.parse("lists_export_inside",{totalpages:this.lists[listnr].config.totalpages});this.joinExportResults(listid);var pref='simpletable';pref=md3.settings.getValue('list_export_preference',pref);this.renderExport(listid,pref);this.renderExportTypes(listid);} md3lists_bc.prototype.renderExportTypes=function(listid) {var html='';html+='';html+="";html+="";html+='
"+_tT.parse('actionbutton_small_onclick',{icon:'list',onclick:"md3lists.renderExport('"+listid+"','simpletable');",title:'Simpele tabel'})+""+_tT.parse('actionbutton_small_onclick',{icon:'notecode',onclick:"md3lists.renderExport('"+listid+"','csv');",title:'CSV'})+"
';md3._('list_exporttypes').innerHTML=html} md3lists_bc.prototype.joinExportResults=function(listid) {var listnr=this.findList(listid);var page=null;var rows=null;var u=0;this.lists[listnr].exportrows=[];this.lists[listnr].exportcolumns=[];var columns=null;var column=null;var percentage=0;var lastpercentage=0;var totalrows=this.lists[listnr].exports.length;for(var o=0;o0) {percentage=Math.floor(o/totalrows);if(percentage>lastpercentage) {md3._('list_export_result_output').innerHTML=_tT.parse("list_export_percentage",{what:'Bezig met opbouwen',percentage:percentage});lastpercentage=percentage;}} rows=page.xml.getElementsByTagName("row");for(u=0;u=breakpoint) {percentage=Math.floor((o/totalrows)*100);md3._('list_export_result_output').innerHTML=_tT.parse("list_export_percentage",{what:'Bezig met opbouwen',percentage:percentage});setTimeout("md3lists.renderExport('"+listid+"','"+type+"',"+o+")",200);puntapi.rescale();return true;}} var html=_tT.parse(basetpl+'_container',{contents:this.exportcontent});md3._('list_export_result_output').innerHTML=html;puntapi.rescale();} md3lists_bc.prototype.toggleListIconSelect=function(eventObj,checked){if(typeof checked=='undefined') {checked=null;} try{var parent=jQuery(eventObj).parent();var isRadio=false;if(jQuery(eventObj).find("input:radio").length>0){isRadio=true;} if(isRadio){var checkedEl=parent.find("input:checked");if(checkedEl.length>0){checkedEl.checked=false;checkedEl.removeAttr('checked');checkedEl.parent().parent().removeClass('row_selected');checkedEl.parent().parent().find(".selected_flag .selected").hide();checkedEl.parent().parent().find(".selected_flag .select").show();} jQuery(eventObj).find("input:radio").attr('checked','checked').checked=true;jQuery(eventObj).addClass('row_selected');jQuery(eventObj).find(".selected_flag .selected").show();jQuery(eventObj).find(".selected_flag .select").hide();}else{var currentCheckboxObject=jQuery(eventObj).find("input:checkbox");if(currentCheckboxObject.attr('checked')=='checked'||(checked!==null&&checked==false)){currentCheckboxObject.checked=false;currentCheckboxObject.removeAttr('checked');currentCheckboxObject.parent().parent().removeClass('row_selected');currentCheckboxObject.parent().parent().find(".selected_flag .selected").hide();currentCheckboxObject.parent().parent().find(".selected_flag .select").show();}else{currentCheckboxObject.attr('checked','checked').checked=true;jQuery(eventObj).addClass('row_selected');jQuery(eventObj).find(".selected_flag .selected").show();jQuery(eventObj).find(".selected_flag .select").hide();}}}catch(e){}} md3lists_bc.prototype.selectCurrentPageWithIcon=function(listid,checked) {listnr=this.findList(listid);if(listnr>-1) {var rowids=this.lists[listnr].selectedRows;var baseIdPart='listcheckbox_'+listid+'_'+this.lists[listnr].config.currentpage+"_";md3._(baseIdPart+'top').checked=checked;md3._(baseIdPart+'bottom').checked=checked;for(var yar=0;yar0){checkedEl.checked=false;checkedEl.removeAttr('checked');checkedEl.parent().parent().removeClass('row_selected');checkedEl.parent().parent().find(".selected_flag *").hide();} jQuery(eventObj).find("input:radio").attr('checked','checked').checked=true;jQuery(eventObj).addClass('row_selected');jQuery(eventObj).find(".selected_flag *").show();}catch(e){}} md3lists_bc.prototype.selectItem=function(eventObj){try{var item=jQuery(eventObj);var parent=item.parent();var checkedEl=parent.find("*");if(checkedEl.length>0){for(var i=0;i0) {for(o=0;o0) {val+='\n';htmlval+='
';} val+=line htmlval+=line;}} else {val=items.item(u).firstChild.nodeValue;htmlval=val;} this.items[u]={column:items.item(u).getAttribute('column'),value:val,htmlvalue:htmlval};}} md3lists=new md3lists_bc('md3lists'); if(typeof _tT=='undefined') {function tTemplatesContainer() {this.templates=[];} tTemplatesContainer.prototype.define=function(name,template) {newtemplate=this.templates.length;this.templates[newtemplate]=new tTemplate(name,template);} tTemplatesContainer.prototype.parse=function(name,vals) {empty='';if(typeof vals!='object') {returndata='';} else {lu=this.lookup(name);if(lu>-1) {returndata=this.templates[lu].parse(vals);} else {returndata='';}} return returndata;} tTemplatesContainer.prototype.lookup=function(name) {for(tT=0;tTconfig.eCS[col]) {coldiff=config.sCS[col]-config.eCS[col];prstep=coldiff/100;color[col]=config.sCS[col]-Math.floor(prstep*perc);} else if(config.sCS[col]0) {color.alpha=Math.floor(color.a/2.55);} else {color.alpha=0;} return color;} progressbar_bc.prototype.calcspeed=function(diff) {var returnval=Math.floor(diff*0.3);if(returnval<1) {returnval=1;} return returnval;} progressbar_bc.prototype.slideTo=function(name,to) {var config=this.bars[name].config;var step=1;clearTimeout(this.bars[name].slideTimer);if(to>this.bars[name].percentage) {step=this.calcspeed(to-this.bars[name].percentage);this.bars[name].percentage=this.bars[name].percentage+step;if(to!=this.bars[name].percentage) {this.bars[name].slideTimer=setTimeout('progressbar.slideTo("'+name+'",'+to+');',60);}} else if(to
0%
');} progressbar_bc.prototype.remove=function(name) {} var progressbar=new progressbar_bc(); _tT.define('simpletext','
{title}
{text}
');_tT.define('actionbutton','
 
{title}
');_tT.define('actionbutton_small','
 
{title}
');_tT.define('actionbutton_small_onclick','
 
{title}
');_tT.define('quickstartbutton','
 
{title}
 
{title}
');_tT.define('helpbox','
 
{text}


');_tT.define('corner_top','
');_tT.define('corner_bottom','
');_tT.define('breadcrumb','{description}');_tT.define('colorpicker','
 

{button1}{button2}
');_tT.define('step_front_delimeter_active','
');_tT.define('step_front_delimeter_inactive','');_tT.define('step_first_front_delimeter_active','
');_tT.define('step_first_front_delimeter_inactive','
');_tT.define('step_end_delimeter_active','
');_tT.define('step_end_delimeter_inactive','
');_tT.define('step_past','
{content}
');_tT.define('step_active','
{content}
');_tT.define('step_future','
{content}
');_tT.define('step_inside','
Stap {position}
{title}
');_tT.define('step_wrapper','
{step_contents}
');_tT.define('loading','
Laden...

{text}

');_tT.define('button','
 {title}
 
');_tT.define('lists_export','
Laden...

Bezig met laden individuele paginas:0/{totalpages}

');_tT.define('lists_export_inside','
Export/Simpele weergave.
Hieronder zie je de simpele weergave van de lijst. Deze kun je met de buttons hierboven veranderen naar een ander uitvoer formaat.
');_tT.define("lists_export_simpletable_sep",",");_tT.define("lists_export_simpletable_container","{contents}
");_tT.define("lists_export_simpletable_header","{contents}");_tT.define("lists_export_simpletable_headeritem","{description}");_tT.define("lists_export_simpletable_row","{contents}");_tT.define("lists_export_simpletable_rowitem","{htmlvalue}");_tT.define("lists_export_csv_sep",",");_tT.define("lists_export_csv_container","
");_tT.define("lists_export_csv_header","{contents}\n");_tT.define("lists_export_csv_headeritem","\"{description}\"");_tT.define("lists_export_csv_row","{contents}\n");_tT.define("lists_export_csv_rowitem","\"{value}\"");_tT.define("list_export_percentage",'{what}:{percentage}/100%');_tT.define('formloader','
'); function tTooltipDefaultConf() {this.zIndex=251;this.fontsize=12;this.top=20;this.left=10;this.color='#ffff00';this.bordercolor="black";this.pointsize=15;this.blankimage='../../Layout/Mijndomein/blank.gif';this.timeout=2000;} function tTooltip() {_tT.define('tooltipinside','
{text}
');this.lastcolor='';this.disabled=false;this.orientation="left";this.mouseposx=0;this.mouseposy=0;this.updatetimeoutcounter=0;} tTooltip.prototype.debug=function(msg) {var tmpelem=document.getElementById('tooltip_debug');if(this.config.debug) {tmpelem.innerHTML=msg+'->'+this.mouseposx+this.mouseposy;}} tTooltip.prototype.init=function(config) {this.defaultconfig=new tTooltipDefaultConf();this.tooltips=[];this.config=config;if(typeof this.config=='object') {} else {this.config=[];} for(var i in this.defaultconfig) {if(typeof this.config[i]=='undefined') {this.config[i]=this.defaultconfig[i];}} this.checkdiv();} tTooltip.prototype.checkdiv=function() {if(!this.tdiv) {var bdy=document.getElementsByTagName('body').item(0);if(bdy){tdiv=document.createElement('div');tdiv.setAttribute('id','ttooltip');tdiv.style.display='none';tdiv.style.position='absolute';tdiv.style.top='0px';tdiv.style.left='0px';tdiv.style.zIndex=this.config.zIndex;tdiv.innerHTML='empty';bdy.appendChild(tdiv);tdiv=document.getElementById('ttooltip');document.onmousemove=function(e){_toolTip.updatepos(e)};this.tdiv=document.getElementById('ttooltip');tdiv2=document.createElement('div');tdiv2.setAttribute('id','ttooltip2');tdiv2.style.display='none';tdiv2.style.position='absolute';tdiv2.style.top='0px';tdiv2.style.left='0px';tdiv2.style.zIndex=this.config.zIndex;tdiv2.innerHTML='empty';bdy.appendChild(tdiv2);tdiv2=document.getElementById('ttooltip');document.onmousemove=function(e){_toolTip.updatepos(e)};this.tdiv2=document.getElementById('ttooltip2');}}} tTooltip.prototype.updatepos=function(e) {var noclear=false;this.updatetimeoutcounter++;if(this.updatetimeoutcounter>10) {noclear=true;} else {clearTimeout(this.updateto);} var mouseposx=0,x=0;var mouseposy=0,y=0;if(document.all){mouseposx=((document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft)+window.event.clientX;mouseposy=((document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop)+window.event.clientY;} else {mouseposx=e.pageX;mouseposy=e.pageY;} this.mouseposx=mouseposx;this.mouseposy=mouseposy;this.debug('updatepos');if(!noclear) {this.updateto=setTimeout('_toolTip.doupdatepos()',100);}} tTooltip.prototype.doupdatepos=function() {this.updatetimeoutcounter=0;clearTimeout(this.updateto);if(this.isactive) {var tmpwidth=Math.ceil(this.windowsize.docwidth/4);if(this.mouseposx<((tmpwidth*2)-20)) {tmpwidth=this.calcwidth();this.debug('rescale 1 to :'+tmpwidth);this.tdiv.style.left=(this.mouseposx+this.config.left)+"px";this.tdiv.style.top=(this.mouseposy+this.config.top)+"px";if(this.orientation!='left') {this.orientation='left';this.redraw(this.orientation,tmpwidth);}} else {tmpwidth=this.calcwidth();this.debug('rescale 2 to :'+tmpwidth);this.tdiv.style.left=(((this.mouseposx-tmpwidth)+20)-this.config.left)+"px";this.tdiv.style.top=(this.mouseposy+this.config.top)+"px";if(this.orientation!='right') {this.orientation='right';this.redraw(this.orientation,tmpwidth);}}}} tTooltip.prototype.calcwidth=function() {var tmpwidth=Math.ceil(this.windowsize.docwidth/4);var dims=this.dimensions(document.getElementById('toolTipInside'));if((dims.w+10)>tmpwidth) {document.getElementById('toolTipInside').style.width=(tmpwidth-10)+'px';document.getElementById('tooltipballoon').style.width=(tmpwidth)+'px';this.tdiv.style.width=(tmpwidth)+'px';return tmpwidth;} else {this.tdiv.style.width=(dims.w+10)+'px';document.getElementById('tooltipballoon').style.width=(dims.w+10)+'px';return dims.w+10;}} tTooltip.prototype.redraw=function(direction,width,height) {document.getElementById('tooltippointythingie').innerHTML=this.drawpointything(direction,width);document.getElementById('tooltippointythingie').style.textAlign='right';} tTooltip.prototype.drawpointything=function(direction,width,height) {ht='';var sdirection='left';style='padding-left:10px;padding-right:10px;width:100%;';if(typeof direction!='undefined') {ht+='
';if(direction=='right') {sdirection='right';if(width!='undefined') {style='padding-left:'+(width-30)+'px;padding-right:20px;width:100%;';} else {}} else {sdirection='left';}} ht+='';if(typeof height!='undefined') {maxval=height;} else {maxval=this.config.pointsize;} for(gg=0;gg';sp2='';if(sdirection=='left') {ht+='';} else {ht+='';}} ht+='
'+sp1+sp2+'
'+sp2+sp1+'
';if(typeof direction!='undefined') {ht+='
';} return ht;} tTooltip.prototype.showsticky=function(element,data) {clearTimeout(this.to);this.checkdiv();if((typeof element=='object')&&(typeof data=='object')) {this.currentelement=element for(var i in this.defaultconfig) {if(typeof data[i]=='undefined') {data[i]=this.defaultconfig[i];}} this.currentdata=data;this.isactive2=true;dim=this.dimensions(element);this.tdiv2.style.position='absolute';this.tdiv2.style.top=(dim.y+40)+'px';this.tdiv2.style.left=(dim.x-375)+'px';this.tdiv2.style.width=400+'px';istyle='color:#'+data.fontcolor+';background-color:#'+data.color+';font-size:'+this.config.fontsize+'px;padding-left:2px;padding-right:2px;';text=data.text;innerhtml=this.drawpointything(data.orientation,400,20);innerhtml+=_tT.parse('tooltipinside',{style:istyle,color:data.color,text:text});this.tdiv2.innerHTML=innerhtml;this.tdiv2.style.display='block';this.calcwidth();}} tTooltip.prototype.show=function(element,data) {if(!this.disabled) {clearTimeout(this.to);this.currentdata=data;this.checkdiv();this.windowsize=this.getviewportsize();if((typeof element=='object')&&(typeof data=='object')) {if(this.lastcolor==data.color) {document.getElementById('toolTipInside').innerHTML=data.text;} else {this.currentelement=element for(var i in this.defaultconfig) {if(typeof data[i]=='undefined') {data[i]=this.defaultconfig[i];}} this.currentdata=data;this.tdiv.style.display="none";this.isactive=true;dim=this.dimensions(element);istyle='color:#'+data.fontcolor+';background-color:#'+data.color+';font-size:'+this.config.fontsize+'px;padding-left:2px;padding-right:2px;';text=data.text;this.orientation='left';var tmpwidth=Math.ceil(this.windowsize.docwidth/4);if(this.mouseposx<((tmpwidth*2)-20)) {this.orientation="left";} else {this.orientation="right";} innerhtml="
"+this.drawpointything(this.orientation)+"
";innerhtml+=_tT.parse('tooltipinside',{width:tmpwidth,style:istyle,color:data.color,text:text});var tmpwidth=Math.ceil(this.windowsize.docwidth/4);this.tdiv.innerHTML=innerhtml;} this.tdiv.style.display='block';this.doupdatepos();}}} tTooltip.prototype.hide=function() {try {this.tdiv.innerHTML='';this.tdiv.style.display='none';this.isactive=false;} catch(e) {this.isactive=false;}} tTooltip.prototype.hidesticky=function() {this.tdiv2.innerHTML='';this.tdiv2.style.display='none';this.isactive2=true;} tTooltip.prototype._getElementHeight=function(elem) {var h;h=elem.scrollHeight;return h;if(this.isOpera){h=elem.style.pixelHeight;}else{h=elem.offsetHeight;} return h;} tTooltip.prototype._getElementWidth=function(elem) {var w;w=elem.offsetWidth;return w;if(this.isOpera){w=elem.style.pixelWidth;}else{w=elem.offsetWidth;} return w;} tTooltip.prototype.dimensions=function(el) {var dim=[];dim.x=this.getPageOffsetLeft(el);dim.y=this.getPageOffsetTop(el);dim.w=this._getElementWidth(el);dim.h=this._getElementHeight(el);return dim;} tTooltip.prototype.getPageOffsetLeft=function(el){var x;x=el.offsetLeft;if(el.offsetParent!=null)x+=this.getPageOffsetLeft(el.offsetParent);return x;} tTooltip.prototype.getPageOffsetTop=function(el){var y;y=el.offsetTop;if(el.offsetParent!=null)y+=this.getPageOffsetTop(el.offsetParent);return y;} tTooltip.prototype.pageHeight=function() {var docHeight;if(typeof document.height!='undefined'){docHeight=document.height;} else if(document.compatMode&&document.compatMode!='BackCompat'){docHeight=document.documentElement.scrollHeight;} else if(document.body&&typeof document.body.scrollHeight!='undefined'){docHeight=document.body.scrollHeight;} return docHeight;} tTooltip.prototype.pageWidth=function() {var docWidth;if(typeof document.Width!='undefined'){docWidth=document.Width;} else if(document.compatMode&&document.compatMode!='BackCompat'){docWidth=document.documentElement.scrollWidth;} else if(document.body&&typeof document.body.scrollWidth!='undefined'){docWidth=document.body.scrollWidth;} return docWidth;} tTooltip.prototype.getviewportsize=function() {var viewportwidth;var viewportheight;docheight=this.pageHeight();docwidth=this.pageWidth();if(typeof window.innerWidth!='undefined') {viewportwidth=window.innerWidth;viewportheight=window.innerHeight;} else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0) {viewportwidth=document.documentElement.clientWidth;viewportheight=document.documentElement.clientHeight;} else {viewportwidth=document.getElementsByTagName('body')[0].clientWidth;viewportheight=document.getElementsByTagName('body')[0].clientHeight;} viewprt=[];viewprt.width=viewportwidth;viewprt.height=viewportheight;if(docheight-1) {doc=command;resulttarget=id;} confirmed=true;if((typeof confirmation!='undefined')&&(confirmation!='')) {confirmed=confirm(confirmation);} if(confirmed) {nr++ TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';targetdiv='';if(typeof resulttarget!='undefined') {if(resulttarget!='') {targetdiv='formtargetdiv='+resulttarget+'&';}} if(app.indexOf('?')>-1) {if(app.indexOf('AJAX_REQ=')==-1) {if(app.substring(app.length-1)!='&') {app+='&';} app+='AJAX_REQ=yes';} TA[nr].Sourcefile=app;} else if(command=='') {TA[nr].Sourcefile=basepath+'/'+app+'?AJAX_REQ=yes&'+targetdiv+query;} else {if(id!='') {TA[nr].Sourcefile=basepath+'/'+app+'/'+command+'/'+id+'?AJAX_REQ=yes&'+targetdiv+query;} else {TA[nr].Sourcefile=basepath+'/'+app+'/'+command+'?AJAX_REQ=yes&'+targetdiv+query;}} if((typeof doc!='undefined')&&(doc!='')) {TA[nr].doctosend=doc;} TA[nr].onReadyresponsecommand='md3frontend.writeresponse(getresponse('+nr+'),\''+key+'\')';if(typeof resulttarget!='undefined') {if(resulttarget!='') {TA[nr].onReadyresponsecommand='md3frontend.writeresponse(getresponse('+nr+'),\''+key+'\',\''+resulttarget+'\')';}} TA[nr].doPost();}} md3frontend.prototype.writeresponse=function(content,key,resulttarget) {if(typeof resulttarget=='undefined'){application_elem=document.getElementById('block_main');} else {application_elem=document.getElementById(resulttarget);} var div_new=document.createElement('div');div_new.innerHTML=content application_elem.innerHTML='';application_elem.appendChild(div_new);try {var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');if(bSaf) {execJS(application_elem);} else if(bOpera) {execJS(application_elem);} else if(bMoz) {execJS(application_elem);} else {execJS(application_elem);}} catch(e) {alert(e);} this.runOnDoCommands();} md3frontend.prototype.runOnDoCommands=function(id) {for(var o=0;o0)&&(parts2[0]!='')) {var tmpObj=puntapi._('wsm_translationbar');if(tmpObj) {tmpObj.style.display='block';} puntapi._('wsm_translationbar_counter').innerHTML=parts2.length;try {puntapi.printLanguageWidget();} catch(e) {alert(e);}}} wsm_bc.prototype.translationBarOpen=function() {var tmpObj=puntapi._('wsm_translationbar');if(tmpObj) {tmpObj.style.display='none';} var tmpObj=puntapi._('wsm_translationbarFull');if(tmpObj) {tmpObj.style.display='block';}} wsm_bc.prototype.translationBarClose=function() {var tmpObj=puntapi._('wsm_translationbarFull');if(tmpObj) {tmpObj.style.display='none';} var tmpObj=puntapi._('wsm_translationbar');if(tmpObj) {tmpObj.style.display='block';}} var wsm=new wsm_bc();wsm.init(); function aggregateList(id,config) {var defaultConfig={interValSpeed:30000,};for(var i in defaultConfig) {if(typeof config[i]=='undefined') {config[i]=defaultConfig[i];}} var t={config:config,id:id,initialise:function() {this.lowestId=this.config.lowestId;this.highestId=this.config.highestId;this.interval=setInterval('_aggList._("'+this.id+'").update()',this.config.interValSpeed);},update:function() {var func1=function(response){_aggList._(response.config.aggregateListId).receiveUpdate(response);};var url=this.config.refreshUrl;var prt=url.split('?');if(prt.length>1) {url=url+'&aggDo=getAggregateListUpdate';} else {url=url+'?aggDo=getAggregateListUpdate';} _tajax.makeCall(url,{method:'GET',onFinish:func1,weight:1,aggregateListId:this.id});},loadMore:function() {var func1=function(response){_aggList._(response.config.aggregateListId).loadMoreDone(response);};var url=this.config.refreshUrl;var prt=url.split('?');if(prt.length>1) {url=url+'&AJAX_REQ=yes&startFromId='+encodeURIComponent(this.lowestId);} else {url=url+'?AJAX_REQ=yes&startFromId='+encodeURIComponent(this.lowestId);} puntapi._('Aggregatelist_'+this.id+'_update').style.display="none";puntapi._('Aggregatelist_'+this.id+'_updating').style.display="block";_tajax.makeCall(url,{method:'GET',onFinish:func1,weight:1,aggregateListId:this.id});},loadNew:function() {var func1=function(response){_aggList._(response.config.aggregateListId).loadNewDone(response);};var url=this.config.refreshUrl;var prt=url.split('?');if(prt.length>1) {url=url+'&AJAX_REQ=yes&startBeforeId='+encodeURIComponent(this.highestId);} else {url=url+'?AJAX_REQ=yes&startBeforeId='+encodeURIComponent(this.highestId);} puntapi._('Aggregatelist_'+this.id+'_updated').className='AggregateList_updated';puntapi._('Aggregatelist_'+this.id+'_updatingnew').style.display="block";_tajax.makeCall(url,{method:'GET',onFinish:func1,weight:1,aggregateListId:this.id});},loadNewDone:function(response) {var resp='';resp=response.xml.getElementsByTagName('content').item(0).firstChild.nodeValue;var parts=resp.split('///',3);puntapi._('Aggregatelist_'+this.id+'_updatingnew').style.display="none";if(parts[0]!='') {this.highestId=parts[1];puntapi._('Aggregatelist_'+this.id+'_prepended').innerHTML=parts[2]+puntapi._('Aggregatelist_'+this.id+'_prepended').innerHTML;} else {}},loadMoreDone:function(response) {var resp='';resp=response.xml.getElementsByTagName('content').item(0).firstChild.nodeValue;var parts=resp.split('///',3);puntapi._('Aggregatelist_'+this.id+'_updating').style.display="none";if(parts[0]!='') {this.lowestId=parts[0];puntapi._('Aggregatelist_'+this.id+'_appended').innerHTML+=parts[2];puntapi._('Aggregatelist_'+this.id+'_update').style.display="block";} else {puntapi._('Aggregatelist_'+this.id+'_nomore').style.display="block";}},receiveUpdate:function(response) {if(response.text.indexOf('totalResults:')==0) {var parts=response.text.split(':');if(parseInt(parts[1])>this.config.totalResults) {this.showUpdated((parseInt(parts[1])-this.config.totalResults));this.config.totalResults=parseInt(parts[1]);}}},showUpdated:function(totalNew) {var txt='';if(totalNew==1) {txt+='Er is '+totalNew+' nieuw bericht. Klik om te verversen.';} else {txt+='Er zijn '+totalNew+' nieuwe berichten. Klik om te verversen.';} puntapi._('Aggregatelist_'+this.id+'_updated').innerHTML=txt;puntapi._('Aggregatelist_'+this.id+'_updated').className='AggregateList_updated AggregateList_HasUpdate';}} return t;} var _aggList={lists:{},registerList:function(id,config) {this.lists[id]=new aggregateList(id,config);this.lists[id].initialise();},_:function(id) {return this.lists[id];}}; var SWFUpload;if(SWFUpload==undefined){SWFUpload=function(settings){this.initSWFUpload(settings);};} SWFUpload.prototype.initSWFUpload=function(settings){try{this.customSettings={};this.settings=settings;this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings();this.loadFlash();this.displayDebugInfo();}catch(ex){delete SWFUpload.instances[this.movieName];throw ex;}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.2.0 2009-03-25";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.completeURL=function(url){if(typeof(url)!=="string"||url.match(/^https?:\/\//i)||url.match(/^\//)){return url;} var currentURL=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");var indexSlash=window.location.pathname.lastIndexOf("/");if(indexSlash<=0){path="/";}else{path=window.location.pathname.substr(0,indexSlash)+"/";} return path+url;};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(settingName,defaultValue){this.settings[settingName]=(this.settings[settingName]==undefined)?defaultValue:this.settings[settingName];};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime();} if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url);} delete this.ensureDefault;};SWFUpload.prototype.loadFlash=function(){var targetElement,tempParent;if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";} targetElement=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(targetElement==undefined){throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;} tempParent=document.createElement("div");tempParent.innerHTML=this.getFlashHTML();targetElement.parentNode.replaceChild(tempParent.firstChild,targetElement);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement();}};SWFUpload.prototype.getFlashHTML=function(){return['','','','','','','',''].join("");};SWFUpload.prototype.getFlashVars=function(){var paramString=this.buildParamString();var httpSuccessString=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&uploadURL=",encodeURIComponent(this.settings.upload_url),"&useQueryString=",encodeURIComponent(this.settings.use_query_string),"&requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&httpSuccess=",encodeURIComponent(httpSuccessString),"&assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&params=",encodeURIComponent(paramString),"&filePostName=",encodeURIComponent(this.settings.file_post_name),"&fileTypes=",encodeURIComponent(this.settings.file_types),"&fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&buttonWidth=",encodeURIComponent(this.settings.button_width),"&buttonHeight=",encodeURIComponent(this.settings.button_height),"&buttonText=",encodeURIComponent(this.settings.button_text),"&buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&buttonAction=",encodeURIComponent(this.settings.button_action),"&buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("");};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName);} if(this.movieElement===null){throw"Could not find Flash element";} return this.movieElement;};SWFUpload.prototype.buildParamString=function(){var postParams=this.settings.post_params;var paramStringPairs=[];if(typeof(postParams)==="object"){for(var name in postParams){if(postParams.hasOwnProperty(name)){paramStringPairs.push(encodeURIComponent(name.toString())+"="+encodeURIComponent(postParams[name].toString()));}}} return paramStringPairs.join("&");};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);var movieElement=null;movieElement=this.getMovieElement();if(movieElement&&typeof(movieElement.CallFunction)==="unknown"){for(var i in movieElement){try{if(typeof(movieElement[i])==="function"){movieElement[i]=null;}}catch(ex1){}} try{movieElement.parentNode.removeChild(movieElement);}catch(ex){}} window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true;}catch(ex2){return false;}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned: ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned: ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_start_handler assigned: ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned: ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned: ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned: ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned: ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned: ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""));};SWFUpload.prototype.addSetting=function(name,value,default_value){if(value==undefined){return(this.settings[name]=default_value);}else{return(this.settings[name]=value);}};SWFUpload.prototype.getSetting=function(name){if(this.settings[name]!=undefined){return this.settings[name];} return"";};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement();var returnValue,returnString;try{returnString=movieElement.CallFunction(''+__flash__argumentsToXML(argumentArray,0)+'');returnValue=eval(returnString);}catch(ex){throw"Call to "+functionName+" failed";} if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue);} return returnValue;};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile");};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles");};SWFUpload.prototype.startUpload=function(fileID){this.callFlash("StartUpload",[fileID]);};SWFUpload.prototype.cancelUpload=function(fileID,triggerErrorEvent){if(triggerErrorEvent!==false){triggerErrorEvent=true;} this.callFlash("CancelUpload",[fileID,triggerErrorEvent]);};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload");};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats");};SWFUpload.prototype.setStats=function(statsObject){this.callFlash("SetStats",[statsObject]);};SWFUpload.prototype.getFile=function(fileID){if(typeof(fileID)==="number"){return this.callFlash("GetFileByIndex",[fileID]);}else{return this.callFlash("GetFile",[fileID]);}};SWFUpload.prototype.addFileParam=function(fileID,name,value){return this.callFlash("AddFileParam",[fileID,name,value]);};SWFUpload.prototype.removeFileParam=function(fileID,name){this.callFlash("RemoveFileParam",[fileID,name]);};SWFUpload.prototype.setUploadURL=function(url){this.settings.upload_url=url.toString();this.callFlash("SetUploadURL",[url]);};SWFUpload.prototype.setPostParams=function(paramsObject){this.settings.post_params=paramsObject;this.callFlash("SetPostParams",[paramsObject]);};SWFUpload.prototype.addPostParam=function(name,value){this.settings.post_params[name]=value;this.callFlash("SetPostParams",[this.settings.post_params]);};SWFUpload.prototype.removePostParam=function(name){delete this.settings.post_params[name];this.callFlash("SetPostParams",[this.settings.post_params]);};SWFUpload.prototype.setFileTypes=function(types,description){this.settings.file_types=types;this.settings.file_types_description=description;this.callFlash("SetFileTypes",[types,description]);};SWFUpload.prototype.setFileSizeLimit=function(fileSizeLimit){this.settings.file_size_limit=fileSizeLimit;this.callFlash("SetFileSizeLimit",[fileSizeLimit]);};SWFUpload.prototype.setFileUploadLimit=function(fileUploadLimit){this.settings.file_upload_limit=fileUploadLimit;this.callFlash("SetFileUploadLimit",[fileUploadLimit]);};SWFUpload.prototype.setFileQueueLimit=function(fileQueueLimit){this.settings.file_queue_limit=fileQueueLimit;this.callFlash("SetFileQueueLimit",[fileQueueLimit]);};SWFUpload.prototype.setFilePostName=function(filePostName){this.settings.file_post_name=filePostName;this.callFlash("SetFilePostName",[filePostName]);};SWFUpload.prototype.setUseQueryString=function(useQueryString){this.settings.use_query_string=useQueryString;this.callFlash("SetUseQueryString",[useQueryString]);};SWFUpload.prototype.setRequeueOnError=function(requeueOnError){this.settings.requeue_on_error=requeueOnError;this.callFlash("SetRequeueOnError",[requeueOnError]);};SWFUpload.prototype.setHTTPSuccess=function(http_status_codes){if(typeof http_status_codes==="string"){http_status_codes=http_status_codes.replace(" ","").split(",");} this.settings.http_success=http_status_codes;this.callFlash("SetHTTPSuccess",[http_status_codes]);};SWFUpload.prototype.setAssumeSuccessTimeout=function(timeout_seconds){this.settings.assume_success_timeout=timeout_seconds;this.callFlash("SetAssumeSuccessTimeout",[timeout_seconds]);};SWFUpload.prototype.setDebugEnabled=function(debugEnabled){this.settings.debug_enabled=debugEnabled;this.callFlash("SetDebugEnabled",[debugEnabled]);};SWFUpload.prototype.setButtonImageURL=function(buttonImageURL){if(buttonImageURL==undefined){buttonImageURL="";} this.settings.button_image_url=buttonImageURL;this.callFlash("SetButtonImageURL",[buttonImageURL]);};SWFUpload.prototype.setButtonDimensions=function(width,height){this.settings.button_width=width;this.settings.button_height=height;var movie=this.getMovieElement();if(movie!=undefined){movie.style.width=width+"px";movie.style.height=height+"px";} this.callFlash("SetButtonDimensions",[width,height]);};SWFUpload.prototype.setButtonText=function(html){this.settings.button_text=html;this.callFlash("SetButtonText",[html]);};SWFUpload.prototype.setButtonTextPadding=function(left,top){this.settings.button_text_top_padding=top;this.settings.button_text_left_padding=left;this.callFlash("SetButtonTextPadding",[left,top]);};SWFUpload.prototype.setButtonTextStyle=function(css){this.settings.button_text_style=css;this.callFlash("SetButtonTextStyle",[css]);};SWFUpload.prototype.setButtonDisabled=function(isDisabled){this.settings.button_disabled=isDisabled;this.callFlash("SetButtonDisabled",[isDisabled]);};SWFUpload.prototype.setButtonAction=function(buttonAction){this.settings.button_action=buttonAction;this.callFlash("SetButtonAction",[buttonAction]);};SWFUpload.prototype.setButtonCursor=function(cursor){this.settings.button_cursor=cursor;this.callFlash("SetButtonCursor",[cursor]);};SWFUpload.prototype.queueEvent=function(handlerName,argumentArray){if(argumentArray==undefined){argumentArray=[];}else if(!(argumentArray instanceof Array)){argumentArray=[argumentArray];} var self=this;if(typeof this.settings[handlerName]==="function"){this.eventQueue.push(function(){this.settings[handlerName].apply(this,argumentArray);});setTimeout(function(){self.executeNextEvent();},0);}else if(this.settings[handlerName]!==null){throw"Event handler "+handlerName+" is unknown or is not a function";}};SWFUpload.prototype.executeNextEvent=function(){var f=this.eventQueue?this.eventQueue.shift():null;if(typeof(f)==="function"){f.apply(this);}};SWFUpload.prototype.unescapeFilePostParams=function(file){var reg=/[$]([0-9a-f]{4})/i;var unescapedPost={};var uk;if(file!=undefined){for(var k in file.post){if(file.post.hasOwnProperty(k)){uk=k;var match;while((match=reg.exec(uk))!==null){uk=uk.replace(match[0],String.fromCharCode(parseInt("0x"+match[1],16)));} unescapedPost[uk]=file.post[k];}} file.post=unescapedPost;} return file;};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface");}catch(ex){return false;}};SWFUpload.prototype.flashReady=function(){var movieElement=this.getMovieElement();if(!movieElement){this.debug("Flash called back ready but the flash movie can't be found.");return;} this.cleanUp(movieElement);this.queueEvent("swfupload_loaded_handler");};SWFUpload.prototype.cleanUp=function(movieElement){try{if(this.movieElement&&typeof(movieElement.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(var key in movieElement){try{if(typeof(movieElement[key])==="function"){movieElement[key]=null;}}catch(ex){}}}}catch(ex1){} window["__flash__removeCallback"]=function(instance,name){try{if(instance){instance[name]=null;}}catch(flashEx){}};};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler");};SWFUpload.prototype.fileQueued=function(file){file=this.unescapeFilePostParams(file);this.queueEvent("file_queued_handler",file);};SWFUpload.prototype.fileQueueError=function(file,errorCode,message){file=this.unescapeFilePostParams(file);this.queueEvent("file_queue_error_handler",[file,errorCode,message]);};SWFUpload.prototype.fileDialogComplete=function(numFilesSelected,numFilesQueued,numFilesInQueue){this.queueEvent("file_dialog_complete_handler",[numFilesSelected,numFilesQueued,numFilesInQueue]);};SWFUpload.prototype.uploadStart=function(file){file=this.unescapeFilePostParams(file);this.queueEvent("return_upload_start_handler",file);};SWFUpload.prototype.returnUploadStart=function(file){var returnValue;if(typeof this.settings.upload_start_handler==="function"){file=this.unescapeFilePostParams(file);returnValue=this.settings.upload_start_handler.call(this,file);}else if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function";} if(returnValue===undefined){returnValue=true;} returnValue=!!returnValue;this.callFlash("ReturnUploadStart",[returnValue]);};SWFUpload.prototype.uploadProgress=function(file,bytesComplete,bytesTotal){file=this.unescapeFilePostParams(file);this.queueEvent("upload_progress_handler",[file,bytesComplete,bytesTotal]);};SWFUpload.prototype.uploadError=function(file,errorCode,message){file=this.unescapeFilePostParams(file);this.queueEvent("upload_error_handler",[file,errorCode,message]);};SWFUpload.prototype.uploadSuccess=function(file,serverData,responseReceived){file=this.unescapeFilePostParams(file);this.queueEvent("upload_success_handler",[file,serverData,responseReceived]);};SWFUpload.prototype.uploadComplete=function(file){file=this.unescapeFilePostParams(file);this.queueEvent("upload_complete_handler",file);};SWFUpload.prototype.debug=function(message){this.queueEvent("debug_handler",message);};SWFUpload.prototype.debugMessage=function(message){if(this.settings.debug){var exceptionMessage,exceptionValues=[];if(typeof message==="object"&&typeof message.name==="string"&&typeof message.message==="string"){for(var key in message){if(message.hasOwnProperty(key)){exceptionValues.push(key+": "+message[key]);}} exceptionMessage=exceptionValues.join("\n")||"";exceptionValues=exceptionMessage.split("\n");exceptionMessage="EXCEPTION: "+exceptionValues.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(exceptionMessage);}else{SWFUpload.Console.writeLine(message);}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(message){var console,documentForm;try{console=document.getElementById("SWFUpload_Console");if(!console){documentForm=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(documentForm);console=document.createElement("textarea");console.id="SWFUpload_Console";console.style.fontFamily="monospace";console.setAttribute("wrap","off");console.wrap="off";console.style.overflow="auto";console.style.width="700px";console.style.height="350px";console.style.margin="5px";documentForm.appendChild(console);} console.value+=message+"\n";console.scrollTop=console.scrollHeight-console.clientHeight;}catch(ex){alert("Exception: "+ex.name+" Message: "+ex.message);}}; var SWFUpload;if(typeof(SWFUpload)==="function"){SWFUpload.queue={};SWFUpload.prototype.initSettings=(function(oldInitSettings){return function(){if(typeof(oldInitSettings)==="function"){oldInitSettings.call(this);} this.queueSettings={};this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0;this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler;this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler;this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler;this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler;this.settings.queue_complete_handler=this.settings.queue_complete_handler||null;};})(SWFUpload.prototype.initSettings);SWFUpload.prototype.startUpload=function(fileID){this.queueSettings.queue_cancelled_flag=false;this.callFlash("StartUpload",[fileID]);};SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=true;this.stopUpload();var stats=this.getStats();while(stats.files_queued>0){this.cancelUpload();stats=this.getStats();}};SWFUpload.queue.uploadStartHandler=function(file){var returnValue;if(typeof(this.queueSettings.user_upload_start_handler)==="function"){returnValue=this.queueSettings.user_upload_start_handler.call(this,file);} returnValue=(returnValue===false)?false:true;this.queueSettings.queue_cancelled_flag=!returnValue;return returnValue;};SWFUpload.queue.uploadCompleteHandler=function(file){var user_upload_complete_handler=this.queueSettings.user_upload_complete_handler;var continueUpload;if(file.filestatus===SWFUpload.FILE_STATUS.COMPLETE){this.queueSettings.queue_upload_count++;} if(typeof(user_upload_complete_handler)==="function"){continueUpload=(user_upload_complete_handler.call(this,file)===false)?false:true;}else if(file.filestatus===SWFUpload.FILE_STATUS.QUEUED){continueUpload=false;}else{continueUpload=true;} if(continueUpload){var stats=this.getStats();if(stats.files_queued>0&&this.queueSettings.queue_cancelled_flag===false){this.startUpload();}else if(this.queueSettings.queue_cancelled_flag===false){this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]);this.queueSettings.queue_upload_count=0;}else{this.queueSettings.queue_cancelled_flag=false;this.queueSettings.queue_upload_count=0;}}};} if(typeof loaderbar=='object'){loaderbar.loadedfile('wsmpack.js')}; /* FILE ARCHIVED ON 06:21:04 Mar 31, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:18:17 Oct 20, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 82.848 (3) esindex: 0.008 captures_list: 101.209 CDXLines.iter: 9.306 (3) PetaboxLoader3.datanode: 134.437 (5) exclusion.robots: 0.21 exclusion.robots.policy: 0.195 RedisCDXSource: 6.278 PetaboxLoader3.resolve: 89.096 (2) load_resource: 156.403 */