var wid_root;var w2=function(){};function w2LstKeyCd(e){if(!e){e=window.event}w2.lK=e.keyCode;if(27==w2.lK){w2_Destroy('tooltipID');w2_Destroy('panID');w2_Destroy('treeID');d=w2ElByID('IDfocusElementList');if(d){document.body.removeChild(d)}}}document.onkeydown=w2LstKeyCd;function w2_EventInit(){if(window.event){if(document.captureEvents){document.captureEvents(Event.MOUSEMOVE)}else{window.captureEvents(Event.MOUSEMOVE)}}document.onmousemove=w2_Update_MousePosVars}w2_EventInit();function w2ElByID(id){return document.getElementById(id)}function w2ElByNm(nm){return document.getElementsByName(nm)}function w2ElByT(nm){return document.getElementsByTagName(nm)}function wid_convForJSUse(s){s=s.replace(/&lt;/g,'<');s=s.replace(/&gt;/g,'>');s=s.replace(/&amp;/g,'&');s=s.replace(/&quot;/g,'"');return s}function wid_donothing(){}function ovlbVorsch(obj){w2_cfgPosM();ovlbSmp(obj,'zur Vorschau bitte auf dieses blaue Icon klicken')}function ovlbSmp2(tT,w){ovlbSmp(null,'<div style="width:'+w+'px">'+tT+'</div>')}function ovlbSmp(obj,tT){w2_cfgPosM();w2.o=obj;w2.c=tT;w2.t=window.setTimeout(ovlbSmp_Echt,50)}function o2wlbTimer(o,id,wtT,c){w2.o=o;w2.id=id;w2.wtT=wtT;w2.c=c;w2.t=window.setTimeout(o2wlbWithTimer,300)}function ovlbSmp_Echt(){w2_VisHid('tooltipID','hidden');var el=w2ElByID('tooltipID');el.innerHTML=w2.c;el.en1=1;w2_setPosI(el);w2_VisHid('tooltipID','visible')}function o2wlbWithTimer(){o2wlb(w2.o,w2.id,w2.wtT,w2.c)}function o2wlb(objT,id,wtT,c){w2_cfgPosM();w2_Destroy('tooltipID');w2_Destroy('panID');var el=w2ElByID('panID');el.style.cursor='wait';el.innerHTML='<h4>&nbsp;Daten werden gerade geladen, bitte warten Sie einen Moment ... </h4>';w2_setPosI(el);w2_VisHid('panID','visible');var ajxTTip=new w2HttpR('');ajxTTip.url=wid_root+'mod_ajax/getEntrysInfo.php?what='+escape(wtT)+'&id='+id+'&content='+escape(c);ajxTTip.onready=function(){ovr2wlbToolTipCmpl(ajxTTip)};ajxTTip.w2start()}function ovr2wlbToolTipCmpl(ajxTTip){var sHtml='';var head='';var contD='';var st=ajxTTip.htR.responseText;var arrS=st.split(';__;');if(1<arrS.length){var s1="";for(var i=1;i<arrS.length;i++){var s2=arrS[i];s1=s1+s2}contD=wid_convForJSUse(s1);head=wid_convForJSUse(arrS[0])}else{contD=wid_convForJSUse(arrS[0])}wid_panadd=' ';sHtml='<table width=728><tr><th>'+'<table width="100%" cellpadding=0 cellspacing=0><tr><td align=left>'+head+'</td><td style="text-align:right;">'+'<A HREF=\"javascript:w2_Destroy(\'panID\')\"><b>x</b></A></td></tr></table>'+'</th></tr>'+'<tr><td>'+contD+'</td></tr></table>';w2_VisHid('panID','hidden');var el=w2ElByID('panID');el.style.cursor='default';el.innerHTML=sHtml;el.en1=1;w2_setPosI(el);w2_VisHid('panID','visible')}function w2nd(){w2_Destroy('tooltipID');var el=w2ElByID('panID');if(el.en1){w2.tP=window.setTimeout(w2nd_pan,800)}}function w2nd_pan(){w2_Destroy('panID')}function w2nd_panR(){window.clearTimeout(w2.tP)}function w2_selectHide(hidden){var node=document.getElementsByTagName("select");for(var i=0;i<node.length;i++){if(hidden){node[i].style.visibility='hidden'}else{node[i].style.visibility='visible'}}}function w2_VisHid(objID,val){w2ElByID(objID).style.visibility=val}function w2_Destroy(objID){var k=w2ElByID(objID);w2_VisHid(objID,'hidden');k.innerHTML='';k.en1=0;if('tooltipID'==objID){window.clearTimeout(w2.t)}if('panID'==objID){window.clearTimeout(w2.tP)}}function w2_Update_MousePosVars(e){if(!e){e=window.event}w2.Mx=e.clientX;w2.My=e.clientY}function w2_cfgPosM(){w2.Px=w2.Mx;w2.Py=w2.My}function w2_cfgPosXY(x,y){w2.Px=x;w2.Py=y}function w2_getPos(o){var fixBrowserQuirks=true;if(typeof(o)=="string"){o=resolveObject(o)}if(o==null){return null}var left=0;var top=0;var width=0;var height=0;var parentNode=null;var offsetParent=null;offsetParent=o.offsetParent;var originalObject=o;var el=o;while(el.parentNode!=null){el=el.parentNode;if(el.offsetParent==null){}else{var considerScroll=true;if(fixBrowserQuirks&&window.opera){if(el==originalObject.parentNode||el.nodeName=="TR"){considerScroll=false}}if(considerScroll){if(el.scrollTop&&el.scrollTop>0){top-=el.scrollTop}if(el.scrollLeft&&el.scrollLeft>0){left-=el.scrollLeft}}}if(el==offsetParent){left+=o.offsetLeft;if(el.clientLeft&&el.nodeName!="TABLE"){left+=el.clientLeft}top+=o.offsetTop;if(el.clientTop&&el.nodeName!="TABLE"){top+=el.clientTop}o=el;if(o.offsetParent==null){if(o.offsetLeft){left+=o.offsetLeft}if(o.offsetTop){top+=o.offsetTop}}offsetParent=o.offsetParent}}if(originalObject.offsetWidth){width=originalObject.offsetWidth}if(originalObject.offsetHeight){height=originalObject.offsetHeight}return{'left':left,'top':top,'width':width,'height':height}}function w2_setPosI(o){w2_setPosC(o,1,15,15)}function w2_setPosXYO(o,x,y){w2_setPosC(o,0,x,y)}function w2_setPosC(o,k,x,y){var offY=window.pageYOffset;if(!offY){offY=document.body.scrollTop}if(!offY){offY=document.documentElement.scrollTop}var offX=window.pageXOffset;if(!offX){offX=document.body.scrollLeft}if(!offX){offX=document.documentElement.scrollLeft}var posTop=w2.Py+offY;var posLeft=w2.Px+offX;var sollTop=posTop+x;var sollLeft=posLeft+y;if(1==k){var vPWidth=document.documentElement.clientWidth;if(!vPWidth){vPWidth=document.body.clientWidth}if(!vPWidth){vPWidth=window.innerWidth}if(!vPWidth){vPWidth=0}if(vPWidth+offX<(sollLeft+o.offsetWidth+10)){var sollLeft=sollLeft-o.offsetWidth-20;if(0>(sollLeft+offX)){sollLeft=offX+5}}var vPHeight=document.documentElement.clientHeight;if(!vPHeight){vPHeight=document.body.clientHeight}if(!vPHeight){vPHeight=window.innerHeight}if(!vPHeight){vPHeight=0}if(vPHeight+offY<(sollTop+o.offsetHeight+10)){var sollTop=sollTop-o.offsetHeight-20;if(0>(sollTop-offY)){sollTop=offY+5}}}o.style.top=sollTop+'px';o.style.left=sollLeft+'px'}var vartargNavPreafId;var varnavUrlSuffixGlob;var varonChangeTargetIDZusatzFunktion;function treeNodeOnclick(el,catid,usageKind){var nod=el.parentNode;while(!(nod.className=='liOpen'||nod.className=='liClosed'||nod.className=='liClsdLd')&&nod){nod=nod.parentNode}if(nod.className=="liOpen"){nod.className='liClsdLd'}else{if('liClosed'==nod.className){nod.className="liLoad";treecAddLevelAsyncRequest(el,catid,usageKind)}else{nod.className="liOpen"}}}function treecAddLevelAsyncRequest(node,catid,usageKind){var katP='';var strtargNavPreafId='';if('CatSelect'==usageKind){katP='&onlyCats=1';strtargNavPreafId='&frmID='+vartargNavPreafId}if('Navi'==usageKind){katP='&onlyCats=1'}url=wid_root+"mod_ajax/getChilds.php?id="+catid+katP+strtargNavPreafId+'&uk='+usageKind;var naviAjax=new w2HttpR('');naviAjax.url=url;naviAjax.onready=function(){treecAddLevel(node,naviAjax)};naviAjax.w2start()}function treecAddLevel(node,naviAjax){var el=document.createElement('ul');el.innerHTML=naviAjax.htR.responseText;node.parentNode.appendChild(el);node.parentNode.className="liOpen"}function treeInit(rootid,currentid,treeN,label,usageKind,targNavPreafId,onChgFct,navUrlSuffix){vartargNavPreafId=targNavPreafId;varonChangeTargetIDZusatzFunktion=onChgFct;varnavUrlSuffixGlob=navUrlSuffix;w2_Destroy('treeID');w2_Destroy('tooltipID');w2_Destroy('panID');tmp="treeWrapper"+treeN;var treeWr=document.createElement("div");var t2=document.createAttribute("id");t2.nodeValue="treeWrapper"+treeN;treeWr.setAttributeNode(t2);var tmp=document.createAttribute("class");tmp.nodeValue="treeWrapperStyle";treeWr.setAttributeNode(tmp);var TreeIDEl=w2ElByID('treeID');w2_cfgPosM();TreeIDEl.appendChild(treeWr);var treeStEl;var ParId=rootid;if(0==ParId){ParId='TOP'}if('CatSelect'==usageKind){treeStEl='<a href="'+"javascript:w2_Destroy('treeID');widSetFrm('"+vartargNavPreafId+"', '"+ParId+"')"+'">'+label+'</a>'}else{var zusatzNavUrl11;zusatzNavUrl11="";if(varnavUrlSuffixGlob){zusatzNavUrl11="?"+varnavUrlSuffixGlob}treeStEl='<a href="'+wid_root+'kt'+ParId+zusatzNavUrl11+'">'+label+'</a>'}var tree=w2ElByID("treeWrapper"+treeN);tree.innerHTML="<table><tr><td style=\"text-align:right;\"><A HREF=\"javascript:w2_Destroy('treeID')\"><b>x</b></A></td></tr><tr><td><div id=\""+"innerTreeWrapper"+treeN+"\"></div> <div style=\"text-align:center;margin-left:7px;\">&nbsp;</div> </td></tr></table>";tree=w2ElByID("innerTreeWrapper"+treeN);var el=document.createElement('ul');tree.appendChild(el);var Attr1=document.createAttribute("class");Attr1.nodeValue="mktreeAj";el.setAttributeNode(Attr1);el.innerHTML="<li class='liLoad'><span class=bullet onClick=\"treeNodeOnclick(this,"+currentid+", '"+usageKind+"')\">\u00A0</span><span>"+treeStEl+"</span></li>";w2_setPosI(TreeIDEl);w2_VisHid('treeID','visible');treecAddLevelAsyncRequest(el.lastChild.lastChild,currentid,usageKind)}function mkTreeCollaps1(level){var mkTreeParent=w2ElByID("innerTreeWrapper568braedcrumbs");mkTreeCollExpRecurs(mkTreeParent,0,level);w2.Cl=1}function mkTreeCollExpRecurs(el,liParamEbene,tleEb){var ndNm=el.nodeName;var clsNm=el.className;var chld=1;if('DIV'!=ndNm&&'UL'!=ndNm&&'LI'!=ndNm&&'SPAN'!=ndNm){return}var cliEb=liParamEbene;if('LI'==ndNm){cliEb=liParamEbene+1;if(tleEb==cliEb){if(clsNm=='liOpen'){el.className='liClsdLd'}chld=0}if(cliEb<tleEb){if(clsNm=='liClsdLd'){el.className='liOpen'}if(clsNm=='liClosed'){var katid=String(el.firstChild.onclick);katid=katid.replace(/[^0-9]/g,"");treeNodeOnclick(el.firstChild,katid,'ajaxAll')}}}var elNxt=el.nextSibling;if(elNxt){mkTreeCollExpRecurs(elNxt,liParamEbene,tleEb)}if(tleEb<cliEb){return}if('SPAN'==ndNm||'liBullet'==clsNm){chld=0}if(chld){if(el.firstChild){elChild=el.firstChild;mkTreeCollExpRecurs(elChild,cliEb,tleEb,1)}}return}function widSetFrm(fieldPreafID,newValue){var frmId=fieldPreafID;fldID_INP=frmId+"_INPUT";newValue=""+newValue;newValue=newValue.replace(/[^0-9]/g,'');w2ElByID(fldID_INP).value=newValue;var ajx=new w2HttpR('');ajx.ZusatzAttrib2=newValue;ajx.url=wid_root+'mod_ajax/getBreadcrumbs.php?CatID='+newValue+'&fieldPreafID='+fieldPreafID+'&zusatzFct='+escape(varonChangeTargetIDZusatzFunktion);ajx.onready=function(){widSetFrm_Sub(ajx,frmId)};ajx.w2start()}function widSetFrm_Sub(ajx,frmId){var fldID_brd=frmId+"_Brdcrmb";var tmpStringfd=ajx.htR.responseText;w2ElByID(fldID_brd).innerHTML=tmpStringfd;if(varonChangeTargetIDZusatzFunktion){eval(varonChangeTargetIDZusatzFunktion+'('+ajx.ZusatzAttrib2+');')}}function checkall(conreteform,checkname,thestate){for(i=0;i<conreteform.length;i++){if(conreteform.elements[i].name==checkname)conreteform.elements[i].checked=thestate}}function wid_formtextlenght_get(formStr,maxCnt){var letSum=0;var pos=1;var posR=0;var varmaximalzuzaehlen=maxCnt+500;for(pos=1;pos<=varmaximalzuzaehlen;pos++){x=pos-1;var substr=formStr.substring(x,pos);var letterCount=0;switch(substr){case"":letterCount=0;break;default:letterCount=1}letSum+=letterCount;if(maxCnt<=letSum){if(0==posR){posR=pos}if((maxCnt+100)<=(letSum)){break}}}var result=new Array(letSum,posR,pos);return result}function widFrmChckRstZch(clickobjFeld,maxAnz){var feld=w2ElByID(clickobjFeld);var anz=w2ElByID(clickobjFeld+'_Cnt');if(feld){var result1=wid_formtextlenght_get(feld.value,maxAnz);aktfeldAnzahl=result1[0];richtigeposition=result1[1];var restZeiche=maxAnz-aktfeldAnzahl;if(restZeiche<0){anz.style.backgroundColor="red";anz.style.color="black";anz.style.fontWeight="bold";anz.style.fontSize="large"}else{anz.style.backgroundColor="";anz.style.color="";anz.style.fontWeight="";anz.style.fontSize=""}anz.value=restZeiche}}function text_limitlength_warning(clickobjects__withl_ength){var params=clickobjects__withl_ength.split("::");for(xc=0;xc<params.length;xc++){var parstringEiner=params[xc];var parstringEinerArray=parstringEiner.split(";");var clickobj=parstringEinerArray[0];var length=parstringEinerArray[1];var FeldName=parstringEinerArray[2];var letterSum=0;var maxpossible=1;var obj=w2ElByID(clickobj);var maxlength=length;for(y=1;y<=269;y++){x=y-1;var substr=obj.value.substring(x,y);var letterCount=0;switch(substr){case"":letterCount=0;break;default:letterCount=1}letterSum+=letterCount;if(letterSum<=maxlength){maxpossible=y}}if(y==270){if(letterSum>maxlength){var dec=window.confirm("Feld ["+FeldName+"] :Sie haben mehr als die erlaubten "+maxlength+" Zeichen (im HTML Format zaehlt ein Umlaut oder "+"Sonderzeichen ca. 5-fach).\n Möchten Sie automatisch kürzen lassen (ok) oder selbst korigieren (abbrechen) ?");if(dec){obj.value=obj.value.substring(0,maxpossible)}else{obj.focus();return false}}}}return true}function bbcode_insert(aTag,eTag,formName,formElementName){var input=document.forms[formName].elements[formElementName];input.focus();if(typeof document.selection!='undefined'){var range=document.selection.createRange();var insText=range.text;range.text=aTag+insText+eTag;range=document.selection.createRange();if(insText.length==0){range.move('character',-eTag.length)}else{range.moveStart('character',aTag.length+insText.length+eTag.length)}range.select()}else if(typeof input.selectionStart!='undefined'){var start=input.selectionStart;var end=input.selectionEnd;var insText=input.value.substring(start,end);input.value=input.value.substr(0,start)+aTag+insText+eTag+input.value.substr(end);var pos;if(insText.length==0){pos=start+aTag.length}else{pos=start+aTag.length+insText.length+eTag.length}input.selectionStart=pos;input.selectionEnd=pos}else{var pos;var re=new RegExp('^[0-9]{0,3}$');while(!re.test(pos)){pos=prompt("Einfügen an Position (0.."+input.value.length+"):","0")}if(pos>input.value.length){pos=input.value.length}var insText=prompt("Bitte geben Sie den zu formatierenden Text ein:");input.value=input.value.substr(0,pos)+aTag+insText+eTag+input.value.substr(pos)}}function wid2_addLink(){var ajx;ajx=new w2HttpR('');ajx.url=wid_root+"mod_ajax/add_link.php";ajx.onready=function(){wid2_addLink_ForResponse(ajx)};ajx.w2start()}function wid2_addLink_ForResponse(ajx){var el=w2ElByID('id_LinkPruefResultat');el.innerHTML=ajx.htR.responseText}function w2SrchTxtInNodes(node,te,cS){++cS;if(2000<cS)return;var len,pos,spanN,middlB,endbit,middlClon,skip;len=te.length;skip=0;if(node.nodeType==3){pos=node.data.toUpperCase().indexOf(te.toUpperCase());if(pos>=0){spanN=document.createElement("span");spanN.style.backgroundColor="yellow";spanN.style.color="black";middlB=node.splitText(pos);endbit=middlB.splitText(len);middlClon=middlB.cloneNode(true);spanN.appendChild(middlClon);middlB.parentNode.replaceChild(spanN,middlB);skip=1}}else if(node.nodeType==1&&node.childNodes&&node.tagName.toUpperCase()!="SCRIPT"&&node.tagName.toUpperCase!="STYLE"){for(var child=0;child<node.childNodes.length;++child){child=child+w2SrchTxtInNodes(node.childNodes[child],te,cS)}}return skip}function w2BodyOnload(){var d=w2ElByID("Anzeigeauswahl_821dakL");if(d){d.style.top='136px';d.style.width='150px';d.style.position='fixed';var dv=document.createElement("div");dv.id='idnsup201105161708';dv.style.width=d.offsetWidth+'px';dv.style.height=d.offsetHeight+'px';dv.style.visibility='hidden';d.parentNode.appendChild(dv)}}function w2HttpR(url){this.htR=null;this.url=url;this.onready=null;this.w2start=function(){};var self=this;if(window.XMLHttpRequest){this.htR=new XMLHttpRequest()}else if(window.ActiveXObject){try{this.htR=new ActiveXObject("Msxml2.XMLHTTP")}catch(ex){try{this.htR=new ActiveXObject("Microsoft.XMLHTTP")}catch(ex){}}}this.w2start=function(){this.htR.open("GET",this.url,true);this.htR.onreadystatechange=function(){if(self.htR.readyState==4){self.onready()}};this.htR.send(null)}}var pW2AutCmpl=new w2AutCmpl();function w2AutCmpl(){this.vWait=new Object();this.vInt=new Object();this.pw2ht=new w2HttpR('');this.el=null;this.main=function(el){var id=el.id;var lK=w2.lK;this.el=el;switch(lK){case 27:this.LstClr1(id);break;case 33:this.SelEl('upA',id);break;case 34:this.SelEl('downA',id);break;case 38:this.SelEl('up',id);break;case 40:this.SelEl('down',id);break;default:if((8==lK)||(45<lK&&lK<256)&&(lK<112||123<lK)){this.waitStp(id);this.vWait[id]=window.setTimeout("pW2AutCmpl.ajax('"+id+"')",30)}}};this.CrtLst=function(id){var resp=this.pw2ht.htR.responseText;if(0==resp.length){this.LstClr1(id);return}var d=w2ElByID(id+"List");if(d){}else{var pos=w2_getPos(this.el);var d=document.createElement("div");d.style['width']=(this.el.offsetWidth-16)+"px";d.id=this.el.id+'List';document.body.appendChild(d);w2_cfgPosXY(pos.left,pos.top+pos.height);w2_setPosXYO(d,0,0)}d.innerHTML=resp};this.clrLst=function(LsEl){this.LstClr1(pW2AutCmpl.GetId(LsEl))};this.LstClr1=function(id){d=w2ElByID(id+'List');if(d){document.body.removeChild(d)}this.waitStp();w2ElByID(id).focus()};this.LstClr2=function(el){d=w2ElByID(el.id+'List');if(d){document.body.removeChild(d);this.waitStp()}};this.GetId=function(LsEl){LsId=LsEl.parentNode.id;return LsId.substr(0,LsId.length-4)};this.SelEl=function(k1,id){var d=w2ElByID(id+"List");if(d){}else{return}var len=d.childNodes.length;var cS=-1;var cnt=0;while(cnt<len){if('autocmplSel'==d.childNodes[cnt].className){cS=cnt;d.childNodes[cnt].className='autocmpl'}cnt++}var nS=-1;if(0<len){switch(k1){case'down':nS=cS+1;break;case'downA':nS=len-1;break;case'up':nS=cS-1;break;case'upA':nS=0;break}}if(len<=nS){nS=len-1}if(-1<nS){el=d.childNodes[nS];el.className='autocmplSel';this.setFld(el,id)}};this.waitStp=function(id){if(this.vWait[id]){window.clearTimeout(this.vWait[id])}};this.setFld=function(el,id){if('LsEl'==id){id=this.GetId(el)}w2ElByID(id).value=el.firstChild.nodeValue};this.subm=function(el){this.clrLst(el);el=w2ElByID(this.GetId(el));for(var i=1;i<=10;i++){if(el){if('FORM'==el.nodeName){el.submit();break}}else{break}el=el.parentNode}};this.ajax=function(id){var self=this;pW2AutCmpl.waitStp(id);val=w2ElByID(id).value;if(0==val.length){this.LstClr1(id);return}var url21=wid_root+"mod_ajax/getSearchAutoCompl.php"+"?a="+escape(w2ElByID(id).value);this.pw2ht.url=url21;this.pw2ht.onready=function(){self.CrtLst(id)};this.pw2ht.w2start()}}//here are used Position and Util, DOM, CSS, Event from
// and or only some functions from there
/**
 * Copyright (c)2005-2008 Matt Kruse (javascripttoolbox.com)
 *
 * Dual licensed under the MIT and GPL licenses.
 * This basically means you can use this code however you want for
 * free, but don't claim to have written it yourself!
 * Donations always accepted: http://www.JavascriptToolbox.com/donate/
 *
 * Please do not link to the .js files on javascripttoolbox.com from
 * your site. Copy the files locally to your server instead.
 *
 */

