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;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;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=new Array;this.defaultconfig=new tajaxDefaultConfig;this.currentcalls=new Array;this.history=new Array;this.ajaxqueuea=new Array;this.ajaxqueueb=new Array;if(typeof config=='object') {this.config=config;} else {this.config=new Array();} for(var i in this.defaultconfig) {if(typeof this.config[i]=='undefined') {this.config[i]=this.defaultconfig[i];}}} 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=new Array();for(hh=0;hh';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));}} function stripenter(value){val=value.split('\n');value=val.join('');return value;} function trim(value){value=value.replace(/^\s+/,'');value=value.replace(/\s+$/,'');return value;} logging=true;xsltdebug=true;var pi_statustimeout,pi_overlayertimeout;var puntInterface_xsl=new Array();var nr=0;var TA=new Array();var reloadcd;var statuscd;var foldout=0;var foldout2=0;var loaded_notifications=new Array();function execJS(node){var bSaf=(navigator.userAgent.indexOf('Safari')!=-1);var bOpera=(navigator.userAgent.indexOf('Opera')!=-1);var bMoz=(navigator.appName=='Netscape');var st=node.getElementsByTagName('script');var strExec;for(var i=0;i
    ";for(var lnr=0;lnr"+ltags[lnr]+"
    ";}} html+="
";puntapi._('languageoutputbox').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=new Array();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.reportform=function() {this.reporter++;data='
';data+='
';data+='Soort rapportage:

';data+='Korte omschrijving:

';data+='Omschrijf het probleem of de nieuwe functie:

';data+='
';data+='';data+='
';data+='
';data+='
';closeid=this.newMessagebox('Rapporteer een probleem of een nieuwe functie',data,'',300,'yes');} punt_api.prototype.report=function(typeid,titleid,textid,msgbox) {title=puntapi._(titleid).value;type=puntapi._(typeid).value;text=puntapi._(textid).value;rawdata='=====REPORT=====\n';rawdata+='window.location:\n'+window.location+'\n';rawdata+='ajax calls:\n' for(u=1;u
";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.checkforceddone=function(data2) {list=data2.split('[SEPP]');for(i=0;i"+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*1;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=new Array();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) {var confirmed=true;if(this.openchanges) {confirmed=confirm('global_openchanges_form');} else if((typeof confirmation!='undefined')&&(confirmation!='')) {confirmed=confirm(confirmation);} this.lr=new Array();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;this.lr.resulttarget=resulttarget;if(this.defaulttarget==resulttarget) {mdunloadUnloadable=true;} if((typeof resulttarget=='undefined')||(resulttarget=='')) {if(this.defaulttarget!='') {resulttarget=this.defaulttarget;} else {resulttarget='';}} key=app+'_'+command+'_'+id+'_'+query;puntMedia.reloaditem=0;if(resulttarget==this.defaulttarget) {if(resulttarget!='dialogoutput'){window.scrollTo(0,0);}} _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) {nr++ TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';targetdiv='';if(typeof resulttarget!='undefined') {if(resulttarget!='') {targetdiv='formtargetdiv='+resulttarget+'&';}} 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=this.cn+'.WriteAppresponse(getresponsexml('+nr+'),getresponse('+nr+'),\''+key+'\')';if(typeof resulttarget!='undefined') {if(resulttarget!='') {TA[nr].onReadyresponsecommand=this.cn+'.WriteAppresponse(getresponsexml('+nr+'),getresponse('+nr+'),\''+key+'\',\''+resulttarget+'\')';}} if(typeof callback!='undefined') {TA[nr].onReadyresponsecommand+=';\n'+callback;} this.start_hidercount();TA[nr].doPost();} return false;} punt_api.prototype.DoCommand2=function(path,doc,resulttarget,callback,noscroll) {this.lr=new Object;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')) {st=3;} else {st=2;}} else if((sp2[1]=='Profile')||(sp2[1]=='Admin')||(sp2[1]=='Service')) {st=1;} else {st=0;} var qapplication=sp2[st+1];var qcommand=sp2[st+2];var qid=sp2[st+3];var qquery=splitpath[1];if((qapplication=='undefined')||(typeof qapplication=='undefined')) {qapplication='';} if((qcommand=='undefined')||(typeof qcommand=='undefined')) {qcommand='';} if((qid=='undefined')||(typeof qid=='undefined')) {qid='';} if((qquery=='undefined')||(typeof qquery=='undefined')) {qquery='';} this.DoCommand(qapplication,qcommand,qid,qquery,'',doc,resulttarget,callback);return true;mayclose=true;if(resulttarget==this.defaulttarget) {window.scrollTo(0,0);} nr++ TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';_toolTip.hide();_toolTip.disabled=true;if(typeof resulttarget=='undefined') {TA[nr].Sourcefile=splitpath[0]+'?AJAX_REQ=yes&'+splitpath[1];} else {TA[nr].Sourcefile=splitpath[0]+'?AJAX_REQ=yes&formtargetdiv='+encodeURIComponent(resulttarget)+'&'+splitpath[1];} TA[nr].doctosend=doc;TA[nr].onReadyresponsecommand=this.cn+'.WriteAppresponse(getresponsexml('+nr+'),getresponse('+nr+'),\'\')';if(typeof resulttarget!='undefined') {if(resulttarget!='') {TA[nr].onReadyresponsecommand=this.cn+'.WriteAppresponse(getresponsexml('+nr+'),getresponse('+nr+'),\'\',\''+resulttarget+'\')';}} if(typeof callback!='undefined') {TA[nr].onReadyresponsecommand+=';\n'+callback;} TA[nr].doPost();} punt_api.prototype.start_hidercount=function() {clearTimeout(reloadcd);clearTimeout(statuscd);reloadcd=setTimeout(this.cn+".start_hider()",400);} punt_api.prototype.start_hider=function() {clearTimeout(reloadcd);try{puntapi._("statuslayer").innerHTML='
';puntapi._("statuslayer").style.display='block';} catch(e) {}} punt_api.prototype.stop_hider=function() {clearTimeout(reloadcd);try {puntapi._("statuslayer").style.display='none';} catch(e) {}} punt_api.prototype.hide_status=function() {puntapi._("statuslayer").style.display='none';} punt_api.prototype.openCurrentSelectedDomain=function() {puntapi.DoCommand('domainmanager','selectdomain',this.currentselecteddomain);} 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,15);} this.currentselecteddomain=id;if(basepath!='/Admin'){puntapi._('hostname').innerHTML=""+title+"";} else {puntapi._('hostname').innerHTML=""+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.WriteAppresponse=function(response,responsetxt,key,resulttarget,fromhistory) {var resp='';var app='';var command='';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) {} _toolTip.disabled=false;if(responsetxt.indexOf('')==-1){if(typeof resulttarget=='undefined'){if(typeof key!='undefined'){key=key.replace('#','');if(key!=''){if(typeof fromhistory=='undefined'){var targs=new Array;for(var ttval=0;ttval<5;ttval++){targs[ttval]=arguments[ttval];} ajaxhist.registerhistory(key,targs);} tkey=key.split('_');app='';command='';if(typeof tkey[0]!='undefined'){app=tkey[0];} if(typeof tkey[1]!='undefined'){command=tkey[1];} md3nav.displaynav(app,command);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=new Array;for(var ttval=0;ttval<5;ttval++){targs[ttval]=arguments[ttval];} ajaxhist.registerhistory(key,targs);} tkey=key.split('_');app='';command='';if(typeof tkey[0]!='undefined'){app=tkey[0];} if(typeof tkey[1]!='undefined'){command=tkey[1];} this.currentapp=app;this.currentcommand=command;}}}}} 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){} this.currentlangtags='';try{this.currentlangtags=x.getElementsByTagName('notreplacedtags').item(0).firstChild.nodeValue;}catch(e){} this.currentlang='';try{this.currentlang=x.getElementsByTagName('notreplacedtags').item(0).getAttribute('lang');}catch(e){} var tracedata='';try{tracedata=x.getElementsByTagName('trace').item(0).firstChild.nodeValue;}catch(e){} if(debugmessages!='') {try {puntapi._('debugtextdata').value+=debugmessages;this.blinkmessagetitle('debugtogglefield',20,200,0);} 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') {this.handleTrace(tracedata);} else {this._('tracecontainer').style.display='none';} 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);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);}}} catch(errorz) {this.addAlert('Oeps er is iets fout gegaan.','Er is iets fout gegaan aan de kant van de server. Gebruik de feedback knop rechts bovenin om een mogelijke foutmelding naar de systeem ontwikkelaars en systeembeheerders te sturen. Onze excuses voor het 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.renderTrace(data);this._('tracecontainer').style.display='block';} else {this._('tracecontainer').style.display='none';}} punt_api.prototype.renderTrace=function(data) {var parts=new Array();var sep='>';for(var uu=0;uuscalersizes[ssnr].biggerthan) {usedsize=scalersizes[ssnr];}} if(typeof scalersizes[ssnr].smallerthan!='undefined') {if(vp.width0) {bgcontainer.style.right=(scalersize.sidespacing-13)+'px';} else {bgcontainer.style.right=scalersize.sidespacing+'px';} notificationcontainerElement.style.left=scalersize.sidespacing+'px';notificationcontainerElement.style.right=scalersize.sidespacing+'px';menubarelem.style.left=scalersize.sidespacing+'px';menubarelem.style.right=scalersize.sidespacing+'px';topbarelem.style.left=scalersize.sidespacing+'px';topbarelem.style.right=scalersize.sidespacing+'px';contentwapperElement.style.top=(dim2.y+dim2.h+sep)+'px';widgetLeftElement.style.left=scalersize.sidespacing+'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;var rightcontentspacing=285+sep;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.addNotification=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+='';_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=new Array;for(var nn=0;nn0) {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"";} 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) {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,'','','dialogoutput');} punt_dialog.prototype.startSemiDialog=function(htmlpre,htmlpost,returnfunction,returndata,returndata2,query2) {this.returnfunction=returnfunction;this.returndata=returndata;this.returndata2=returndata2;this.semi=true;this.query2=query2;this.onCloseMethod=false;_lb.open(htmlpre+'
 
'+htmlpost,'60%','90%',undefined,undefined,function(){puntdialog.onhide()});puntapi.changeActionbuttonTarget('dialog');puntapi.defaulttarget='dialogoutput';puntapi.defaulttarget='dialogoutput';} punt_dialog.prototype.startdialog=function(application,command,id,query,returnfunction,returndata,returndata2,query2) {this.onCloseMethod=false;this.semi=false;this.application=application;this.command=command;this.idval=id;this.query=query+'&dialog=yes';if(typeof query2=='undefined') {query2='';} else {query3=query2.split('&');query2='';for(u=0;u
 
Even geduld
Even geduld, het dialoogscherm wordt geladen
','60%',undefined,undefined,undefined,function(){puntdialog.onhide()});puntapi.changeActionbuttonTarget('dialog');puntapi.defaulttarget='dialogoutput';puntapi.DoCommand(this.application,this.command,this.idval,this.query+this.query2,'','','dialogoutput');puntapi.defaulttarget='dialogoutput';} punt_dialog.prototype.addslashes=function(str) {str=str.replace(/\'/g,'\\\'');str=str.replace(/\"/g,'\\"');str=str.replace(/\\/g,'\\\\');str=str.replace(/\0/g,'\\0');return str;} punt_dialog.prototype.returnval=function() {returndata=this.returndata;returndata2=this.returndata2;argumentlist=new Array();for(var i=0;i0){leftRemain=Math.floor(remainderW/2);} var topRemain=0;var remainderH=viewprt.height-oldim.h;if(remainderH>0){topRemain=Math.floor(remainderH/2);} OL.style.left=+(leftRemain)+'px';OL.style.top=+(this.savescrolltop+topRemain)+'px';pagesz=this.getPageSize();viewprt=new Object();viewprt.height=pagesz[3];viewprt.width=pagesz[2];viewprt.docheight=pagesz[1];viewprt.docwidth=pagesz[0];viewprt=this.getviewportsize();if(oldim.w>viewprt.width) {iContainer.width=viewprt.width-40;} UL.style.width='100%';UL.style.height=viewprt.docheight+'px';} catch(e) {} this.rescaleinprogress=false;} lightbox.prototype.open=function(contents,width,height,cornercolor,cornersize,onClose) {if(typeof onClose=='function') {this.onClose=onClose;} else {this.onClose=function(){}} var UL=_lb._('LB_underlay');var OL=_lb._('LB_overlay');pagesz=this.getPageSize();viewprt=new Object();viewprt.height=pagesz[3];viewprt.width=pagesz[2];viewprt.docheight=pagesz[1];viewprt.docwidth=pagesz[0];this.savescrolltop=this.scrolltop();this.currentheightvar=height;this.currentwidthvar=width;var bdy=document.getElementsByTagName('body').item(0);var browserName=navigator.appName;this.checkpresent();var UL=_lb._('LB_underlay');var OL=_lb._('LB_overlay');UL.style.position='absolute';UL.style.top='0px';UL.style.left='0px';UL.style.width='100%';UL.style.height=(viewprt.docheight)+'px';UL.style.zIndex='250';UL.style.backgroundColor='black';if(browserName=="Microsoft Internet Explorer"){UL.style.filter='alpha(opacity='+60+')';} else {UL.style.opacity=0.6;} OL.style.zIndex='251';OL.style.position='absolute';OL.style.top='0px';UL.style.display='block';OL.style.display='block';var roundboxhtml=this.generateRoundBox('dialogbox_output',cornercolor,cornersize);OL.innerHTML=roundboxhtml;_lb._('dialogbox_output').innerHTML=contents;if(!this.disableautohide) {var onC=this.cn+'.hide()';UL.onclick=new Function(onC);} else {UL.onclick=function(){};} this.opened=true;this.rescale();} lightbox.prototype.rescalebackup=function() {var toppos=0;var leftpos=0;try{var wasshown=false;if(!this.disabled){var UL=_lb._('LB_underlay');var OL=_lb._('LB_overlay');try{if(UL){if(UL.style.display=='block'){UL.style.display='none';OL.style.display='none';wasshown=true;}}} catch(e){return false;} height=this.currentheightvar;width=this.currentwidthvar;pagesz=this.getPageSize();viewprt=new Object();viewprt.height=pagesz[3];viewprt.width=pagesz[2];viewprt.docheight=pagesz[1];viewprt.docwidth=pagesz[0];if((typeof height!='undefined')){if(height.indexOf('%')){height2=height.split('%');height=Math.floor((viewprt.height/100)*height2[0]);}} else{height=this.defaultHeight;} if(typeof width!='undefined'){if(width.indexOf('%')){width2=width.split('%');width=Math.floor((viewprt.width/100)*width2[0]);}} else{width=this.defaultWidth;} try{heightspace=(viewprt.height-height);widthspace=(viewprt.docwidth-width);if(heightspace>0){toppos=heightspace/2;} else{toppos=0;} if(widthspace>0){leftpos=widthspace/2;} else{leftpos=0;} if(typeof cornercolor=='undefined'){cornercolor=this.defaultCornerColor;} if(typeof cornersize=='undefined'){cornersize=this.defaultCornerSize;} if(typeof innerstyle=='undefined'){innerstyle=this.defaultInnerStyle;}} catch(e) {} bdy=document.getElementsByTagName('body').item(0);var browserName=navigator.appName;this.checkpresent();UL=_lb._('LB_underlay');OL=_lb._('LB_overlay');UL.style.position='absolute';UL.style.top='0px';UL.style.left='0px';UL.style.width='100%';UL.style.height=(viewprt.docheight)+'px';UL.style.zIndex='250';UL.style.backgroundColor='black';if(browserName=="Microsoft Internet Explorer"){UL.style.filter='alpha(opacity='+60+')';} else{UL.style.opacity=0.6;} try{OL.style.zIndex='250';OL.style.position='absolute';OL.style.top=(toppos+this.savescrolltop)+'px';OL.style.left=leftpos+'px';OL.style.width=width+'px';OL.style.height=height+'px';if(wasshown){UL.style.display='block';OL.style.display='block';} else {UL.style.display='none';OL.style.display='none';}} catch(e) {}}} catch(e) {}} lightbox.prototype.openBackup=function(contents,width,height,cornercolor,cornersize,onClose) {if(typeof onClose=='function') {this.onClose=onClose;} else {this.onClose=function(){}} if(!this.disabled) {pagesz=this.getPageSize();viewprt=this.getviewportsize();viewprt=new Object();viewprt.height=pagesz[3];viewprt.width=pagesz[2];viewprt.docheight=pagesz[1];viewprt.docwidth=pagesz[0];this.savescrolltop=this.scrolltop();this.currentheightvar=height;this.currentwidthvar=width;if(typeof height!='undefined') {if(height.indexOf('%')!=-1){height2=height.split('%');height=(viewprt.height/100)*height2[0];} else if(height.indexOf('px')) {var heightparts=height.split('px');height=heightparts[0];}} else {height=this.defaultHeight;} if(typeof width!='undefined') {if(width.indexOf('%')!=-1){width2=width.split('%');width=(viewprt.width/100)*width2[0];} else if(width.indexOf('px')) {var widthparts=width.split('px');width=widthparts[0];}} else {width=this.defaultWidth;} heightspace=(viewprt.height-height);widthspace=(viewprt.width-width);if(heightspace>0) {toppos=heightspace/2;} else {toppos=0;} if(widthspace>0) {leftpos=widthspace/2;} else {leftpos=0;} if(typeof cornercolor=='undefined') {cornercolor=this.defaultCornerColor;} if(typeof cornersize=='undefined') {cornersize=this.defaultCornerSize;} if(typeof innerstyle=='undefined') {innerstyle=this.defaultInnerStyle;} bdy=document.getElementsByTagName('body').item(0);var browserName=navigator.appName;this.checkpresent();var UL=_lb._('LB_underlay');var OL=_lb._('LB_overlay');UL.style.position='absolute';UL.style.top='0px';UL.style.left='0px';UL.style.width='100%';UL.style.height=(viewprt.docheight)+'px';UL.style.zIndex='250';UL.style.backgroundColor='black';if(browserName=="Microsoft Internet Explorer"){UL.style.filter='alpha(opacity='+60+')';} else {UL.style.opacity=0.6;} OL.style.zIndex='250';OL.style.position='absolute';OL.style.top=(toppos+this.savescrolltop)+'px';OL.style.left=leftpos+'px';OL.style.width=width+'px';OL.style.height=height+'px';OL.innerHTML=this.generateRoundBox('dialogbox_output',cornercolor,cornersize);UL.style.display='none';OL.style.display='none';if(!this.disableautohide) {var onC=this.cn+'.hide()';UL.onclick=new Function(onC);_lb._('dialogbox_output').style.width=width-(cornersize*2)+'px';_lb._('dialogbox_output').style.height=height-((cornersize*2)+20)+'px';} else {_lb._('dialogbox_output').style.width=width-(cornersize*2)+'px';_lb._('dialogbox_output').style.height=height-(cornersize*2)+'px';} _lb._('dialogbox_output').innerHTML=contents;UL.style.display='block';OL.style.display='block';pagesz=this.getPageSize();}} lightbox.prototype.generateRoundBox=function(id,cornercolor,cornersize,innerstyle) {if(typeof cornercolor=='undefined') {cornercolor=this.defaultCornerColor;} if(typeof cornersize=='undefined') {cornersize=this.defaultCornerSize;} if(typeof innerstyle=='undefined') {innerstyle=this.defaultInnerStyle;} if(typeof containerstyle=='undefined') {containerstyle=this.defaultContainerStyle;} filetl=this.cornerBasePath+'images/corner_'+cornersize+'_'+cornercolor+'_tl.png';filetr=this.cornerBasePath+'images/corner_'+cornersize+'_'+cornercolor+'_tr.png';filebl=this.cornerBasePath+'images/corner_'+cornersize+'_'+cornercolor+'_bl.png';filebr=this.cornerBasePath+'images/corner_'+cornersize+'_'+cornercolor+'_br.png';fileblank=this.cornerBasePath+'images/blank.gif';fileclose=this.cornerBasePath+'images/close.gif';stylehoriz='width:'+cornersize+'px;font-size:0px;background-color:#'+cornercolor;stylevert='height:'+cornersize+'px;font-size:0px;background-color:#'+cornercolor;ht='';ht+='';ht+='' ht+='';ht+='';ht+='';ht+='

';return ht;} lightbox.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;} lightbox.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;} lightbox.prototype.getPageSizeWithScroll=function(){if(window.innerHeight&&window.scrollMaxY){yWithScroll=window.innerHeight+window.scrollMaxY;xWithScroll=window.innerWidth+window.scrollMaxX;}else if(document.body.scrollHeight>document.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;} lightbox.prototype.getviewportsize=function() {var viewportwidth;var viewportheight;var pagesizewithscroll=this.getPageSizeWithScroll();var viewprt=new Object;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=new Object;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';_lb.open(lb,(parseInt(w)+20)+'px',(parseInt(h)+40)+'px',undefined,undefined);} punt_media.prototype.insertitem=function() {var browserName=navigator.appName;if(browserName=="Microsoft Internet Explorer") {} else {} id=arguments[arguments.length-2];type=arguments[arguments.length-1];dta=arguments;if(type=='wysiwygtinymce') {style='';if(dta[4]!='') {style+='float:'+dta[4]+';margin:'+dta[6]+'px';} if(dta[5]=='fullsize') {img=dta[2];} else if(dta[5]=='thumbnail') {img=dta[0];} else {img=dta[1];} if(dta[7]=='yes') {var image='';} else {var image='';} puntapi.insertHTML(image,id[0],id[1],id[4]);} else if(type=='wysiwyg') {style='';if(dta[4]!='') {style+='float:'+dta[4]+';margin:'+dta[6]+'px';} if(dta[5]=='fullsize') {img=dta[2];} else if(dta[5]=='thumbnail') {img=dta[0];} else {img=dta[1];} if(dta[7]=='yes') {var image='';} else {var image='';} insertHTML(image,id,currentrange);} else if(type=='formelement') {if(dta[5]=='fullsize') {img=dta[2];} else if(dta[5]=='thumbnail') {img=dta[0];} else {img=dta[1];} puntapi._(id).value=img;}} punt_media.prototype.writebackdialog=function() {if(puntapi._('imagelink').checked) {imglink=puntapi._('imagelink').value;} else {imglink='';} try{puntdialog.returnval(puntapi._('thumbnailsize').value,puntapi._('normalsize').value,puntapi._('fullsize').value,puntapi._('originalsize').value,puntapi._('targetpath').value,puntapi._('imagealign').value,puntapi._('imageselect').value,puntapi._('imagemargin').value,imglink)} catch(e) {alert(e);}} punt_media.prototype.rotate=function(id,direction) {if(direction=='left') {puntapi.DoCommand(this.appname,'rotateleft',id,'','','','');} else {puntapi.DoCommand(this.appname,'rotateright',id,'','','','');}} punt_media.prototype.rewritebuttonbar=function(blurttons) {html='';stepenabled=0;puntapi.resetActionButtons();try {for(o=0;o-1) {data=data.replace(/-/,'/');} msecs=Date.parse(data);return new Date(msecs);} _tdate.prototype.convert=function(filter) {output=filter;if(filter.indexOf('Y')>-1){output=output.replace(/Y/,this.date.getFullYear());} if(filter.indexOf('y')>-1){var year=this.date.getFullYear()+'';year=year.substr(2,2);output=output.replace(/y/,year);} if(filter.indexOf('m')>-1){var mnth=this.date.getMonth()+1;if(mnth<=9){mnth='0'+mnth};output=output.replace(/m/,mnth);} if(filter.indexOf('d')>-1){var day=this.date.getDate();if(day<=9){day='0'+day};output=output.replace(/d/,day);} if(filter.indexOf('j')>-1){var day=this.date.getDate();output=output.replace(/j/,day);} if(filter.indexOf('H')>-1){var Hour=this.date.getHours();if(Hour<=9){Hour='0'+Hour};output=output.replace(/H/,Hour);} if(filter.indexOf('h')>-1){var Hour=this.date.getHours();if(Hour>12){Hour=Hour-12};if(Hour<=9){Hour='0'+Hour};output=output.replace(/h/,Hour);} if(filter.indexOf('G')>-1){var Hour=this.date.getHours();output=output.replace(/G/,Hour);} if(filter.indexOf('g')>-1){var Hour=this.date.getHours();if(Hour>12){Hour=Hour-12};output=output.replace(/g/,Hour);} if(filter.indexOf('i')>-1){var minute=this.date.getMinutes();if(minute<=9){minute='0'+minute};output=output.replace(/i/,minute);} if(filter.indexOf('s')>-1){var seconds=this.date.getSeconds();if(seconds<=9){seconds='0'+seconds};output=output.replace(/s/,seconds);} if(filter.indexOf('a')>-1){var Hour=this.date.getHours();var ampm;if(Hour>12){ampm='pm'}else{ampm='am'};output=output.replace(/a/,ampm);} if(filter.indexOf('A')>-1){var Hour=this.date.getHours();var ampm;if(Hour>12){ampm='PM'}else{ampm='AM'};output=output.replace(/A/,ampm);} if(filter.indexOf('M')>-1){var mnth=this.date.getMonth()+1;mnth=this.months_short[mnth-1];output=output.replace(/M/,mnth);} if(filter.indexOf('F')>-1){var mnth=this.date.getMonth()+1;mnth=this.months[mnth-1];output=output.replace(/F/,mnth);} return output;} function datagrid(cn) {this.cn=cn;this.topcolor='aeaeae';this.bottomcolor='eeeeee';this.waschanged=false;if(navigator.appVersion.indexOf("MSIE")!=-1) {this.isIE=true;} else {this.isIE=false;}} datagrid.prototype.init=function(config) {this.config=config;this.msgtxt='';this.output=this.config.output;this.workingcopies=new Array();this.data=JSON2.parse(document.getElementById(this.config.sourcefield).value);this.datainitial=JSON2.parse(document.getElementById(this.config.sourcefield).value);this.data.throughinit='yes';if(typeof this.data.rows!='object') {this.data.rows=new Array;} this.config.autoSave=this.data.autoSave;this.handledependenciesallrows();this.handlerulesallrows();this.dims=new dimensions();this.redraw();} datagrid.prototype.debug=function(msg) {if(this.config.debugmode) {this.msgtxt+=msg+'
';document.getElementById(this.output+'_debug').innerHTML=this.msgtxt;}} datagrid.prototype.haschanges=function() {clearTimeout(this.changetimeout);this.changetimeout=setTimeout(this.cn+'.dohaschanges()',500);} datagrid.prototype.dohaschanges=function() {try {var ooo;var uuu;this.debug('starting changes check');if(this.data.rows.length==this.datainitial.rows.length) {for(ooo=0;ooo'+this.datainitial.rows.length);this.waschanged=true;document.getElementById(this.output+'_changed').style.display='block';return true;} this.waschanged=false;document.getElementById(this.output+'_changed').style.display='none';return false;} catch(e) {}} datagrid.prototype.returndata=function() {var atleastoneineditmode=false;if(this.config.autoSave) {for(ooo=0;ooo'+field) this.switchtoeditmode(row);this.handlerules(row);this.haschanges();} datagrid.prototype.handledependenciesallrows=function() {for(dgtel=0;dgtel0) {tmpfield2=this.lookupfielddata(tmpruleval);tmpvalue2=this.workingcopies[row].fields[tmpfield2.nr];} if(tmpcondition=='==field'){if(!(tmpvalue==tmpvalue2)){ruleisvalid=false;}} else if(tmpcondition=='=='){if(!(tmpvalue==tmpruleval)){ruleisvalid=false;}} else if(tmpcondition=='!='){if(!(tmpvalue!=tmpruleval)){ruleisvalid=false;}} else if(tmpcondition=='>'){if(!(tmpvalue>tmpruleval)){ruleisvalid=false;}} else if(tmpcondition=='<'){if(!(tmpvalue0) {tmprow=this.data.rows[row];this.data.rows[row]=this.data.rows[row-1];this.data.rows[row-1]=tmprow;this.redraw();this.haschanges();}} datagrid.prototype.keypresscheck=function(row,field,subfield,e) {var keynum var keychar var numcheck var idr1='';var idr2='';if(window.event) {keynum=e.keyCode} else if(e.which) {keynum=e.which} keychar=String.fromCharCode(keynum) idr1=this.output+'_'+row+'m'+field+'_input'+subfield;if(keynum==13) {document.getElementById(idr1).blur();this.saverow(row);} else {this.haschanges();}} datagrid.prototype.rowMouseOut=function(elem,rowtype) {elem.className='row_'+rowtype;} datagrid.prototype.rowMouseOver=function(elem,rowtype) {elem.className='row_'+rowtype+'_active';} datagrid.prototype.redraw=function() {_toolTip.hide();var tt1="_toolTip.show(this,{text:'   ";var tt2="   ',color:'fef0a5',fontcolor:'000000'});";var grid='';var ab='a';var fld='';var flds=new Array();var flds2=new Array();var totalcolumns=0;var tlimgsrc="/Layout/corners/images/corner_5_"+this.topcolor+"_tl.png";var trimgsrc="/Layout/corners/images/corner_5_"+this.topcolor+"_tr.png";var blimgsrc="/Layout/corners/images/corner_5_"+this.bottomcolor+"_bl.png";var brimgsrc="/Layout/corners/images/corner_5_"+this.bottomcolor+"_br.png";var tlimg='';var trimg='';var blimg='';var brimg='';var selector='';var fieldval='';var oc1='';var perc=0;var oesc='';grid+='';gridfr='';if(this.data.canSelect) {gridfr+='';totalcolumns++;} for(dgtel2=0;dgtel2'+fld.description+'';totalcolumns++;} flds[dgtel2]=fld.nr;flds2[dgtel2]=fld;} totalspacing=0 if(this.data.canEdit) {totalspacing++;totalspacing++;totalcolumns++;} if(this.data.canReorder) {totalcolumns++;totalspacing++;totalspacing++;totalcolumns++;} if(this.data.canRemove) {totalspacing++;totalcolumns++;} if(totalspacing>0) {totalspacing++;gridfr+='';} gridfr+='';grid+='';grid+='';grid+='
';gridfr+='Actie
'+tlimg+''+trimg+'
';grid+=gridfr;for(dgtel=0;dgtel';if(!this.data.rows[dgtel].editmode) {currrowdata=this.data.rows[dgtel];} else {currrowdata=this.workingcopies[dgtel];} if(this.data.canSelect) {grid+='';} for(dgtel2=0;dgtel2';if(flds2[dgtel2].type=='plaintext') {grid+='';fieldval=this.data.rows[dgtel].fields[flds[dgtel2]];} else if(flds2[dgtel2].type=='text') {if(this.data.onEnterSave) {oesc='onKeyPress="'+this.cn+'.keypresscheck('+dgtel+','+dgtel2+',\'\',event);"';} else {oesc='';} grid+='';fieldval=this.data.rows[dgtel].fields[flds[dgtel2]];} else if(flds2[dgtel2].type=='select') {grid+='';} else if(flds2[dgtel2].type=='changable') {depfieldnr=flds2[dgtel2].dependantfieldnr;depfieldvalue=currrowdata.fields[depfieldnr];fieldval='';currentisselectedfield='';fieldval=currrowdata.fields[flds[dgtel2]];if(typeof flds2[dgtel2].setdata!='undefined') {for(bbbb=0;bbbb';if(depfieldvalue==flds2[dgtel2].setdata[bbbb].attachedvalue) {fieldval=currrowdata.fields[flds[dgtel2]];}} else if(flds2[dgtel2].setdata[bbbb].type=='text') {if(this.data.onEnterSave) {oesc='onKeyPress="'+this.cn+'.keypresscheck('+dgtel+','+dgtel2+','+bbbb+',event);"';} else {oesc='';} grid+='';if(depfieldvalue==flds2[dgtel2].setdata[bbbb].attachedvalue) {fieldval=currrowdata.fields[flds[dgtel2]];}} else if(flds2[dgtel2].setdata[bbbb].type=='disabled') {grid+='';if(depfieldvalue==flds2[dgtel2].setdata[bbbb].attachedvalue) {fieldval=currrowdata.fields[flds[dgtel2]];}} else if(flds2[dgtel2].setdata[bbbb].type=='select') {grid+='';} else if(flds2[dgtel2].setdata[bbbb].type=='hidden') {grid+='';if(depfieldvalue==flds2[dgtel2].setdata[bbbb].attachedvalue) {fieldval=currrowdata.fields[flds[dgtel2]];}}}} grid+='';} if(this.data.canEdit) {oc1='onclick="'+this.cn+'.editrow('+dgtel+','+dgtel2+')" style="cursor:pointer"';} else {oc1='';} grid+='
'+fieldval+'
';grid+='';} if(totalspacing>=1) {grid+='
';} if(this.data.canEdit) {grid+='';grid+='';} if(this.data.canReorder) {grid+='';grid+='';} if(this.data.canRemove) {grid+='';} grid+='';if(ab=='a') {ab='b';} else {ab='a';}} bottomrowinsides='';if(this.data.canAdd) {bottomrowinsides='
 
