

function fenster(url, w, h )

 {



 	var InfoWin = window.open( url, "win_insert", "width="+w+",height="+h+",scrollbars=yes,status=no,resizable=no,pageXoffset=0,pageYoffset=0,left=0,top=0");

 	InfoWin.focus();

 }







function zeige(name) {

if (document.layers)

      {ns = 1; ie = 0;}

else  {ns = 0; ie = 1;}

	if (ns)

                    {document.layers['la' + name].visibility = "show";}

                                        else

                                        {document.all['la' + name].style.visibility = "visible";}

                    }

                                        

function verstecke(name) {

if (document.layers)

      {ns = 1; ie = 0;}

else  {ns = 0; ie = 1;}

	if (ns)



                    {document.layers['la' + name].visibility = "hide";}



                                        else



                                        {document.all['la' + name].style.visibility = "hidden";}



                                        }



function AbDieLutzie(wattnu)

	
	
	{

	document.gruppe.submit();

	}



function voll() {





window.top.moveTo(0, -100);

var high = screen.height+100;

var wide = screen.width;



window.top.outerHeight = high;

window.top.outerWidth = wide;

window.top.pageYoffset = high;

window.top.pageXoffset = wide;



window.top.resizeTo(wide, high);



}



function normal() {



window.top.moveTo(0, 0);

var high = screen.height-25;

var wide = screen.width;



window.top.outerHeight = high;

window.top.outerWidth = wide;



window.top.resizeTo(wide, high);



}



//popup ohne toolbars

//script by http://www.microbians.com/



function openWIN(theURL,W,H,X,Y, wname, titWIN) {

	CLOSEdwn 		= "../pics/mini_dwn.gif"

	CLOSEup 		= "../pics/close_dwn.gif"

	CLOSEovr 		= "../pics/mini_dwn.gif"

	MINIdwn 		= "../pics/shim.gif"

	MINIup 		= "../pics/shim.gif"

	MINIovr 		= "../pics/shim.gif"

	NONEgrf 		= "../pics/shim.gif"

	CLOCKgrf		= "../pics/shim.gif"

	titHTML 	    	= "<font face=verdana size=1 color=C0C0C0>" +titWIN+ "</font></font>"

	winBORDERCOLOR   	= "#C0C0C0"

	winBORDERCOLORsel	= "#C0C0C0"

	winBGCOLOR    		= "#000000"

	winBGCOLORsel 		= "#4D4B56"

	return openchromeless(theURL, wname, W, H, X, Y, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel)

}



function openchromeless(theURL,wname,W,H,X,Y,NONEgrf,CLOSEdwn,CLOSEup,CLOSEovr,MINIdwn,MINIup,MINIovr,CLOCKgrf,titHTML,titWIN,winBORDERCOLOR,winBORDERCOLORsel,winBGCOLOR,winBGCOLORsel) {

var isie=false

var isv55=false

var iswin=false

if ( navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4 ) {

isie=true

if ( navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5,navigator.appVersion.indexOf("MSIE ")+8) >=5.5 ) isv55=true

}

if ( navigator.userAgent.toLowerCase().indexOf("win")!=-1 ) iswin=true

if (X==null) X=Math.ceil( (window.screen.width-W) / 2 )

if (Y==null) Y=Math.ceil( (window.screen.height-H) / 2 )

if (isie) { H=H+20+3;W=W+2;}

var s=",width="+ W +",height="+ H ;

