var isOpen = null; var isWindow = null; /*if(top!=self) top.location=self.location;*/
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 != '') { 
		/*if(option == 0 || option == null) {*/ 
			location.href=decryptData(stream); 
			/*} 
		else { 
			open_window(decrypt(stream),"",""); 
			} */
		} 
	}
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(thisAnchor) { location.href = location.protocol + '\/\/' + location.host + location.pathname + '#' + thisAnchor.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<eval("document.getElementById('"+folderID+"').parentNode.parentNode.attributes.length"); n++){if(eval("document.getElementById('"+folderID+"').parentNode.parentNode.attributes[n].nodeName.toLowerCase()")=='id'){newID= eval("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&&eval("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){if( (document.getElementsByTagName('iframe') && !document.all ) || ( document.all && typeof(cms3allwayshideiframe) != "undefined" ) ){for(i = 0; i < document.getElementsByTagName('iframe').length; i++ ){document.getElementsByTagName('iframe')[i].style.display=newValue;}}}
function setActive(fList,actID){if(fList){var cnt = fList.split(',');for(f=0;f<cnt.length;f++){if(eval("document.getElementById('t"+cnt[f]+"')")){eval("document.getElementById('t"+cnt[f]+"').className+=' active '");if(cnt[f]!=actID){if(eval("document.getElementById('afolder"+cnt[f]+"')")){eval("document.getElementById('afolder"+cnt[f]+"').style.display='block'");}if(eval("document.getElementById('ffolder"+cnt[f]+"')")){eval("document.getElementById('ffolder"+cnt[f]+"').style.display='block'");}}}}}}
function dspDiv(la,op){if(document.getElementById(la)){document.getElementById(la).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 resizeIFrame(obj) {
		var aID = obj.id;
		var pixelAdd = 0;
		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';}
		}