/*wird nur noch im Editor referenziert*/
var isOpen = null; var isWindow = null;
function decryptData(m) { var c=0; var r=""; m = unescape(m); for(var i=0;i<m.length;i++) { c=m.charCodeAt(i); if (c>=8364) {c = 128;} r += String.fromCharCode(c-(3)); } return r; }
function sendData(stream,option) { 
	if(stream != '') { 
		location.href=decryptData(stream); 
		} 
	}
function goTop(){var x = y = 0;if(goTop.arguments.length>0){x = goTop.arguments[0];} if(goTop.arguments.length>1){y = goTop.arguments[1];} window.scrollTo(x, y);}
function open_image(thisImg,thisX,thisY) { if(isOpen != null) { isOpen.close(); } isOpen = window.open("about:blank","","alwaysLowered=0,alwaysRaised=1,dependent=1,directories=0,hotkeys=0,location=0,menubar=0,resizable=0,screenX=1,screenY=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0"); isOpen.resizeTo(thisX+30,thisY+55); isOpen.document.write('<HTML><HEAD><TITLE>CMS3&reg; by backslash</TITLE></HEAD><BODY marginwidth="0" marginheight="0" rightmargin="10" leftmargin="10" bottommargin="10" topmargin="10">'); isOpen.document.write('<TABLE border=0 cellspacing=0 cellpadding=0 width="100%" height="100%"><TR><TD width="100%" height="100%" align="center" valign="middle">'); isOpen.document.write('<IMG id="grafik" src="' + thisImg.toString() + '" border=0 align="absmiddle">'); isOpen.document.write('</TD></TR><TABLE></BODY></HTML>'); isOpen.focus(); }
function open_window(filename,title,param) { if(isWindow != null) { isWindow.close(); } isWindow = window.open(filename,title,param); }
function Validation(FormCount) { var a = 1; var formalias = eval('document.thisForm_'+FormCount.toString()+'.elements'); if(formalias.length){ for(i=0;i<formalias.length;i++){ if(formalias[i].CHECK == '1'){ if(formalias[i].value == ''){ alert(formalias[i].alt); formalias[i].focus(); return false; a=0; } else if (formalias[i].type == 'checkbox'){ var C_Name = formalias[i].name; var b = 0; for(j=0;j<eval('formalias.'+C_Name+'.length');j++){ if(eval('document.thisForm_'+FormCount.toString()+'.'+C_Name+'[j].checked')){ b++; } } if(!b){ alert(formalias[i].alt); return false; a=0; } } } if(formalias[i].type == 'hidden' && formalias[i].name !='rows' && formalias[i].name !='security'){ formalias[i].disabled = false; } } } if(a){ for(i=0;i<formalias.length;i++){ if(formalias[i].type != 'hidden' && formalias[i].value != '' && formalias[i].type != 'submit') { if(formalias[i].selectedIndex){formalias[i][formalias[i].selectedIndex].value = setKey(formalias[i].value);} else {formalias[i].value = setKey(formalias[i].value);} } } } }
function setKey(thisString){ var beta = ''; for(str=0;str<thisString.length;str++){ beta = beta + (thisString.charCodeAt(str)+3); if(str != (thisString.length -1)) { beta = beta + ";"; } } return beta; }
function open_anchor(a) { location.href = location.protocol + '\/\/' + location.host + location.pathname + '#' + a.toString(); }
function nav_open(folderID,closeall,ref){
	if(closeall){nav_close(folderID,ref);}
	if(document.getElementById(folderID).style.display != 'none') {
		document.getElementById(folderID).style.display='none';}
	else {
		document.getElementById(folderID).style.display='';}
	if(nav_open.arguments.length > 3){
		var fList = createValueList(folderID.replace(/afolder/,""),ref);
		setActive(fList,folderID);
		}
	}
function createValueList(folderID,ref){var list = "";list = findRoot(list,folderID,ref);return list;}
function findRoot(list,folderID,ref){
	var newID = 0;
	for(n=0;n<document.getElementById(folderID).parentNode.parentNode.attributes.length; n++){
		if( document.getElementById(folderID).parentNode.parentNode.attributes[n].nodeName.toLowerCase()=='id'){
			newID= document.getElementById(folderID).parentNode.parentNode.attributes[n].nodeValue;
			if(list==""){
				list = newID;
				}
			else{
				list += "," + newID
				}
			if(ref!='f' && newID!='afolder0'){
				list += "," + findRoot(list,newID);
				}
			}
		}
	if( ref=='f' && newID!=0 && document.getElementById(folderID).parentNode.parentNode.tagName.toLowerCase()=='ul' ){
		list += "," + findRoot(list,newID,ref);
		}
	return list;
	}