if (isie && iswin) {

var chromeTIThtml=''+

'<html>\n'+

'<head>\n'+

'<style type="text/css">\n'+

'#crtMOVE {position:absolute;left:0px;top:0px;z-index:2;}\n'+

'#txtTITLE {position:absolute;left:0px;top:0px;width:100%;height:20px;z-index:1;clip:rect(0,100%,20,0);}\n'+

'#btnCLOSE {position:absolute;left:-20px;top:4px;width:11px;height:11px;z-index:3;clip:rect(0,11,11,0);}\n'+

'#btnMINI {position:absolute;left:-20px;top:4px;width:11px;height:11px;z-index:3;clip:rect(0,11,11,0);}\n'+

'#grfCLOCK {position:absolute;left:-20px;top:4px;width:11px;height:11px;z-index:3;clip:rect(0,11,11,0);}\n'+

'</style>\n'+

'<script language="javascript">\n'+

'var imgCLOSEdwn=new Image();imgCLOSEdwn.src="'+ CLOSEdwn +'"\n'+

'var imgCLOSEup=new Image();imgCLOSEup.src="'+ CLOSEup +'"\n'+

'var imgCLOSEovr=new Image();imgCLOSEovr.src="'+ CLOSEovr +'"\n'+

'var imgMINIdwn=new Image();imgMINIdwn.src="'+ MINIdwn +'"\n'+

'var imgMINIup=new Image();imgMINIup.src="'+ MINIup +'"\n'+

'var imgMINIovr=new Image();imgMINIovr.src="'+ MINIovr +'"\n'+

'var CLOCKgrfImg=new Image();CLOCKgrfImg.src="'+ CLOCKgrf +'"\n'+

'document.onselectstart=new Function("return false;")\n'+

'document.ondragstart=new Function("moveWIN();return false;")\n'+

'document.oncontextmenu=new Function("return false;")\n'+

'document.onmousemove=moveWIN\n'+

'winSTATUS="up"\n'+

'function setLAYOUT() {\n'+

'document.all["btnCLOSE"].style.pixelLeft=document.body.clientWidth-18\n'+

'if ( top.mainloaded ) {\n'+

'document.all["grfCLOCK"].style.visibility="hidden"\n'

if (isv55) {

chromeTIThtml +=''+

'document.all["btnMINI"].style.visibility="visible"\n'+

'document.all["btnMINI"].style.pixelLeft=document.body.clientWidth-38\n'

}

chromeTIThtml +=''+

'}\n'+

'else {\n'+

'document.all["btnMINI"].style.visibility="hidden"\n'+

'document.all["grfCLOCK"].style.pixelLeft=document.body.clientWidth-38\n'+

'setTimeout("setLAYOUT()",500)\n'+

'}\n'+

'}\n'+

'function minimizeWIN() {\n'+

'top.window.moveTo(0,-4000)\n'+

'if ( (top.opener) && (!top.opener.closed) ) { top.opener.window.focus();}\n'+

'top.window.blur()\n'+

'}\n'+

'function moveWIN() {\n'+

'if ( winSTATUS=="down") {\n'+

'document.body.bgColor="'+winBGCOLORsel+'"\n'+

'parent.bordeM.document.body.bgColor="'+winBORDERCOLORsel+'"\n'+

'parent.bordeT.document.body.bgColor="'+winBORDERCOLORsel+'"\n'+

'parent.bordeB.document.body.bgColor="'+winBORDERCOLORsel+'"\n'+

'parent.bordeL.document.body.bgColor="'+winBORDERCOLORsel+'"\n'+

'parent.bordeR.document.body.bgColor="'+winBORDERCOLORsel+'"\n'+

'ofx=event.x\n'+

'ofy=event.y\n'+

'winSTATUS="drag"\n'+

'}\n'+

'else if ( winSTATUS=="drag") {\n'+

'px=event.screenX-ofx-1\n'+

'py=event.screenY-ofy-1\n'+

'top.window.x=px\n'+

'top.window.y=py\n'+

'top.window.moveTo(px,py)\n'+

'} else {\n'+

'document.body.bgColor="'+winBGCOLOR+'"\n'+

'parent.bordeM.document.body.bgColor="'+winBORDERCOLOR+'"\n'+

'parent.bordeT.document.body.bgColor="'+winBORDERCOLOR+'"\n'+

'parent.bordeB.document.body.bgColor="'+winBORDERCOLOR+'"\n'+

'parent.bordeL.document.body.bgColor="'+winBORDERCOLOR+'"\n'+

'parent.bordeR.document.body.bgColor="'+winBORDERCOLOR+'"\n'+

'winStatus="up"\n'+

'}\n'+

'}\n'+

'</script>\n'+

'</head>\n'+

'<body onresize="setLAYOUT()" bgcolor='+winBGCOLOR+'>\n'+

'<div id=crtMOVE><img onmousedown="winSTATUS=\'down\';moveWIN()" onmouseup="winSTATUS=\'up\';moveWIN()" border=0 src="'+NONEgrf+'" width=110% height=500></div>\n'+

'<div id=txtTITLE>'+ '<table width=100% height=20 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+titHTML+'</td></tr></table>' +'</div>\n'+

'<div id=btnCLOSE><img name=imgCLOSE src="'+ CLOSEup +'" border=0 width=11 height=11 onmouseover="this.src=imgCLOSEovr.src" onmouseout="btnSTATUS=false;this.src=imgCLOSEup.src" onmouseup="this.src=imgCLOSEup.src" onmousedown="this.src=imgCLOSEdwn.src" onclick="top.window.close()"></div>\n'+

'<div id=btnMINI><img name=imgMINI src="'+ MINIup+'" border=0 width=11 height=11 onmouseover="this.src=imgMINIovr.src" onmouseout="btnSTATUS=false;this.src=imgMINIup.src" onmouseup="this.src=imgMINIup.src" onmousedown="this.src=imgMINIdwn.src" onclick="minimizeWIN()"></div>\n'+

'<div id=grfCLOCK><img name=imgCLOCK src="'+ CLOCKgrf +'" border=0 width=11 height=11></div>\n'+

'<script>setLAYOUT()</script>\n'+

'</body>\n'+

'</html>\n'

var chromeFRMhtml='' +

'<HTML>\n'+

'<HEAD>\n'+

'<TITLE>'+ titWIN +'</TITLE>\n'+

'</HEAD>\n'+

'<script>\n'+

'top.mainloaded=false\n'+

'function generatetitle() {\n'+

'if( window.frames["frmTIT"] && window.frames["bordeL"] && window.frames["bordeB"] && window.frames["bordeR"] && window.frames["bordeM"] ) {\n'+

'frmTIT.document.bgColor="'+ winBGCOLOR +'"\n'+

'frmTIT.document.open()\n'+

'frmTIT.document.write( "'+ quitasaltolinea(chromeTIThtml) +'" )\n'+

'frmTIT.document.close()\n'+

'bordeM.document.bgColor="'+ winBORDERCOLOR +'"\n'+

'bordeL.document.bgColor="'+ winBORDERCOLOR +'"\n'+

'bordeR.document.bgColor="'+ winBORDERCOLOR +'"\n'+

'bordeB.document.bgColor="'+ winBORDERCOLOR +'"\n'+

'bordeT.document.bgColor="'+ winBORDERCOLOR +'"\n'+

'} else {\n'+

'setTimeout("generatetitle()",20)\n'+

'}\n'+

'}\n'+

'top.window.h='+H+'\n'+

'top.window.w='+W+'\n'+

'top.window.x='+X+'\n'+

'top.window.y='+Y+'\n'+

'generatetitle()\n'+

'</script>\n'+

'<frameset onload="top.mainloaded=true" onfocus="top.window.moveTo(top.window.x,top.window.y)" border=0 framespacing=0 frameborder=0 cols="1,100%,1">\n'+

'<frame name=bordeL src="about:blank" scrolling=no noresize>\n'+

'<frameset border=0 framespacing=0 frameborder=0 rows="1,20,1,100%,1">\n'+

'<frame name=bordeT src="about:blank" scrolling=no noresize>\n'+

'<frame name=frmTIT src="about:blank" scrolling=no noresize>\n'+

'<frame name=bordeM src="about:blank" scrolling=no noresize>\n'+

'<frame name=TLmain src="'+theURL+'">\n'+

'<frame name=bordeB src="about:blank" scrolling=no noresize>\n'+

'</frameset>\n'+

'<frame name=bordeR src="about:blank" scrolling=no noresize>\n'+

'</frameset>\n'+

'</HTML>'

var CWIN=window.open( "",wname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s)

CWIN.resizeTo(Math.ceil(W),Math.ceil(H))

CWIN.moveTo(Math.ceil(X),Math.ceil(Y))

CWIN.document.open()

CWIN.document.write( chromeFRMhtml )

CWIN.document.close()

}else{

var CWIN=window.open(theURL,wname,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s,true)

}

