if (typeof width == 'undefined') { var width = "180";}
if (typeof border == 'undefined') { var border = "1";}
if (typeof offsetx == 'undefined') { var offsetx = 10;}
if (typeof offsety == 'undefined') { var offsety = 10;}

ns4 = false;
if (navigator.appName == 'Netscape') { ns4 = true;}
ie4 = (document.all)? true:false
//document.write("<br><br>navigator.appName="+navigator.appName+" ns4="+ns4+" ie4="+ie4); 
var hh =true;
var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
var tr = 1;
if ( (ns4) || (ie4) ) {
	if (ns4) over = document.getElementById("overDiv").style
	if (ie4) over = overDiv.style
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}

function drs(text) {
	dts(1,text);
}
function drc(text, title) {
	dtc(1,text,title);
}
function src(text,title) {
	stc(1,text,title);
}
function dls(text) {
	dts(0,text);
}
function dlc(text, title) {
	dtc(0,text,title);
}
function slc(text,title) {
	stc(0,text,title);
}
function dcs(text) {
	dts(3,text);
}
function dcc(text, title) {
	dtc(2,text,title);
}
function scc(text,title) {
	stc(2,text,title);
}
function nd() {
//alert ('XXXX nd cnt='+cnt+" sw="+sw+" ns4="+ns4+" ie4="+ie4);
	if ( cnt >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
    	snow = 0;
			hideObject(over);
		} else {
			cnt++;
		}
	}
}
function dts(d,text) {
//alert ('XXXX dts'+text);
	txt = " "+text+" ";
	layerWrite(txt);
	dir = d;
	disp();
}
function dtc(d,text, title) {
	txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><FONT COLOR=\""+capcolor+"\">"+title+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\">"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = d;
	disp();
}
function stc(d,text, title) {
	sw = 1;
	cnt = 0;
	txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><FONT COLOR=\""+capcolor+"\">"+title+"</FONT></B></SPAN></TD><TD ALIGN=RIGHT><A HREF='/' onMouseOver='cClick();' ID='PCL'><FONT COLOR=\""+closecolor+"\">Close</FONT></A></TD></TR></TABLE><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\">"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
	layerWrite(txt);
	dir = d;
	disp();
	snow = 0;
}
function disp() {
//alert ('XXXX disp:'+" ns4="+ns4+" ie4="+ie4+" snow="+snow+" dir="+dir+" window.outerHeight="+window.outerHeight);
//alert ('XXXX disp:'+" x="+x+" offsetx="+offsetx+" y="+y+" offsety="+offsety+" width="+width+" snow="+snow);
	if ( (ns4) || (ie4) ) {
		if (snow == 0) 	{
    	if (dir == 3) { // dynamisch
        var dx1=width;
        if (x < width) {dx1=x;}
				moveTo(over,x+offsetx-(dx1),y+offsety);
			}
			if (dir == 2) { // Center
				moveTo(over,x+offsetx-(width/2),y+offsety);
			}
			if (dir == 1) { // Right
				moveTo(over,x+offsetx,y+offsety);
			}
			if (dir == 0) { // Left
				moveTo(over,x-offsetx-width,y+offsety);
			}
			showObject(over);
			snow = 1;
		}
	}
}

function mouseMove(e) {
//alert ('XXXX mouseMove:'+" x="+x+" offsetx="+offsetx+" y="+y);
	if (ns4) {x=e.pageX; y=e.pageY}
	if (ie4) {x=event.x; y=event.y}
	if (snow) {
		if (dir == 2) { // Center
			moveTo(over,x+offsetx-(width/2),y+offsety);
		}
		if (dir == 1) { // Right
			moveTo(over,x+offsetx,y+offsety);
		}
		if (dir == 0) { // Left
			moveTo(over,x-offsetx-width,y+offsety);
		}
	}
}
function cClick() {
//alert ('XXXX cClick');
	hideObject(over);
	sw=0;
}
function layerWrite(txt) {
//alert ("XXXX layerWrite: ns4="+ns4+" ie4="+ie4+" tr="+tr);
        if (ns4) {
        document.getElementById("overDiv").childNodes[0].nodeValue=txt;
        }
        else if (ie4) document.all["overDiv"].innerHTML = txt
		if (tr) {  }
}
function showObject(obj) {
//alert ('XXXX showObject; obj.visibility='+obj.visibility+" ns4="+ns4);
        if (ns4) {
          obj.visibility = "visible";
          }
        if (ie4) {
          obj.visibility = "visible";
          }
}

