function zeigeEbene()
{ var i, visStr, args, theObj; args = zeigeEbene.arguments; 
for (i=0; i<(args.length-2); i+=3) { visStr = args[i+2]; if (navigator.appName 
== 'Netscape' && document.layers != null) { theObj = eval(args[i]); if (theObj) 
theObj.visibility = visStr; } else if (document.all != null) { if (visStr == 'show') 
visStr = 'visible'; if (visStr == 'hide') visStr = 'hidden'; theObj = eval(args[i+1]); 
if (theObj) theObj.style.visibility = visStr; } } } 

function DoppelFrame(URL1,F1,URL2,F2) 
{ parent.frames[F1].location.href=URL1; parent.frames[F2].location.href=URL2; 
}

function textneu(urltexte)
{parent.texte.location.href = urltexte;}

function pflege0()
{ var password = 'Bitte geben Sie Ihr Passwort ein.'
password = prompt('Ihr Passwort:','');
window.open("intern/"+ password + ".htm",'xxx','width=650,height=600,fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');}

function pflege1()
{location.href =("neu.htm"); }

function pflegeTopFrame()//öffnet fenster als top-frame
{ var password = 'Bitte geben Sie Ihr Passwort ein.'
password = prompt('Ihr Passwort:','');
location.href = "intern/" + password + ".htm"; }


function anpassen()
{
window.resizeTo(x,y);
}

var delay=0;
function moveit(was, startx, starty, endx, endy, steps, wait)
{
    if(wait && wait>0)
        setTimeout('moveit("'+was+'",'+startx+','+starty+','+endx+','+endy+','+steps+','+(wait-1)+')', delay);
    else
    {
        if(document.layers)//ns
        {
            document.layers[was].left=startx;
            document.layers[was].top=starty;
        }
        else//msie
        {
            document.all[was].style.left=startx;
            document.all[was].style.top=starty;
        }

        startx+=(endx-startx)/steps;
        starty+=(endy-starty)/steps;

        if(steps>0)
            setTimeout('moveit("'+was+'",'+startx+','+starty+','+endx+','+endy+','+(steps-1)+')', delay);
    }
}


var splashWin, autoCloseTimeoutHandle, ontopIntervalHandle;

function launchSplashWin(contentType, contentString, width, height, left, top, autoCloseTime) {

	var w = window.screen.width;
	var h = window.screen.height;
	var l = (left != null) ? left : (w-width)/2;
	var t = (top != null) ? top : (h-height)/2;
	
	var uri = (contentType.toLowerCase() == "uri") ? contentString : "";
	
	splashWin = window.open(uri, '_splash', 'fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' );

	splashWin.blur();	// Hide while updating
	window.focus();
	
	splashWin.resizeTo(width,height);
	splashWin.moveTo(l, t);

	if (contentType.toLowerCase() == "string") {
		var swd = splashWin.document;
		
		swd.open();
		swd.write(contentString);
		swd.close();
	}

	splashWin.focus();
	
	ontopIntervalHandle = splashWin.setInterval("window.opener.splashWin.focus();", 50);
	splashWin.document.body.onbeforeunload = function() {
		// Splash is being closed. no need to close it again
		window.clearInterval(autoCloseTimeoutHandle);
		window.onbeforeunload = null;
	};
	
	splashWin.document.body.onload = function() {splashWin.setInterval("window.opener.splashWin.focus();", 50);};
	
	window.clearTimeout(autoCloseTimeoutHandle);	// in case some one calls this twice	
	if (autoCloseTime != null && autoCloseTime > 0) {
		autoCloseTimeoutHandle = window.setTimeout("splashWin.close()", autoCloseTime);
	}
	
	window.onbeforeunload = function() {splashWin.close();};	// Close splash when this page is unloaded
}