CWIN.focus()

return CWIN

}



function quitasaltolinea(txt) {

var salida=txt.toString()

var re=/\\/g;var salida=salida.replace(re,"\\\\");

re=/\//g;var salida=salida.replace(re,"\\\/");

re=/\"/g;var salida=salida.replace(re,"\\\"");

re=/\'/g;var salida=salida.replace(re,"\\\'");

re=/\n/g;var salida=salida.replace(re,"\\n");

return salida

}



function resizeWin(objName,maxX,maxY,speed,delay,win){

	

	/*<Methods>*/

		this.initWin =    rw_initWin;

		this.resizeMe =   rw_resizeMe;

		this.showCoords = rw_showCoords;

		this.updateMe =   rw_updateMe;

		this.write =      rw_write;

		this.getX =       rw_getX;

		this.getY =       rw_getY;

		this.onResize =   rw_onResize;

	/*</Methods>*/

	

	/*<Properties>*/

		if (!objName) this.objName = "rwin"; else this.objName = objName;

		if (!win)     this.win = self;    else this.win = eval(win);

		if (!maxX)    this.maxX = 400;    else this.maxX = maxX;

		if (!maxY)    this.maxY = 300;    else this.maxY = maxY;

		if (!speed)   this.speed = 1/3;   else this.speed = 1/speed;

		if (!delay)   this.delay = 30;    else this.delay = delay;

		this.layer = "coords";

	/*</Properties>*/

}