function hideObject(obj) {
//alert ('XXXX hideObject');
        if (ns4) {
          obj.visibility = "hidden";
          }
        if (ie4) {
          obj.visibility = "hidden";
          }
}          
function moveTo(obj,xL,yL) {
//alert ('XXXX moveTo:'+" xL="+xL+" yL="+yL);
        obj.left = xL
        obj.top = yL
}
function Statustext(Text){
  status = Text;
  }
  
function INFOFenster1(fdatei){
   MeinFenster =
   window.open(fdatei, "Zweitfenster", "width=500,height=550,scrollbars,resizable=yes");
   MeinFenster.focus();
  }
function INFOFenster1aus(fdatei){
   MeinFenster =
   window.open(fdatei, "Zweitfenster", "width=500,height=550,scrollbars,resizable=yes");
   MeinFenster.focus();
  }
function submit_3(formular, wert) {
  document.forms[formular].elements["msubmit"].value=wert;
   }
function submit_3plus1(formular, wert, felda, werta) {
  document.forms[formular].elements["msubmit"].value=wert;
  document.forms[formular].elements[felda].value=werta;
   } 
 function submit_w(formular, wsubmit) {
  document.forms[formular].msubmit.value=wsubmit;
  document.forms[formular].submit();
  } 
function submit_wi(formular, wsubmit,iwert) {
  document.forms[formular].msubmit.value=wsubmit;
  document.forms[formular].aPIDma_i.value=iwert;
  document.forms[formular].submit();
  } 
function submit_aIDma_i(formular, wsubmit,iwert) {
  document.forms[formular].msubmit.value=wsubmit;
  document.forms[formular].aIDma_i.value=iwert;
  document.forms[formular].submit();
  }   
function submit__aIDma_i(formular, wsubmit,iwert) {

  document.forms[formular].msubmit.value=wsubmit;
  document.forms[formular]._aIDma_i.value=iwert;
  document.forms[formular].submit();
  }          
 function JN(Wert) {
	if(Wert == "J") {
	nWert = "N";
	} else {
   nWert = "J";
	}
   return nWert
   }

  function JN_neu(Wert) {
	if(Wert == "-") {
	nWert = "+";
	} else {
   nWert = "-";
	}
   return nWert
   }
function text1(txt) {  
  alert("Hallo "+txt);
 }
function text2() {  
  alert("ie4= "+ie4+" ns4= "+ns4);
 }

  function NeuFenster1(fdatei,w,h)
  {
  var hh="width="+ w + ",height=" + h + " ,resizable=no";
   MeinFenster =
   window.open(fdatei, "Zweitfenster", hh);
   MeinFenster.focus();
  }
function NeuFenster_w_h(fdatei,w,h){
  var hh="width="+ w + ",height=" + h + " ,resizable=no,scrollbars=yes";
   MeinFenster =
   window.open(fdatei, "Zweitfenster", hh);
   MeinFenster.focus();
  }
function NeuFenster_w_h_scrollno(fdatei,w,h){
  var hh="width="+ w + ",height=" + h + " ,resizable=no, scrollbars=no";
   MeinFenster =
   window.open(fdatei, "Zweitfenster", hh);
   MeinFenster.focus();
  }  
function NeuFenster_w_h_r(fdatei,w,h){
  var hh="width="+ w + ",height=" + h + " ,resizable=yes";
   MeinFenster =
   window.open(fdatei, "Zweitfenster", hh);
   MeinFenster.focus();
  }  
