function ImageOpen (url, width, hight)
	{
	window.open (url,"Popup","Width=" + width + ",Height=" + hight + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=yes,toolbar=no");
	}

function PopupLink (bild, align, _width, _hight, width, hight, alt)
	{
	var PopupWidth = 20;
	var PopupHight = 20;

	document.write ("<a href='javascript: ImageOpen(&quot;" + bild +"&quot, ");	//<a href='javascript: PopupOpen("bild",_
	document.write (width + PopupWidth);				//<a href='javascript: ImageOpen("bild", width
	document.write (", ");						//<a href='javascript: ImageOpen("bild", width,_ 
	document.write (hight + PopupHight);				//<a href='javascript: ImageOpen("bild", width, hight
	document.write (")'>");						//<a href='javascript: ImageOpen("bild", width, hight)'>
	document.write ("<img class=pop src='_" + bild + "' align=");	//<img class=pop src='_bild' align=
	document.write (align + " width='");				//<img class=pop src='_bild' align=align width='
	document.write (_width);					//<img class=pop src='_bild' align=align width='_width
	document.write ("' hight='");					//<img class=pop src='_bild' align=align width='_width' hight='
	document.write (_hight);					//<img class=pop src='_bild' align=align width='_width' hight='_hight
	document.write ("' alt='" + alt + "' title='" + alt + "'></A>");//<img class=pop src='_bild' align=align width='_width' hight='_hight' alt='alt' title='alt'></A>
	}

function InfoOpen (url, width, hight)
	{
	window.open (url,"Popup","Width=" + width + ",Height=" + hight + ",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=no");
	}

function PopupInfo (url, text, width, hight)
	{
	document.write ("<A style='color:navy;' HREF='javascript: ");	//<A style="color:navy;" HREF='javascript:_
	document.write ("InfoOpen(&quot;" + url +"&quot, ");		//<A style="color:navy;" HREF='javascript: InfoOpen("url",_
	document.write (width + ", ");					//<A style="color:navy;" HREF='javascript: InfoOpen("url", width,_
	document.write (hight + ")'>" + text + "</A>");			//<A style="color:navy;" HREF='javascript: InfoOpen("url", width, hight)'>text</A>
	}

function startTimer(aTarget, aTime)					// URL (Weiterleitungsziel), Zeit in Sekunden
	{
	var time= new Date();
	var hours= time.getHours();
	var mins= time.getMinutes();
	var secs= time.getSeconds();

	theTarget=aTarget;
	closeTime=hours*3600+mins*60+secs;
	closeTime+=aTime;  
	Timer();
	}

function Timer()
	{
	var time= new Date();
	var hours= time.getHours();
	var mins= time.getMinutes();
	var secs= time.getSeconds();

	curTime=hours*3600+mins*60+secs
	if(curTime>=closeTime)
		{
		document.timer.counter.value = "0 sec.";
		if(theTarget == "/Waldenbuch/index.shtm'")
			parent.location = theTarget
		else
			window.location = theTarget;
		}
	else
		timeLeft();
	}

function timeLeft()
	{
	var speed=1000;

	count = closeTime-curTime;
	document.timer.counter.value = count + " sec."
	window.setTimeout("Timer()",speed)
	}