';} grid+='
';if(this.data.selectType=='checkbox') {if(currrowdata.selected) {selector='checked';} else {selector='';} grid+='';} else if(this.data.selectType=='radiobutton') {if(currrowdata.selected) {selector='checked';} else {selector='';nomoreselect=true;} grid+='';} grid+='';grid+='';grid+='';grid+='
 
';grid+='';grid+='
';grid+='
 
';grid+='
';grid+='
 
';grid+='
';grid+='
 
';grid+='
';grid+='
'+bottomrowinsides+'
'+blimg+''+brimg+'
';document.getElementById(this.config.output).innerHTML=grid;for(dgtel=0;dgtel=0) {this.forms[realFormId].onSubmitMessages=new Array;var parsed=JSON2.parse(data);this.forms[realFormId].onSubmitMessages=parsed;}}} punt_forms.prototype.doOnSubmitMessages=function(formid) {realFormId=this.lookupid(formid);if(realFormId>=0) {if(typeof this.forms[realFormId].onSubmitMessages!='undefined') {for(i=0;i=0&&elementId>=0) {element=puntapi._(formid+'_'+elementname);if(element) {if(this.forms[realFormId].elements[elementId].itemtype=='checkbox') {if(element.checked) {value=element.value} else {value='';}} else {value=element.value;}} return value;}} punt_forms.prototype.rescalestart=function() {var fou=0;var foulen=0;var currmceid='';try {tinyMCE.triggerSave();} catch(e) {} for(fou=0;fou-1) {var formid=this.forms[formidnr].formid;eval(formid+'_dosubmit()');}} punt_forms.prototype.submitForm=function(formid) {eval(formid+'_dosubmit()');} punt_forms.prototype.toggleformsubmit=function(formid,status) {cmdev=formid+'_togglesubmit(status)';eval(cmdev);} punt_forms.prototype.wysiwyginsertlink=function() {ppos=arguments.length;for(o=0;o'+text+'';if(itemd=='wysiwygtinymce') {puntapi.insertHTML(html,itemid[0],itemid[1],itemid[4]);} else {insertHTML(html,itemid,currentrange);}} else {alert('Fout: er was geen tekst geselecteerd voor het maken van deze link');}} punt_forms.prototype.clearform=function(id) {this.forms[id].removed=true;this.forms[id].formid='';this.forms[id].callbacks=new Array;this.forms[id].formelements=new Array;} punt_forms.prototype.registerform=function(formid,formid_sub) {this.echoout('registering form '+formid);var id=this.lookupid(formid);currentform=new Object;currentform.formid=formid;currentform.formid_sub=formid_sub;currentform.callbacks=new Array;currentform.dependencies=new Array;currentform.illustrations=new Array;currentform.writetootherfields=new Array;currentform.groups=new Array;currentform.elements=new Array;currentform.groupelements=new Array;currentform.uploadedstatus=1;currentform.ruleset=new Object;if(id>-1) {this.clearform(id);this.forms[id]=currentform;} else {this.forms[this.forms.length]=currentform;}} punt_forms.prototype.setRuleset=function(formid,ruleset) {var id=this.lookupid(formid);this.forms[id].ruleset=ruleset;} punt_forms.prototype.applyRules=function(formid) {var id=this.lookupid(formid);var match=-1;try {if(typeof this.forms[id].ruleset!='undefined') {if(typeof this.forms[id].ruleset.rules!='undefined') {for(var rulenr=0;rulenr'+JSON.stringify(e));} this.redraw(formid);} punt_forms.prototype.checkRule=function(formid,rule) {var id=this.lookupid(formid);var score=0;var subscore=0;for(var rulecond=0;rulecond0) {score++;}} else {if(elemvalue==rule.conditions[rulecond].value) {score++;} else {}}} else if(rule.conditions[rulecond].type=='valuenot') {if(typeof rule.conditions[rulecond].values!='undefined') {subscore=0;for(rulecond2=0;rulecond2Selecteer bestanden',button_text_style:'.buttonText {color:#FFFFFF;font-size: 14pt;font-weight:bold;font-family:Trebuchet MS;}',button_text_top_padding:5,button_text_left_padding:5,button_text_right_padding:25,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,button_cursor:SWFUpload.CURSOR.HAND,flash_url:"/extjavascript/swfupload/swfupload.swf",custom_settings:{formid:formid,formidsub:formidsub,formelementid:item,upload_target:'divFileProgressContainer'},debug:false});} catch(e) {alert('exception!'+e)}} punt_forms.prototype.regenerateFilelist=function(url,formname,formid,item,handle) {nr++;TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';var responsecommand=this.cn+'.regenerateFilelistRecieve(\''+formid+'\',\''+item+'\',\''+handle+'\',\''+url+'\',\''+formname+'\',getresponsexml('+nr+'),getresponse('+nr+'))';var urlparts=url.split('?');TA[nr].Sourcefile=urlparts[0]+'?formdo=getfilelist&_formid='+formname+'&formelement='+item+'&fileuploaderid='+handle+'&'+urlparts[1];TA[nr].onReadyresponsecommand=responsecommand;TA[nr].doPost();} punt_forms.prototype.regenerateFilelistRecieve=function(formid,item,handle,url,formname,message,message2) {try {var root=message.getElementsByTagName('files').item(0);totaalfiles=0;filelist=new Array;if(root) {files=root.getElementsByTagName('file');for(o=0;o0) {html+='';alternator='a';for(u=0;u';html+='';html+='';if(alternator=='a') {alternator='b';} else {alternator='a';}} html+='
'+filelist[u].filename+'
';this.toggleformsubmit(formid,1);this.writecheck(formid,item,'doneupload');} else {this.toggleformsubmit(formid,0);} puntapi._(formid+'_'+item+'_filelist').innerHTML=html;} else {this.toggleformsubmit(formid,0);}} catch(e) {}} punt_forms.prototype.doformsubmit=function(formid) {eval(formid+'_dosubmit()');} punt_forms.prototype.deletefilefromfilelist=function(url,formname,formid,item,handle,fid) {var answer=confirm("Weet je zeker dat je het bestand niet wilt uploaden?");if(answer){nr++;TA[nr]=new TAjax();TA[nr].cn='TA['+nr+']';var urlparts=url.split('?');var responsecommand=this.cn+'.regenerateFilelistRecieve(\''+formid+'\',\''+item+'\',\''+handle+'\',\''+url+'\',\''+formname+'\',getresponsexml('+nr+'),getresponse('+nr+'))';TA[nr].Sourcefile=urlparts[0]+'?formdo=deletefile&_formid='+formname+'&formelement='+item+'&fileuploaderid='+handle+'&fid='+fid+'&'+urlparts[1];puntapi._(formid+'_'+item+'_filelist').innerHTML='Bezig met ophalen bestandslijst';TA[nr].onReadyresponsecommand=responsecommand;TA[nr].doPost();} else {}} punt_forms.prototype.deletefilelistdone=function(formid,item,handle,url,formname) {this.regenerateFilelist(url,formnameformid,item,handle);} punt_forms.prototype.addWriteToOtherField=function(formid,item,target) {id=this.lookupid(formid);len=this.forms[id].writetootherfields.length;this.forms[id].writetootherfields[len]=new Object;this.forms[id].writetootherfields[len].formid=formid;this.forms[id].writetootherfields[len].item=item;this.forms[id].writetootherfields[len].target=target;} punt_forms.prototype.addIllustrationToValue=function(formid,item,value,valimgid) {id=this.lookupid(formid);len=this.forms[id].illustrations.length;this.forms[id].illustrations[len]=new Object;this.forms[id].illustrations[len].formid=formid;this.forms[id].illustrations[len].item=item;this.forms[id].illustrations[len].itemval=value;this.forms[id].illustrations[len].valimgid=valimgid;} punt_forms.prototype.adddependency=function(formid,item,target,type,value,targetval) {try {var id=this.lookupid(formid);var tid=-1;var possiblematch=-1;var possiblematch2=-1;for(var did=0;did-1) {tid=possiblematch;} else {tid=this.forms[id].dependencies.length;this.forms[id].dependencies[tid]=new Object;this.forms[id].dependencies[tid].item=item;this.forms[id].dependencies[tid].value=value;this.forms[id].dependencies[tid].type=type;this.forms[id].dependencies[tid].targets=new Array;} for(var targetid=0;targetid-1) {targetid=possiblematch2;this.debugalert('There is double form dependency on the field: '+item+' Please resolve it before committing');return false;} else {targetid=this.forms[id].dependencies[tid].targets.length;this.forms[id].dependencies[tid].targets[targetid]=new Object;this.forms[id].dependencies[tid].targets[targetid].name=target;this.forms[id].dependencies[tid].targets[targetid].targetvalue=targetval;}} catch(e) {}} punt_forms.prototype.adddependency_old=function(formid,item,target,type,value,targetval) {id=this.lookupid(formid);newdepid=this.forms[id].dependencies.length;this.forms[id].dependencies[newdepid]=new Object;this.forms[id].dependencies[newdepid].item=item;this.forms[id].dependencies[newdepid].target=target;this.forms[id].dependencies[newdepid].type=type;this.forms[id].dependencies[newdepid].val=value;this.forms[id].dependencies[newdepid].targetval=targetval;} punt_forms.prototype.illustrationslookup=function(formid,item) {var illustrations=new Array;var id=this.lookupid(formid);for(u=0;u0) {for(var dnr=0;dnr-1) {for(var tgnr=0;tgnr'+this.forms[fid].elements[felementid].itemtype+'->'+target+'->'+JSON.stringify(e));}} for(var gnr=0;gnr-1) {if((this.forms[fid].elements[felementid].shown)&&(!hasshown)) {hasshown=true;}}} grouptarget='grouprow_'+formid+'_'+this.forms[fid].groups[gnr].groupname;if(!hasshown) {puntapi._(grouptarget).style.display='none';} else {if(this.isIE) {puntapi._(grouptarget).style.display='block';} else {puntapi._(grouptarget).style.display='table-row';}}}} punt_forms.prototype.hiderow=function(formid,target) {var id=this.lookupid(formid);felementid=this.lookupelementid(formid,target);if(felementid>-1) {this.forms[id].elements[felementid].shown=false;}} punt_forms.prototype.showrow=function(formid,target) {var id=this.lookupid(formid);var felementid=this.lookupelementid(formid,target);if(felementid>-1) {this.forms[id].elements[felementid].shown=true;}} punt_forms.prototype.addcallback=function(formid,item,type,application,command,id,customquery,recievingfield,recievingfieldvalue) {id=this.lookupid(formid);if(id>-1) {lnth=this.forms[id].callbacks.length;this.forms[id].callbacks[lnth]=new Object;this.forms[id].callbacks[lnth].item=item;this.forms[id].callbacks[lnth].tid=lnth;this.forms[id].callbacks[lnth].callbacknr=lnth;this.forms[id].callbacks[lnth].type=type;this.forms[id].callbacks[lnth].application=application;this.forms[id].callbacks[lnth].command=command;this.forms[id].callbacks[lnth].commandid=id;this.forms[id].callbacks[lnth].totalrequests=0;this.forms[id].callbacks[lnth].customquery=customquery;this.forms[id].callbacks[lnth].recievingfield=recievingfield;if(typeof recievingfieldvalue!='undefined') {this.forms[id].callbacks[lnth].recievingfieldvalue=recievingfieldvalue;}}} punt_forms.prototype.callbacklookup=function(id,item) {callbacks=new Array;for(u=0;u400) {dims.w=400;puntapi._(targetid+'_image_container').style.overflow="auto";} if(dims.h>200) {dims.h=200;puntapi._(targetid+'_image_container').style.overflow="auto";} puntapi._(targetid+'_image_container').style.height=dims.h+'px';puntapi._(targetid+'_image_container').style.width=dims.w+'px';} punt_forms.prototype.checkForWidgets=function(formid,item,value,checked) {var data=new Object;data.formid=formid;data.item=item;data.value=value;data.checked=checked;var fid=this.lookupid(formid);var sourceelementid=this.lookupelementid(formid,item);var widgets=this.forms[fid].elements[sourceelementid].widgets;data.initialValue=this.forms[fid].elements[sourceelementid].initialValue;if((typeof widgets=='array')||(typeof widgets=='object')) {_tW.notifyWidgets(widgets,data);}} punt_forms.prototype.writecheck=function(formid,item,value) {try {var writetootherfields=this.writetootherfieldlookup(formid,item);fid=this.lookupid(formid);sourceelementid=this.lookupelementid(formid,item);for(u=0;u47)&&(keynum<58))||(keynum==8)||(keynum==0)) {if(extrainfo=='a') {return true;} else {if(puntapi._(fieldid+'_b').value.length>1) {if((keynum==8)||(keynum==0)) {return true;} else {return false;}} else {return true;}}} else {return false;}} return true;} punt_forms.prototype.ajaxcallback=function(formid,item,value) {} punt_forms.prototype.bankcheck_kp=function(formid,item) {var fid=this.lookupid(formid);var felementid=this.lookupid(formid,item);var js=this.cn+'.bankcheck("'+formid+'","'+item+'")';clearTimeout(this.forms[fid].elements[felementid].timeout);this.forms[fid].elements[felementid].timeout=setTimeout(js,500);} punt_forms.prototype.bankcheck=function(formid,item) {try {msg=this.elfproef(puntapi._(formid+'_'+item).value);var target=formid+'_'+item+'_banktype';if((msg=='Dit rekeningnummer wordt gezien als een (Postbank)ING nummer.')||(msg=='Dit is een geldig rekeningnummer')) {puntapi._(target).innerHTML=msg;puntapi._(target).style.color='green';} else {puntapi._(target).innerHTML=msg;puntapi._(target).style.color='red';}} catch(error) {}} punt_forms.prototype.elfproef=function(nr) {var getal="" for(i=0;i"9")&&(t!='.')) {break;} else {getal+=t;}} if(nr=='') {return'Je hebt geen rekeningnummer ingevuld';} if((getal.length==0)||(getal!=nr)){return'Het ingevulde rekeningnummer bevat ongeldige tekens';} getal='';for(i=0;i"9") {break;} else {getal+=t;}}} if(getal==0) {return'Dit rekeningnummer is ongeldig'} else {if(getal.length<3) {return'Het rekeningnummer is te kort om valide te zijn';} if(getal.length==8) {return'Het rekeningnummer is zowel te lang als te kort om valide te zijn';} if(getal.length<=7) {return'Dit rekeningnummer wordt gezien als een (Postbank)ING nummer.';} if(getal.length>10){return'Het rekeningnummer bevat te veel cijfers'} var s=0;for(i=0;i6){score=10;} if(len>8){score=12;} if(len>10){score=14;} if(len>16){score=20;} if(vallie.match(/[a-z]/)) {score=(score+1)} if(vallie.match(/[A-Z]/)) {score=(score+6);missescapital=false;} if(vallie.match(/([0-9])/)) {score=(score+6);missesnumber=false;} if(vallie.match(/(.*[0-9].*[0-9].*[0-9])/)) {score=(score+6);} if(vallie.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)) {score=(score+6);} if(vallie.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)) {score=(score+6)} if(vallie.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) {score=(score+6)} if(vallie.match(/([a-zA-Z])/)&&vallie.match(/([0-9])/)) {score=(score+6)} if(vallie.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)) {score=(score+6)}} var color='#ed2024';if(score<16) {retclass="veryweak";stars=1;text='Erg zwak';color='#f1cecf';} else if(score>15&&score<25) {retclass="weak";stars=2;text='Zwak';color='#f9e8d0';} else if(score>24&&score<35) {retclass="mediocre";stars=3;text='Gemiddeld';color='#e8f2d0';} else if(score>34&&score<45) {retclass="strong";stars=4;text='Sterk';color='#97ba3d';} else if(score>45&&score<55) {retclass="verystrong";stars=5;text='Erg sterk';color='#aaec00';} else {retclass="overkill";stars=6;text='Extreem';color='#0499cc';} text='';if(len<8) {text+=' is te kort';} if(missescapital) {if(text!='') {if(!missesnumber) {text+=' en ';} else {text+=', '}} text+='mist een hoofdletter';} if(missesnumber) {if(text!='') {text+=' en ';} text+='mist een cijfer';} if(text=='') {text+='Je wachtwoord voldoet aan onze eisen.';} else {text='Uw wachtwoord: '+text;} puntapi._(target2).className="strength strength"+retclass;var html='';html+='';html+='
'+text+'
';puntapi._(target2).innerHTML=html;} function fileQueueError(file,errorCode,message){try{var imageName="error.gif";var errorName="";var progress=new FileProgress(file,this.customSettings.upload_target,this);if(errorCode===SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED){progress.setStatus('global_fileupload_error_filesize_zero_byte');} var progress=new FileProgress(file,this.customSettings.upload_target,this);switch(errorCode){case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:progress.setStatus('global_fileupload_error_filesize_zero_byte');break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:progress.setStatus('global_fileupload_error_file_too_big');break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:progress.setStatus('global_fileupload_error_unsupported_filetype');break;default:break;} progress.toggleCancel(false,this);}catch(ex){this.debug(ex);}} function fileDialogComplete(numFilesSelected,numFilesQueued){try{if(numFilesQueued>0){this.startUpload();}}catch(ex){this.debug(ex);}} function fileQueue(file){var bytesLoaded=0;try{var percent=Math.ceil((bytesLoaded/file.size)*100);var progress=new FileProgress(file,this.customSettings.upload_target,this);progress.setProgress(percent);if(percent===100){progress.setStatus("Bezig met controleren");progress.toggleCancel(false,this);}else{progress.setStatus("Wacht op upload.");progress.toggleCancel(true,this);}}catch(ex){this.debug(ex);}} function uploadProgress(file,bytesLoaded){try{var percent=Math.ceil((bytesLoaded/file.size)*100);var progress=new FileProgress(file,this.customSettings.upload_target,this);progress.setProgress(percent);if(percent===100){progress.setStatus("Bezig met controleren");progress.toggleCancel(false,this);}else{progress.setStatus("Bezig met uploaden");progress.toggleCancel(true,this);}}catch(ex){this.debug(ex);}} function uploadSuccess(file,serverData){try{var progress=new FileProgress(file,this.customSettings.upload_target,this);if(serverData.substring(0,7)==="FILEID:"){progress.setStatus("Voltooid");progress.toggleCancel(false);progress.hide();eval('fr_'+this.customSettings.formidsub+'_'+this.customSettings.formelementid+'_doRecheck();');}else{progress.setStatus("Verwerking mislukt");progress.toggleCancel(false);alert(serverData);}}catch(ex){alert(ex);this.debug(ex);}} function uploadComplete(file){try{if(this.getStats().files_queued>0){this.startUpload();}else{var progress=new FileProgress(file,this.customSettings.upload_target,this);progress.setComplete();progress.setStatus("Alle bestanden ontvangen.");progress.toggleCancel(false);progress.hide();eval('fr_'+this.customSettings.formidsub+'_'+this.customSettings.formelementid+'_doRecheck();');}}catch(ex){this.debug(ex);}} function uploadError(file,errorCode,message){var imageName="error.gif";var progress;try{switch(errorCode){case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:try{progress=new FileProgress(file,this.customSettings.upload_target,this);progress.setCancelled();progress.setStatus("global_fileupload_canceled");progress.toggleCancel(false);progress.hide();} catch(ex1){this.debug(ex1);} break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:try{progress=new FileProgress(file,this.customSettings.upload_target,this);progress.setCancelled();progress.setStatus("global_fileupload_stopped");progress.toggleCancel(true,this);} catch(ex2){this.debug(ex2);} case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:progress.setStatus("global_fileupload_limit_reached");break;default:break;} addImage("images/"+imageName);}catch(ex3){this.debug(ex3);}} function fadeIn(element,opacity,oncomplete){var reduceOpacityBy=5;var rate=30;if(typeof oncomplete=='undefined') {oncomplete='';} if(opacity<100){opacity+=reduceOpacityBy;if(opacity>100){opacity=100;} if(element.filters){try{element.filters.item("DXImageTransform.Microsoft.Alpha").opacity=opacity;}catch(e){element.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+opacity+')';}}else{element.style.opacity=opacity/100;}} if(opacity<100){eval("setTimeout(function () {fadeIn(element, opacity,'"+oncomplete+"');},rate)");} else{if(oncomplete!=''){eval(oncomplete);}}} function fadeOut(element,opacity,oncomplete){var reduceOpacityBy=5;var rate=30;if(typeof oncomplete=='undefined') {oncomplete='';} if(opacity>0){opacity-=reduceOpacityBy;if(opacity<0){opacity=0;} if(element.filters){try{element.filters.item("DXImageTransform.Microsoft.Alpha").opacity=opacity;}catch(e){element.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+opacity+')';}}else{element.style.opacity=opacity/100;}} if(opacity>0){eval("setTimeout(function () {fadeOut(element, opacity,'"+oncomplete+"');},rate)");} else{if(oncomplete!='') {eval(oncomplete);} element.style.display='none';}} function FileProgress(file,targetID,swfinstance) {try{this.targetID=targetID;this.container=this._(this.targetID);this.wrapper=this._(this.targetID+'_wrapper');this.file=file;if(!this.wrapper){this._c(this.container,'div',this.targetID+'_wrapper');this.wrapper=this._(this.targetID+'_wrapper');} else {} if(!file) {} else {this.fileid=this.targetID+'_'+file.id;this.fileuplid=file.id;this.filecontainer=this._(this.fileid);this.cancelelement=this._(this.fileid+'_cancel');if(!this.filecontainer){this._c(this.wrapper,'div',this.fileid);this.filecontainer=this._(this.fileid);this.filecontainer.innerHTML='
'+file.name+'
';this.cancelelement=this._(this.fileid+'_cancel');this.toggleCancel(false,swfinstance)} else {}}} catch(e) {}} FileProgress.prototype._=function(elemid) {return document.getElementById(elemid);} FileProgress.prototype._c=function(parent,type,elemid) {var tmpelem=document.createElement(type);tmpelem.setAttribute('id',elemid);parent.appendChild(tmpelem);} FileProgress.prototype.hide=function() {try{fadeOut(this.filecontainer,100);} catch(e) {}} FileProgress.prototype.calculateColor=function(percentage) {var color='ff0000';if(percentage==0) {color='ff0000';} else if(percentage==100) {color='00ff00';} else {color='';var red=255-Math.floor((255/100)*percentage);var redstring=red.toString(16);var green=Math.floor((255/100)*percentage);var greenstring=green.toString(16);if(redstring.length==1) {redstring='0'+redstring;} if(greenstring.length==1) {greenstring='0'+greenstring;} color+=redstring+greenstring+'00';} return color;} FileProgress.prototype.setProgress=function(percentage) {var color=this.calculateColor(percentage);document.getElementById(this.fileid+'_progressbar').style.backgroundColor='#'+color document.getElementById(this.fileid+'_progressbar').style.width=percentage+'%';} FileProgress.prototype.setComplete=function() {} FileProgress.prototype.setError=function() {} FileProgress.prototype.setCancelled=function() {} FileProgress.prototype.setStatus=function(status) {document.getElementById(this.fileid+'_status').innerHTML=' - '+status;} FileProgress.prototype.toggleCancel=function(show,swfuploadInstance){this.cancelelement.style.visibility=show?"visible":"hidden";if(swfuploadInstance){eval("this.cancelelement.onclick = function () {swfuploadInstance.cancelUpload('"+this.fileuplid+"'); return false;};");}};var puntforms=new punt_forms('puntforms'); function basicFileUploadHandler(config) {this.config=config;this.files=new Array;} basicFileUploadHandler.prototype.onFileSuccess=function(upid,file,response) {} basicFileUploadHandler.prototype.onFilesQueued=function(upid) {} basicFileUploadHandler.prototype.onUploadComplete=function(upid) {this.uploading=false;uploadcontainer.endUploadQueue(upid);} basicFileUploadHandler.prototype.onFileAdded=function(upid,file) {var idx=file.index;this.files[idx]=file;this.files[idx].processed=false;} basicFileUploadHandler.prototype.onQueueFileError=function(upid,file,error,errormessage) {var idx=file.index;this.files[idx]=file;this.files[idx].processed=true;} basicFileUploadHandler.prototype.onFileUploadError=function(upid,file,error,errormessage) {this.files[idx].processed=true;} function mediaalbumFileUploadHandler(config) {this.fileproc=0;this.config=config;this.files=new Array;this.preserveQueuedItem=true;this.handlesOwnUploadStatus=true;this.preserveFailedQueuedItem=true;} mediaalbumFileUploadHandler.prototype=new basicFileUploadHandler();mediaalbumFileUploadHandler.prototype.constructor=mediaalbumFileUploadHandler;mediaalbumFileUploadHandler.prototype.parent=basicFileUploadHandler.prototype;mediaalbumFileUploadHandler.prototype.onFilesQueued=function(upid) {try {FUM.hideAddButton(upid);puntapi._('uploadDialogContainer'+upid).innerHTML='';} catch(e) {} puntapi.DoCommand('mediaalbum','uploadingto',this.selectorValue);} mediaalbumFileUploadHandler.prototype.onFileSuccess=function(upid,file,response) {uploadcontainer.updateFileQueueWithHandlerOut(upid,file,'Bezig met verwerken.');var parts=response.split("//");if(parts[1]) {var url=this.targeturl+'&DOWITH=save&FUPID='+this.upid+'&addToAlbum='+this.selectorValue+'&filenr='+parts[1];var mthd=null;var nwmthd="mthd = function(response){FUM.forwardEvent('CUSTOM',{\"doAfter\":'showImage',\"handleId\":'"+this.upid+"',\"filename\":'"+file.name+"',\"file\":"+file.index+"},response);}";eval(nwmthd);_tajax.makeCall(url,{method:'post',onFinish:mthd});} else {var idx=file.index;this.files[idx].processed=true;this.files[idx].errorFile=true;if(this.checkIfDone(upid,false)) {this.onUploadComplete(upid);}}} mediaalbumFileUploadHandler.prototype.onCustom=function(upid,data,response) {if(data.doAfter=='showImage') {var parts=response.text.split("//");var idx=data.file;this.files[idx].processed=true;var tmpfile=new Object;tmpfile.index=data.file;if(parts[0]=='OK') {uploadcontainer.doneFileQueue(upid,tmpfile);try {var responsefile=parts[1];var tnfile='/media/t_'+responsefile+'.jpg';var parts2=data.filename.split('.');var lastpart=parts2[parts2.length-1];if(lastpart=='mp3') {var tnfile='/Layout/Mediaalbum/tn_audio.gif';} uploadcontainer.updateWithHandlerOutAppend(upid,tmpfile,'span','');this.fileproc++;} catch(e) {} if(this.checkIfDone(upid,false)) {this.onUploadComplete(upid);}} else {uploadcontainer.doneFileQueue(upid,tmpfile);if(this.checkIfDone(upid,false)) {this.onUploadComplete(upid);}}}} mediaalbumFileUploadHandler.prototype.onUploadComplete=function(upid) {if(this.checkIfDone(upid,true)) {try {var url=this.targeturl+'&DOWITH=cleanup&FUPID='+this.upid;_tajax.makeCall(url,{method:'post',onFinish:function() {}});if(!mediaitems.canLoadIfSame(this.selectorValue)) {if(confirm("Je upload is voltooid. Wil je nu naar dit album gaan : "+FUM.uploadHandlers[upid].selectorDescription+' ?')) {puntapi.DoCommand("mediaalbum","viewalbumfirstitem",this.selectorValue);}} else {puntapi.DoCommand("mediaalbum","viewalbumfirstitem",this.selectorValue);} this.uploading=false;uploadcontainer.endUploadQueue(upid);} catch(e) {}}} mediaalbumFileUploadHandler.prototype.checkIfDone=function(upid,noprocload) {var idx=null;var done=true;var processed=0;for(idx in this.files) {if(!this.files[idx].processed) {done=false;} else {processed++}} return done;} function fileUploadMaintainer() {this.uploadHandlers=new Array;this.dim=new dimensions();} fileUploadMaintainer.prototype.initialise=function(upid,configstring,sessionid,eventhandler,events,targeturl) {if(eventhandler=='') {eventhandler='basicFileUploadHandler';} var config=JSON.parse(configstring);if(typeof config.filesize=='undefined') {config.filesize='100 MB';} var mthd='this.uploadHandlers[upid]= new '+eventhandler+'(config);';eval(mthd);this.uploadHandlers[upid].ready=false;this.uploadHandlers[upid].upid=upid;this.uploadHandlers[upid].filecount=0;this.uploadHandlers[upid].uploadingDone=false;this.uploadHandlers[upid].waiting=true;this.uploadHandlers[upid].uploading=true;this.uploadHandlers[upid].cleanup=false;this.uploadHandlers[upid].events=JSON2.parse(events);this.uploadHandlers[upid].targeturl=targeturl;this.uploadHandlers[upid].sessionid=sessionid;this.uploadHandlers[upid].selectorDescription='';this.createSWFFor(upid);this.uploadHandlers[upid].ready=true;this.updateAnchorPosition(upid);} fileUploadMaintainer.prototype.uploadIsHappening=function() {var upid='';for(upid in this.uploadHandlers) {try {if(this.uploadHandlers[upid]==null) {continue;} if(this.uploadHandlers[upid].cleanup) {continue;} if((this.uploadHandlers[upid].uploading)&&(!this.uploadHandlers[upid].waiting)&&(!this.uploadHandlers[upid].uploadingDone)) {return true;}} catch(e) {}} return false;} fileUploadMaintainer.prototype.nextQueue=function() {var upid='';for(upid in this.uploadHandlers) {try {if(this.uploadHandlers[upid]==null) {continue;} if(this.uploadHandlers[upid].cleanup) {continue;} if((this.uploadHandlers[upid].uploading)&&(!this.uploadHandlers[upid].waiting)&&(!this.uploadHandlers[upid].uploadingDone)) {break;} if((this.uploadHandlers[upid].uploading)&&(this.uploadHandlers[upid].waiting)) {var stats=this.uploadHandlers[upid].swfu.getStats();if(stats.files_queued>0) {this.uploadHandlers[upid].uploading=true;this.uploadHandlers[upid].waiting=false;this.uploadHandlers[upid].swfu.startUpload();break;}}} catch(e) {}}} fileUploadMaintainer.prototype.cancel=function(upid) {try {this.uploadHandlers[upid].uploading=false;this.uploadHandlers[upid].cleanup=true;this.uploadHandlers[upid].canceled=true;this.uploadHandlers[upid].swfu.stopUpload();this.uploadHandlers[upid].swfu.cancelQueue();uploadcontainer.removeContainer(upid);this.nextQueue();} catch(e) {}} fileUploadMaintainer.prototype.forwardEvent=function(type,configinfo,var1,var2,var3,var4) {try {var upid=configinfo.handleId;if(this.uploadHandlers[upid]) {var stats=this.uploadHandlers[upid].swfu.getStats();if(type=='fileDialogComplete') {if(stats.files_queued>0) {if(this.uploadHandlers[upid].cleanup) {return false;} var selelem=puntapi._('uploadDialogButtonAnchor'+upid+'_selector');if(selelem) {this.uploadHandlers[upid].selectorValue=selelem.value;this.uploadHandlers[upid].selectorDescription=selelem.options[selelem.selectedIndex].text;uploadcontainer.setUploadTo(upid,this.uploadHandlers[upid].selectorDescription);} this.uploadHandlers[upid].onFilesQueued(upid);if(!this.uploadIsHappening()) {this.uploadHandlers[upid].swfu.startUpload();this.uploadHandlers[upid].uploading=true;this.uploadHandlers[upid].waiting=false;} else {this.uploadHandlers[upid].waiting=true;}} else {this.uploadHandlers[upid].uploading=false;} _tW.triggerCanShow();} else if(type=='uploadProgress') {uploadcontainer.updateFileToQueue(upid,var1,var2);} else if(type=='queueFile') {uploadcontainer.addFileToQueue(upid,var1);this.uploadHandlers[upid].onFileAdded(upid,var1);} else if(type=='queueError') {if(var2==SWFUpload.QUEUE_ERROR.INVALID_FILETYPE) {var2=='invalid_file';} else if(var2==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT) {var2=='exceeds_filesize';} else if(var2==SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE) {var2=='zero_byte';} else if(var2==SWFUpload.errorCode_QUEUE_LIMIT_EXCEEDED) {var2=='queue_limit_exceeded';} else {} this.uploadHandlers[upid].onQueueFileError(upid,var1,var2,var3,var4);uploadcontainer.doneFileQueue(upid,var1);if(!this.uploadHandlers[upid].preserveQueuedItem) {uploadcontainer.doneFileQueue(upid,var1);}} else if(type=='uploadError') {if(var2==SWFUpload.UPLOAD_ERROR.FILE_CANCELLED) {var2='upload_cancelled';if(this.uploadHandlers[upid].canceled) {return false;}} else if(var2==SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED) {var2='upload_stopped';} else if(var2==SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED) {var2='exceeded_upload_limit';} else {} this.uploadHandlers[upid].onFileUploadError(upid,var1,var2,var3,var4);if(!this.uploadHandlers[upid].preserveQueuedItem) {uploadcontainer.doneFileQueue(upid,var1);}} else if(type=='uploadSuccess') {if(var2.substring(0,7)==="FILEID:") {this.uploadHandlers[upid].onFileSuccess(upid,var1,var2);if(!this.uploadHandlers[upid].preserveQueuedItem) {uploadcontainer.doneFileQueue(upid,var1);}} else {this.uploadHandlers[upid].onFileFailure();if(!this.uploadHandlers[upid].preserveFailedQueuedItem) {uploadcontainer.doneFileQueueFailure(upid,var1);}}} else if(type=='uploadCompleted') {if(stats.files_queued>0) {this.uploadHandlers[upid].swfu.startUpload();this.uploadHandlers[upid].uploading=true;} else {this.uploadHandlers[upid].onUploadComplete();this.uploadHandlers[upid].uploadingDone=true;if(!this.uploadHandlers[upid].handlesOwnUploadStatus) {this.uploadHandlers[upid].uploading=false;} this.nextQueue();} _tW.triggerCanShow();} else if(type=='CUSTOM') {this.uploadHandlers[upid].onCustom(upid,configinfo,var1);} else {}}} catch(e) {}} fileUploadMaintainer.prototype.isUploading=function() {var uploading=false;for(upid in this.uploadHandlers) {try {if((this.uploadHandlers[upid].uploading)&&(!this.uploadHandlers[upid].waiting)&&(!this.uploadHandlers[upid].uploadingDone)) {uploading=true;}} catch(e) {}} return uploading;} fileUploadMaintainer.prototype.cleanUp=function(upid) {var swfelem=puntapi._(this.uploadHandlers[upid].buttonIdActualContainer);var body=document.getElementsByTagName('body').item(0);try {if(swfelem) {body.removeChild(swfelem);}} catch(e) {} try {uploadcontainer.endUploadQueue(upid);} catch(e) {} try {this.uploadHandlers[upid]=null;} catch(e) {}} fileUploadMaintainer.prototype.rescale=function() {for(upid in this.uploadHandlers) {if(this.uploadHandlers[upid]) {this.updateAnchorPosition(upid,'auto');}} _tW.triggerCanShow();} fileUploadMaintainer.prototype.gc=function() {var upid='';for(upid in this.uploadHandlers) {try {if(this.uploadHandlers[upid]==null) {delete this.uploadHandlers[upid];continue;} if(this.uploadHandlers[upid].cleanup) {this.cleanUp(upid);}} catch(e) {}}} fileUploadMaintainer.prototype.hideAddButton=function(upid) {try {var target=puntapi._(this.uploadHandlers[upid].buttonIdActualContainer);target.style.position='absolute';target.style.width='200px';target.style.left='-200px';target.style.top='-200px';target.style.zIndex='0';} catch(e) {}} fileUploadMaintainer.prototype.updateAnchorPosition=function(upid) {if(!this.uploadHandlers[upid].ready) {return false;} var elem=null;var dimension=false;elem=puntapi._(this.uploadHandlers[upid].centeredContainer);if(!elem) {if(this.uploadHandlers[upid].uploading) {elem=puntapi._(this.uploadHandlers[upid].buttonContainerId);if(!elem) {this.uploadHandlers[upid].cleanup=true;return false;} else {dimension=new Object;dimension.x=-200;dimension.y=-200;}} else {this.uploadHandlers[upid].cleanup=true;return false;}} var target=puntapi._(this.uploadHandlers[upid].buttonIdActualContainer);if(elem) {if(!dimension) {dimension=this.dim.dimensions(elem);} if(target) {target.style.zIndex=255;target.style.position='absolute';target.style.width='200px';target.style.left=dimension.x+'px';target.style.top=dimension.y+'px';} else {this.uploadHandlers[upid].cleanup=true;}} else if(target) {target.style.zIndex='';target.style.position='';target.style.position.top='';target.style.position.left='';} else {this.uploadHandlers[upid].cleanup=true;}} fileUploadMaintainer.prototype.createAnchoredButtonContainer=function(upid) {var response=uploadcontainer.addContainer(upid);var body=document.getElementsByTagName('body').item(0);var tmpNewElem=document.createElement('div');tmpNewElem.setAttribute('id',response+'_buttonActualContainer');tmpNewElem.innerHTML='
tmp
';body.appendChild(tmpNewElem);this.uploadHandlers[upid].centeredContainer='uploadDialogButtonAnchor'+upid;this.uploadHandlers[upid].containerElemId=response;this.uploadHandlers[upid].buttonId=response+'_buttonActual';this.uploadHandlers[upid].buttonIdActualContainer=response+'_buttonActualContainer';this.uploadHandlers[upid].buttonContainerId=response+'_button_container';this.uploadHandlers[upid].buttonIdAlt=response+'_button';this.uploadHandlers[upid].outputContainerId=response+'_output';return this.uploadHandlers[upid].buttonId;} fileUploadMaintainer.prototype.createSWFFor=function(upid) {var buttonid=this.createAnchoredButtonContainer(upid);var config={upload_url:this.uploadHandlers[upid].targeturl,post_params:{"SLSid":this.uploadHandlers[upid].sessionid},file_size_limit:this.uploadHandlers[upid].config.filesize,file_types:this.uploadHandlers[upid].config.filetypes,file_types_description:this.uploadHandlers[upid].config.filetypedescriptions,file_upload_limit:"0",file_queue_error_handler:FUM_fileQueueError,file_queued_handler:FUM_fileQueue,file_dialog_complete_handler:FUM_fileDialogComplete,upload_progress_handler:FUM_uploadProgress,upload_error_handler:FUM_uploadError,upload_success_handler:FUM_uploadSuccess,upload_complete_handler:FUM_uploadComplete,button_image_url:"/Layout/Mijndomein/images/uploadbutton.png",button_placeholder_id:buttonid,button_width:181,button_height:29,prevent_swf_caching:true,button_text:'Selecteer bestanden',button_text_style:'.buttonText {color:#FFFFFF;font-size: 14pt;font-weight:bold;font-family:Trebuchet MS;}',button_text_top_padding:5,button_text_left_padding:5,button_text_right_padding:25,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,button_cursor:SWFUpload.CURSOR.HAND,flash_url:"/extjavascript/swfupload/swfupload.swf",custom_settings:{handleId:upid},debug:false};this.uploadHandlers[upid].swfu=new SWFUpload(config);} function FUM_fileQueueError(file,errorCode,message) {FUM.forwardEvent('queueError',this.customSettings,file,errorCode,message);} function FUM_fileQueue(file) {FUM.forwardEvent('queueFile',this.customSettings,file);} function FUM_fileDialogComplete(numFilesSelected,numFilesQueued) {FUM.forwardEvent('fileDialogComplete',this.customSettings,numFilesSelected,numFilesQueued);} function FUM_uploadProgress(file,bytesLoaded) {FUM.forwardEvent('uploadProgress',this.customSettings,file,bytesLoaded);} function FUM_uploadError(file,errorCode,message) {FUM.forwardEvent('uploadError',this.customSettings,file,errorCode,message);} function FUM_uploadSuccess(file,serverData) {if(serverData.substring(0,7)==="FILEID:") {FUM.forwardEvent('uploadSuccess',this.customSettings,file,serverData);} else {FUM.forwardEvent('uploadError',this.customSettings,file,'uploadsuccessfailed',serverData);}} function FUM_uploadComplete(file) {FUM.forwardEvent('uploadCompleted',this.customSettings,file);} var FUM=new fileUploadMaintainer(); function getWeekNr(Y,M,D) {var today=new Date(Y,M,D);Year=takeYear(today);Month=today.getMonth();Day=today.getDate();now=Date.UTC(Year,Month,Day+1,0,0,0);var Firstday=new Date();Firstday.setYear(Year);Firstday.setMonth(0);Firstday.setDate(1);then=Date.UTC(Year,0,1,0,0,0);var Compensation=Firstday.getDay();if(Compensation>3)Compensation-=4;else Compensation+=3;NumberOfWeek=Math.round((((now-then)/86400000)+Compensation)/7);return NumberOfWeek;} function takeYear(theDate) {x=theDate.getYear();var y=x%100;y+=(y<38)?2000:1900;return y;} function getDaysInMonth(month,year) {var days=0;if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)days=31;else if(month==4||month==6||month==9||month==11)days=30;else if(month==2){if(isLeapYear(year)){days=29;} else{days=28;}} return days;} function isLeapYear(Year){if(((Year%4)==0)&&((Year%100)!=0)||((Year%400)==0)){return true;}else{return false;}} function Dayofw(Y,M,D) {var c=new Date(Y,M,D);return c.getDay();} function Agenda(cn,Target,Div) {try{this.cn=cn;var Datevalue='';Datevalue=document.getElementById(Target).value;this.target=Target;this.agendadiv=Div var datevalsplit=Datevalue.split(' ');var dateval=datevalsplit[0];var timeval=datevalsplit[1];var dateval2=dateval.split('-');this.year=dateval2[0];if(dateval2[1].charAt(0)=='0') {this.month=parseInt(dateval2[1].charAt(1));} else {this.month=parseInt(dateval2[1]);} if(dateval2[2].charAt(0)=='0'){this.day=parseInt(dateval2[2].charAt(1));} else {this.day=parseInt(dateval2[2]);} var timeval2=timeval.split(':');if(timeval2[0].charAt(0)=='0') {this.hour=parseInt(timeval2[0].charAt(1));} else {this.hour=parseInt(timeval2[0]);} if(timeval2[1].charAt(0)=='0') {this.minute=parseInt(timeval2[1].charAt(1));} else {this.minute=parseInt(timeval2[1]);}} catch(e) {alert(e);}} Agenda.prototype.show=function() {this.Createagenda(this.agendadiv,this.year,this.month,this.day,this.hour,this.minute);} Agenda.prototype.setTarget=function(Year,Month,Selectedday,Hour,Minute) {Year=parseInt(Year);Month=parseInt(Month);Selectedday=parseInt(Selectedday);Hour=parseInt(Hour);Minute=parseInt(Minute);if(Month<10) {Month='0'+Month;} if(Selectedday<10) {Selectedday='0'+Selectedday;} if(Hour<10) {Hour='0'+Hour;} if(Minute<10) {Minute='0'+Minute;} document.getElementById(this.target).value=Year+"-"+Month+'-'+Selectedday+' '+Hour+':'+Minute;if(typeof document.getElementById(this.target).onchange!='indefined') {try {document.getElementById(this.target).onchange();} catch(e) {alert(JSON.stringify(e));}}} Agenda.prototype.Createagenda=function(Agenda,Year,Month,Selectedday,Hour,Minute) {this.setTarget(Year,Month,Selectedday,Hour,Minute);Agendaspan=document.getElementById(this.agendadiv);try {var month_name=new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December");var NextYear=parseInt(Year)+1;var NextMonth=parseInt(Month)+1;var PrevYear=parseInt(Year)-1;var PrevMonth=parseInt(Month)-1;if(Month==12) {var Nextmonthscript=this.cn+'.Createagenda(\''+Agenda+'\','+(Year+1)+','+1+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';} else {var Nextmonthscript=this.cn+'.Createagenda(\''+Agenda+'\','+Year+','+NextMonth+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';} if(Month==1) {var Prevmonthscript=this.cn+'.Createagenda(\''+Agenda+'\','+(Year-1)+','+12+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';} else {var Prevmonthscript=this.cn+'.Createagenda(\''+Agenda+'\','+Year+','+PrevMonth+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';} var Nextyearscript=this.cn+'.Createagenda(\''+Agenda+'\','+NextYear+','+Month+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';var Prevyearscript=this.cn+'.Createagenda(\''+Agenda+'\','+PrevYear+','+Month+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';innerHTML='';innerHTML+='';innerHTML+='';innerHTML+='';Week=0;Sweek=getWeekNr(Year,Month-1,1);Firstday=Dayofw(Year,Month-1,1);D=1;var Daysinmonth=getDaysInMonth(Month,Year);while(Week<5) {innerHTML+='';if(Week==0) {fd=0;while(fd ';fd++;} while(fd<7&&D<32) {if(!(Selectedday==D)) {innerHTML+='';} else {innerHTML+='';} D++;fd++;}} else {fd=0;while(fd<7&&D'+D+'';} else {innerHTML+='';} D++;fd++;} while(fd<7) {innerHTML+='';fd++;}} innerHTML+='';Week++} var Hour2=0;var Hours='';while(Hour2<24) {Hour2descr=Hour2;if(Hour2descr<10) {} if(Hour2==Hour) {Hours+='';} else {Hours+='';} Hour2++;} var Minute2=0;var Minutes='';while(Minute2<60) {Minute2descr=Minute2;if(Minute2descr<10) {Minute2descr='0'+Minute2descr;} if(Minute2==Minute) {Minutes+='';} else {Minutes+='';} Minute2++;} var settargetscript=this.cn+'.setTarget('+Year+','+Month+','+Selectedday+',document.getElementById(\''+Agenda+'_hour\').value,document.getElementById(\''+Agenda+'_minute\').value)';innerHTML+='';innerHTML+='
<<<  <<  '+month_name[Month-1]+' '+Year+'  >>  >>>
WeekZoMaDiWoDoVrZa
'+(Week+Sweek)+''+D+''+D+''+D+' 
:
';Agendaspan.innerHTML=innerHTML;} catch(e) {alert('EXCEPTION!'+JSON.stringify(e));}} function tSelectBoxDefaultConfig() {this.height=100;this.heightlimit=6;this.scrollerwidth=15;this.spacingY=1;this.spacingX=0;this.baseClass='selectbox';this.debug=false;this.blankimagestring='=6)&&(verie<7)){return false;} if(puntapi._(this.id+'_valuecontainer')){return false;} var o=new Object;var option=new Object;for(var u=0;u";this.container.appendChild(this.valueContainerWrapper);this.container.id=this.newContainerId;this.parentElement.insertBefore(this.container,this.originalElement);puntapi._(this.id+"_inputcontainer").appendChild(this.valueContainer);puntapi._(this.id+"_selectorcontainer").appendChild(this.valueContainerDummy);this.valueContainerDummy.innerHTML=this.currentText;this.valueContainer.value=this.currentText;if(navigator.appName!="Microsoft Internet Explorer"){this.valueContainer.readOnly=true;} this.valueContainer.style.color="#ffffff";this.valueContainer.style.width="1px";this.valueContainer.style.height="10px";this.valueContainer.style.border="0px";this.valueContainerDummy.className=this.config.baseClass+'_valuecontainer';this.valueContainerWrapper.className=this.config.baseClass+'_valuecontainer_wrapper';var dimensions2=this.getDimensions(this.container);this.container.style.display='none';this.container.className=this.config.baseClass;this.container.style.display='none';this.body=document.getElementsByTagName('body').item(0);this.overlay=document.createElement('div');this.overlay.id=this.id+'_overlay_container';this.body.appendChild(this.overlay);this.overlay.style.display='none';this.overlay.className=this.config.baseClass+'_overlay';var tmpelem='';var tmpfunc='';var islimited=false;if(this.values.length>this.config.heightlimit){islimited=true;this.overlay.style.height=this.config.height+'px';this.overlay.style.overflow='auto';} var append=' first';var tmpout='';var clname="";var outwidth="";if(!isIE){outwidth='width:100%';} else{if(islimited){} else{outwidth='width:49%';}} for(var u=0;u0){append='';} if(this.values[u].selected){clname=this.config.baseClass+'_item_selected'+append;} else{clname=this.config.baseClass+'_item'+append;} tmpout+="class='"+clname+"' style='"+outwidth+"'";tmpout+=">"+this.values[u].text+"";} 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=new Array();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=new Array;} 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=new Array;} md3lists_bc.prototype.debug=function(text) {alert(text);} md3lists_bc.prototype.findList=function(name) {for(var lnr=0;lnr-1) {llen=listnr;} else {llen=this.lists.length;this.lists[llen]=new Object;this.lists[llen].name=config.listid;} 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;} if(this.lists[llen].config.type=='alldata') {this.openpage(config.listid,page);} if(this.lists[llen].config.type=='querybased') {this.lists[llen].pages=new Array;this.lists[llen].pages[page]=new Object;this.lists[llen].pages[page].content=puntapi._('list_page'+this.lists[llen].config.listid+'_'+page).innerHTML;this.openpage(config.listid,page);} if(this.lists[llen].config.initialorder!='') {this.lists[listnr].sort=new Object;this.lists[listnr].sort.column=this.lists[llen].config.initialorder;this.lists[listnr].sort.direction=this.lists[llen].config.initialorderdirection;}} md3lists_bc.prototype.DoCommand=function(application,command,id,query,confirmation,target) {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,'',target);}}} md3lists_bc.prototype.pageSelectedRows=function(listid) {listnr=this.findList(listid);ids=new Array;if(listnr>-1) {var rowids=puntapi._('list_'+listid+'_'+this.lists[listnr].config.currentpage+'_rowids').value.split(',');for(var yar=0;yar-1) {var rowids=puntapi._('list_'+listid+'_'+this.lists[listnr].config.currentpage+'_rowids').value.split(',');puntapi._('listcheckbox_'+listid+'_'+this.lists[listnr].config.currentpage+'_top').checked=checked;puntapi._('listcheckbox_'+listid+'_'+this.lists[listnr].config.currentpage+'_bottom').checked=checked;for(var yar=0;yar-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.pageloaded=function(listid,page) {listnr=this.findList(listid);if(listnr>-1) {this.lists[listnr].pages[page]=new Object;this.lists[listnr].pages[page].content='';this.lists[listnr].pages[page].content=puntapi._('list_page'+listid+'_'+page).innerHTML;this.switchpage(listid,page);}} md3lists_bc.prototype.openpage=function(listid,page) {listnr=this.findList(listid);try {if(listnr>-1) {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;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) {this.debug(JSON.stringify(e));}} md3lists_bc.prototype.switchpage=function(listid,page) {try {listnr=this.findList(listid);this.lists[listnr].config.currentpage=parseInt(page);var needspagenrs=false;if(puntapi._('list_pageselect'+listid)) {if(puntapi._('list_pageselect'+listid).value!=page) {puntapi._('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=puntapi._('list_pagenrspacer'+listid+'_1');var pagenrspacer2=puntapi._('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'){puntapi._('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);puntapi._('list_export_loading').style.display='none';puntapi._('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'})+"
';puntapi._('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=new Array;this.lists[listnr].exportcolumns=new Array;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) {puntapi._('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);puntapi._('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});puntapi._('list_export_result_output').innerHTML=html;puntapi.rescale();} function md3lists_exportRow(domObj) {this.xml=domObj;this.dummy=false;this.parseObj();} md3lists_exportRow.prototype.parseObj=function() {this.items=new Array;if(this.xml.getAttribute('dummyrow')=='yes') {this.dummy=true} var items=this.xml.getElementsByTagName('item');var o=0;var val='';var htmlval='';var lines=null;var line='';for(var u=0;u0) {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=new Array();} 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;tT
 
{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%'); 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=new Array();this.config=config;if(typeof this.config=='object') {} else {this.config=new Array();} 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.scrollWidth;return w;if(this.isOpera){w=elem.style.pixelWidth;}else{w=elem.offsetWidth;} return w;} tTooltip.prototype.dimensions=function(el) {var dim=new Array();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=new Array();viewprt.width=viewportwidth;viewprt.height=viewportheight;if(docheight';puntapi.DoCommand(this.rpccontent[parent][id]['app'],this.rpccontent[parent][id]['cmd'],this.rpccontent[parent][id]['id'],this.rpccontent[parent][id]['query'],'','',id+"_content");this.rpccontent[parent][id]['loaded']=true;}}} treeview.prototype.globalToggle=function(id){this.toggle(id);this.recursiveToggle(this.treeviewid,this.toggles[id],id);} treeview.prototype.recursiveToggle=function(id,state,skip){divs=document.getElementById(id).getElementsByTagName('td');if(typeof(state)=='undefined'){state=this.toggles[id];} for(i=0;i<=divs.length;i++){if(divs[i]&&divs[i].id!=skip){branches=document.getElementById(divs[i].id+"_branches");if(branches){this.toggle(divs[i].id,state,true);}}} this.resetBackgrounds();} treeview.prototype.toggle=function(id,toggle,dontresetbackgrounds){branches=document.getElementById(id+"_branches");icon=document.getElementById(id+"_icon");if(branches){if(branches.className.indexOf('treeviewbranch_closed')!=-1&&((toggle===true)||typeof(toggle)=='undefined')){branches.className=branches.className.replace("treeviewbranch_closed",'treeviewbranch_open');if(this.rpccontent[id]){this.loadContent(id);} if(icon){icon.className=this.icons[id]['iconopen'];} this.toggles[id]=true;this.setNodeVisible(id,true);} else if(toggle===false||typeof(toggle)=='undefined'){branches.className=branches.className.replace("treeviewbranch_open",'treeviewbranch_closed');if(icon){icon.className=this.icons[id]['iconclosed'];} this.toggles[id]=false;this.setNodeVisible(id,false);}} if(!dontresetbackgrounds){this.resetBackgrounds();}} treeview.prototype.resetBackgrounds=function(){linestyle='firstline';var note;for(i=0;i<=this.totalid;i++){id=document.getElementById(this.treeviewid+'_'+i);if(id){if(this.isVisible(this.treeviewid+'_'+i)){background=document.getElementById(id.id+"_background");if(background){if(linestyle=='firstline'){background.className=background.className.substring(0,(background.className.length-9))+'firstline';linestyle='b';} else{if(linestyle=='a'){background.className=background.className.substring(0,(background.className.length-1))+'b';linestyle='b';} else{background.className=background.className.substring(0,(background.className.length-1))+'a';linestyle='a';}}}}}}} treeview.prototype.getParent=function(id){if(this.parentinfo[id]){return this.parentinfo[id];} else{return false;}} treeview.prototype.isVisible=function(id){if(!this.visibleinfo[id]){return false;} if(!this.getParent(id)){return true;} return this.isVisible(this.getParent(id));} function paymentReturns(cn){this.cn=cn;this.ontype=new Array();} paymentReturns.prototype.reset=function(){this.ontype=new Array();} paymentReturns.prototype.setOn=function(type,scheme,hostname,application,command,id,query,formtargetdiv){try{var i=this.ontype.length;this.ontype[i]=new Object();this.ontype[i].type=type;this.ontype[i].scheme=scheme;this.ontype[i].hostname=hostname;this.ontype[i].application=application;this.ontype[i].command=command;this.ontype[i].id=id;this.ontype[i].query=query;this.ontype[i].formtargetdiv=formtargetdiv;} catch(e){alert(JSON.stringify(e));}} paymentReturns.prototype.debug=function(){alert(JSON.stringify(this.ontype));} paymentReturns.prototype.on=function(type){for(i=0;i