function toggle(name,secidstart,secidend)
{
	//if (secidend=='') secidend=0;
	//if (sectionId == null) return;

		for(var i=secidstart;i<=secidend;i++)
		{
			var sectionId = document.getElementById(name + i);

			if (sectionId != null)
			{
				if (sectionId.style.display == '') 
				{
					sectionId.style.display = 'none';
					var ImgSrc = document.getElementById("i" + name + i);		
					ImgSrc.src = "img/plus.gif";
					ImgSrc.alt = "Aufklappen";
					ImgSrc.title = "Aufklappen";
				} 
				else
				{
					sectionId.style.display = '';
					var ImgSrc = document.getElementById("i" + name + i);
					ImgSrc.src = "img/minus.gif";
					ImgSrc.alt = "Zuklappen";
					ImgSrc.title = "Zuklappen";
				}
			}
		}
	
}

function getTime()
{
 myDate = new Date();
 myHour = myDate.getHours();
 myMinute = myDate.getMinutes();
 mySecond = myDate.getSeconds();
 if(myHour < 10){myHour = '0'+myHour;} 
 if(myMinute < 10){myMinute = '0'+myMinute;} 
 if(mySecond < 10){mySecond = '0'+mySecond;}
 zeit = myHour+':'+myMinute+':'+mySecond;
 document.getElementById("CurrentTime").innerHTML = zeit;
 setTimeout("getTime()", 1000);
}

function getOnlineTime()
{
 myOnlineTime = document.getElementById("OnlineTime").innerHTML;
 arrOnTime=myOnlineTime.split(":")
 ownHour = parseInt(arrOnTime[0],10);
 ownMinute = parseInt(arrOnTime[1],10);
 ownSecond = parseInt(arrOnTime[2],10)+1;
 
 if(ownSecond == 60) {ownMinute++;ownSecond=0;}
 if(ownMinute == 60) {ownHour++;ownMinute=0;}
 if(ownHour < 10){ownHour = '0'+ownHour;}
 if(ownMinute < 10){ownMinute = '0' + ownMinute;}
 if(ownSecond < 10){ownSecond = '0' + ownSecond;}
 ownzeit = ownHour+':'+ownMinute+':'+ownSecond;
 document.getElementById("OnlineTime").innerHTML = ownzeit;
 setTimeout("getOnlineTime()", 1000);
}