function nav_close(folderID,ref){
	var lstPID = createValueList(folderID,ref);
	var thisNode = "";
	for(i=0; i<document.getElementsByTagName('ul').length; i++){
		for(a=0;a<document.getElementsByTagName('ul')[i].attributes.length; a++){
			if(document.getElementsByTagName('ul')[i].attributes[a].nodeName.toLowerCase()=='id'){
				thisNode=document.getElementsByTagName('ul')[i].attributes[a].nodeValue;
				if(thisNode!=folderID &&thisNode.substring(0, 8)!='afolder0'){
					if(thisNode.substring(1, 7)=='folder'){
						if(lstPID!=""){
							if(lstPID.indexOf(thisNode)=='-1'){
								document.getElementsByTagName('ul')[i].style.display='none';}
								}
							else{
								document.getElementsByTagName('ul')[i].style.display='none';}
								}
							}
						}
					}
				}
			}
function modIframe(newValue){var modFollow = true;var cntIframe = 0;var aryNoFix;if( (document.getElementsByTagName('iframe') && !document.all ) || ( document.all && typeof(cms3allwayshideiframe) != "undefined" ) ){for(i = 0; i < document.getElementsByTagName('iframe').length; i++ ){if(typeof(stopIFrameFix) != 'undefined' && newValue == 'none'){	if(stopIFrameFix!= ''){aryNoFix = stopIFrameFix.split(",");for (cntIframe=0;cntIframe< aryNoFix.length;cntIframe++){if(document.getElementsByTagName('iframe')[i].id == aryNoFix[cntIframe]){modFollow = false;break;}}}}if(modFollow){document.getElementsByTagName('iframe')[i].style.display=newValue;}modFollow = true;}}}
function resizeIFrame(obj) {
		var aID = obj.id;
		var pixelAdd = 0;
		try {
			if (resizeIFrame.arguments.length > 1 && !isNaN(resizeIFrame.arguments[1])){pixelAdd = resizeIFrame.arguments[1]}
			if(document.getElementById && document.getElementById(aID).contentDocument) {
				var objFrame = document.getElementById(aID);
				var objDoc = (objFrame.contentDocument) ? objFrame.contentDocument : (objFrame.contentWindow) ? objFrame.contentWindow.document : (window.frames && window.frames[aID]) ? window.frames[aID].document : (objFrame.document) ? objFrame.document : null;	
				var h = (objDoc.body.scrollHeight ? objDoc.body.scrollHeight : objDoc.body.offsetHeight);
				h += pixelAdd;
				objFrame.style.height = h.toString() + 'px'; 
				}
			else if(document.all) {
				var objFrame = document.frames(aID);
				var h = document.frames(aID).document.body.scrollHeight;
				h += 16 + pixelAdd;
				document.getElementById(aID).style.height = h.toString() + 'px';}
			}
		catch(e){window.status=e.message;}
		}function setActive(fList,actID){
		var level = 99;
		var prefix = "t";
		if(setActive.arguments.length>2){level = setActive.arguments[2];/*maximum-level fuer anzeige*/}
		if(setActive.arguments.length>3){prefix = setActive.arguments[3];/*prefix fuer ein-ausblenden*/}
		if(fList){
			var cnt = fList.split(',');
			for(f=0;f<cnt.length;f++){
				if( document.getElementById(prefix+cnt[f]) ){
					document.getElementById(prefix+cnt[f]).className+=' active ';
					if(cnt[f]!=actID){
						
						if( document.getElementById('afolder'+cnt[f])){
							dspDiv("afolder"+cnt[f],"block");
							}
						if( document.getElementById('ffolder'+cnt[f]) ){
							dspDiv("ffolder"+cnt[f],"block");
							}
						if( document.getElementById('fid'+cnt[f]) ){
							var newLevel = document.getElementById('fid'+cnt[f]).className.replace(/nlevel/,"");
							newLevel = newLevel.replace(/ active/,"");
							if(newLevel <= level){
								dspDiv("fid"+cnt[f],"block");
								}
							else{
								dspDiv("fid"+cnt[f],"none");
								}
							}
						}
					}
				}
			}
		}
function dspDiv(el,op){if(getE(el)){getE(el).style.display=op;}}
function hideDiv(la,delay){var divList = la.split(",");for (var i = 0;i<divList.length; i++){if(document.getElementById(divList[i])){if(document.getElementById(divList[i]).style.display=="block"){setTimeout("dspDiv('"+divList[i]+"','none')",delay);}}}}
function setV(el,newValue){document.getElementById(el).value=newValue;}
function getV(el){if(document.getElementById(el)){return document.getElementById(el).value.toString();}}
function getE(el){if(document.getElementById(el)){return document.getElementById(el);}}
function getOp(el){return document.getElementById(el).options[document.getElementById(el).selectedIndex].value.toString();}
