var aktreiter = 0;function reiterwechsel(reiter){  if (aktreiter && aktreiter!=reiter)  {    document.getElementById('reiter'+aktreiter).style.display = 'none';    document.getElementById('R'+aktreiter).className = 'reiterPassiv';  }  aktreiter = reiter;  if (reiter)  {    document.getElementById('reiter'+reiter).style.display = 'block';    document.getElementById('R'+reiter).className = 'reiterAktiv';    if (el = document.getElementById('tabno'))      el.value = reiter;  }}var flag = 0;function setFlag(val){  flag = val;}function checkFlag(){  var win=window, label='';  if (checkFlag.arguments.length)    win = checkFlag.arguments[0];  if (checkFlag.arguments.length>1)    label = ' ' + checkFlag.arguments[1];  if (win.flag)    return confirm ('Ihre Eingaben'+label+' wurden noch nicht gespeichert.\nMöchten Sie trotzdem fortfahren?\nUm Ihre Eingaben zu sichern, drücken Sie bitte abbrechen!');  return true;}function popup(w,h){  return popup2(w,h,'eakpop');}function popup2(w,h,n){  return window.open('about:blank', n, 'width='+w+',height='+h+',resizable=yes,scrollbars=yes');}function showlen(srcel, trgname, maxlen){  document.getElementById(trgname).innerText=srcel.innerText.length+' Zeichen (max. '+maxlen+')';}ajax_callback = null;ajax_return = '';function ajax(url){  if (ajax.arguments.length>1)    ajax_callback = ajax.arguments[1];  else    ajax_callback = null;  var p = url.lastIndexOf('/');  var s = url.substr(0,p+1) + 'ajax/' + url.substr(p+1, 255);  if (navigator.appName.match('^Opera') && document.getElementById('ajaxframe').src == s)    document.getElementById('ajaxframe').contentWindow.location.reload();  else    document.getElementById('ajaxframe').src = s;  return false;}function ajax_rcv(){  if (navigator.appName.match('^Opera') && ajax_rcv.arguments.length)    ajax_return = ajax_rcv.arguments[0];  else    ajax_return = document.getElementById('ajaxframe').contentWindow.document.body.innerHTML;  if (ajax_callback)    eval(ajax_callback+';');}menueoffen = false;offen = false;function showmenue(element,wert){  //alert(menueoffen);  if(wert)  {    if(offen != false)	  document.getElementById(offen).style.display='none'	menueoffen = true;		menuecontrol(element,'block');	offen = element;      }  else  {    menueoffen = false;	window.setTimeout("menuecontrol('"+element+"','none')",200);  }}function menuecontrol(element,wert){  if(wert == 'block' || menueoffen==false)  {    document.getElementById(element).style.display=wert;	breite = document.getElementById(element).offsetWidth;	for(i=0; i<document.getElementById(element).childNodes.length; i++)	{	  if(document.getElementById(element).childNodes[i].offsetWidth > breite)	    breite=document.getElementById(element).childNodes[i].offsetWidth;	}	//alert(breite);	links = document.getElementById(element).offsetLeft;	fenster = document.getElementsByTagName("body")[0].offsetWidth;	rest = (fenster-links)-breite;		if(rest < 0)	{	  minus=40;	  if(navigator.appName.substring(0, 9) == 'Microsoft')	    minus = 20;	  document.getElementById(element).style.left =(fenster-breite)-minus;	  //document.getElementById(element).style.setAttribute("text-align","right");	}	//alert(rest);	//document.getElementById(element).style.setAttribute("background-color", "red");  }}function go(showflash,width,height){  if (showflash != "") {    var str = "height=" + height + ",innerHeight=" + height;    str += ",width=" + width + ",innerWidth=" + width;    if (window.screen) {      var ah = screen.availHeight - 30;      var aw = screen.availWidth - 10;      var xc = (aw - width) / 2;      var yc = (ah - height) / 2;      str += ",left=" + xc + ",screenX=" + xc;      str += ",top=" + yc + ",screenY=" + yc;    }    str += ",scrollbars=Yes,dependent=Yes"    //open(DoWhat.value, "remote", str);     var wintoload4 = open(showflash, "ebizadminpopup",str);     wintoload4.focus();  }}function dialogTreeDel(id, folder){  var rValue=showModalDialog(    ('tpl/de')    + '/dlg.treedel.html', dialogTreeDel.arguments,    'resizable:yes;scroll:no;status=no;dialogHeight=85px;dialogWidth=433px;dialogTop=300px;dialogLeft=300px');  if (rValue) location.href=rValue;}function help(ident){//alert (location.href.match(/\/admin\/(index\.php)?/));  var w = popup2(400,300,'eaffhelp'), reg = /\/admin\/(index\.php)?/;  w.location.href=(location.href.match(reg) ? '../' : '') + 'help_'+ident+'.html';}function suchform(){  layer = document.getElementById('suchform');  status = layer.style.visibility;  neu = 'visible';  if(status == 'visible')    neu = 'hidden';  layer.style.visibility = neu;}//von janvar pop = null;function do_popdown() {		if (pop && !pop.closed) pop.close();}function do_popup(obj) {	var width = 400;	var height = 250;	  if (arguments[1])	{		width = arguments[1];	}		if (arguments[2])	{		height = arguments[2];	}			var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;	if (!url) return true;	var args = 'width='+width+',height='+height+',resizable=yes,top=150,left=200,scrollbars=yes,status=yes';	do_popdown();	pop = window.open(url,'',args);	return (pop) ? false : true;}function open_popuptv(target) {	  var LeftPosition = (screen.width) ? (screen.width-784)/2 : 0;	  var TopPosition = (screen.height) ? (screen.height-520)/2 : 0;	  var popuptv = window.open(target, '', 'toolbar=no,width=784,height=520,top='+TopPosition+',left='+LeftPosition+',status=no,statusbar=0,scrollbars=no,resizable=no,menubar=no');      popuptv.focus();}function popuppWindow(mypage, myname, w, h, scroll) {	var winl = (screen.width - w) / 2;	var wint = (screen.height - h) / 2;	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'	win = window.open(mypage, myname, winprops)	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}
