
	var sHelp = 'loading';
	var JST;

	function preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.p) d.p=new Array();
	    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
	}

	function errorfield(s) {
		var f=document.forms;
		for(var i=0; i<f.length; i++) {
			for(var e=0; e<f[i].elements.length; e++) {
				o=f[i].elements[e];
				if(o.name.toLowerCase()==s.toLowerCase()) {
					o.style.backgroundColor='#ffffcc';
					if(o.parentNode.lastChild.previousSibling) {
						l=o.parentNode.lastChild.previousSibling;
						if(l.tagName=='SMALL') {
							l.style.color='#990000';
						}
					}
				}
			}
		}
	}


	function openmenu(i) {
		menu(i*100,true);
	}

	function getHelp(iFAQID, iChapterID, iHelpID, bNotInline) {
			if(!iFAQID) 		 { iFAQID 		= 7; }
			if(!iHelpID) 		 { iHelpID 		= 1; }
			if(!iChapterID)  { iChapterID = 14; }
			oHelp = window.open('/sites/support/help-popup.asp?mode=popup&faqID='+iFAQID+'&helpID='+iHelpID+'&chapterID='+iChapterID,'Hilfe','width=640,height=480,resizable=1,scrollbars=1');
			oHelp.focus();
			return false;

	}

	function ldata(f){
		var h = document.getElementsByTagName('head')[0];
		var t = document.getElementById('ext_js_loader');
		if(t) h.removeChild(t);
		s = document.createElement('script');
		sSrc = '/js/help.asp?PageID='+f;
		s.src = sSrc;
		s.type = 'text/javascript';
		s.id = 'ext_js_loader';
		h.appendChild(s);
	}


	function cmd(s) {
		document.location.href=s;
		return false;
	}

	function changeMode(o) {
		if(document.getElementById) {
			s=document.getElementById('procss');
			s.href='css/'+o.options[o.selectedIndex].value+'.css';
			c=document.getElementsByTagName('DIV');
		}
	}

	function byID(sID) {
		o=document.getElementById(sID);
		if(typeof(o)=='undefined') {
			o=false;
			alert('Could not find DHTML object '+sID+' in DOM.');
		}
		return o;
	}

	function display() {
		aParam = (display.arguments);
		if(aParam.length%3==0){
			var i=0;
			while(i<aParam.length) {
				o=byID(aParam[i])
				if(o) {
					if(aParam[i+2]) {
						o.className=(aParam[i+1]) ? 'row_on' :'row_off';
					} else {
						sMode=(aParam[i+1]) ? 'block' :'none';
						o.style.display=sMode;
					}
				} else {
					alert('Could not modify display property of object ' + aParam[i]);
				}
				i+=3;
			}
		} else {
			alert('Invalid argument count for display()');
		}
	}

	function sclass() {
		aParam = (sclass.arguments);
		if(aParam.length%2==0){
			var i=0; while(i<aParam.length) {
				o=byID(aParam[i]);
				if(o) { o.className=aParam[i+1]; }
				i+=2
			}
		} else {
			alert('Invalid argument count for sclass()');
		}
	}

	function menu(i,h) {
		t=document.getElementsByTagName('h3');
		c=Math.floor(i/100)
		for(var x=0;x<t.length;x++) {
			if(t[x].id.indexOf('getmenu_')!=-1) {
				t[x].className='';
				y=t[x].id.substring(t[x].id.indexOf('_')+1);
				if(t[x].id=='getmenu_'+c) {
					t[x].className='active';
				}
			}
		}
		o=document.getElementsByTagName('SPAN');
		for(var x=0;x<o.length;x++) {
			if(o[x].id.indexOf('menu_')==0) {
				m=o[x];
				sID=o[x].id.substring(o[x].id.indexOf('_')+1);
				m.className=(sID==c) ? 'optout' : 'optin';
			}
		}
		l=byID('l'+i);
		if(l){l.className='menuactive';}
	}
	
	function highlight(iFID) {
		if(document.getElementById) {
			a=document.getElementsByTagName('a');
			for(var x=0;x<a.length;x++) {
				if(a[x].name=='folder_'+iFID) {
					a[x].className='menuactive';
					break;
				} else {
					if(a[x].className!='topbutton') {
						a[x].className='';
					}
				}
			}
		}
		return true;
	}

	function autologout(iTime) {
		o=byID('lt_timeleft');
		if(o){o.innerHTML = ', ' + iTime + ' Minuten bis Logout';}
		if(iTime>0){
			LOT=window.setTimeout('autologout('+(iTime-1)+')',60000);
		} else {
			document.location.href = '/sites/mybox/xt_logout.asp';
		}
	}

	function autofocus(sFieldName) {
		df=document.forms;
		for(var i=0; i<df.length; i++) {
			for(var e=0; e<df[i].elements.length; e++) {
				if(df[i].elements[e].name==sFieldName) {
					if(df[i].elements[e].focus) {
						df[i].elements[e].focus();
					}
				}
			}
		}
	}

	function tOver(o){o.className='largetool_1';}
	function tOut(o){o.className='largetool';}