function rw_onResize(){

	if (document.all){

		if (!this.resizing) this.resizeMe();

		}

}



function rw_initWin(){

	if (document.all){

		this.resizeMe();

		}

	else {

		this.win.resizeTo(this.maxX + 10, this.maxY - 20);

		}

	

}



function rw_resizeMe(){

	this.win.focus();

	this.updateMe();

	}



function rw_showCoords(extra){

	if (this.layer){

		var text = '(' + this.getX() + ',' + this.getY() + ')' + extra;		

		this.write(text)

		}

}



function rw_updateMe(){



	this.resizing = true;

	var x; var y;

	this.showCoords('');

	x = Math.ceil((this.maxX - this.getX()) * this.speed);

	y = Math.ceil((this.maxY - this.getY()) * this.speed);

	if (x == 0 && this.getX() != this.maxX) {

		if (this.getX() > this.maxX) x = -1;

		else  x = 1;

		}

	if (y == 0 && this.getY() != this.maxY){

		if (this.getY() > this.maxY) y = -1;

		else y = 1;

		}

	if (x == 0 && y == 0) {

		this.resizing = false;

    		}

	else {

		top.resizeBy(parseInt(x),parseInt(y))

		setTimeout(this.objName + '.updateMe()',this.delay)

		}

}



function rw_myCeil(temp){

	if (temp == parseInt(temp)) return temp;

	if (temp > 0)

 		return parseInt(temp + .5);

	else return parseInt(temp - .5);

}



function rw_write(text){

	if (document.all && this.win.document.all["coords"]) this.win.document.all["coords"].innerHTML = text

}



function rw_getX(){

	if (document.all) return (this.win.top.document.body.clientWidth + 10)

	else return this.win.top.outerWidth - 12

}



function rw_getY(){

	if (document.all) return (this.win.top.document.body.clientHeight + 29)

	else return this.win.top.outerHeight - 31 

}



function auswahl(x)

{

 if(x == "leer")

 {

   document.forms[0].reset();

   document.forms[0].elements[0].blur();

   parent.frames[2].focus();

   return;

 }

document.gruppe.suchen.value=document.gruppe.ende.value; 

}



function BiWe(id, newSrc) {

    var dasBild = FinDasBild(document, id, 0);

    if (dasBild) {

        dasBild.src = newSrc;

    }

}



function FinDasBild(doc, name, j) {

    var dasBild = false;

    if (doc.images) {

        dasBild = doc.images[name];

    }

    if (dasBild) {

        return dasBild;

    }

    if (doc.layers) {

        for (j = 0; j < doc.layers.length; j++) {

            dasBild = FinDasBild(doc.layers[j].document, name, 0);

            if (dasBild) {

                return (dasBild);

            }

        }

    }

    return (false);

}

