
		function OnClickSwitch (swtch)
		{	
			block = eval("FOLDER" + swtch.getAttribute("ID", 2).substring(6));
			// CB 20.2.2008 neuer Teil
		    //memFieldName = "MEMFIELD" + swtch.getAttribute("ID", 2).substring(6);
		    //memField = document.all.item(memFieldName);
		    
				//alert(swtch.src);
				//alert(block.innerHTML);
			if (block.innerHTML == "") return;
			
			if (block.style.getAttribute("display", 2) == "none")
			{
				block.style.setAttribute ("display", "block", false);
				swtch.src = "images/verz/list_minus.gif";
    			// CB 20.2.2008 neuer Teil
    			//memField.value = "block";
			}
			else
			{
				block.style.setAttribute ("display", "none", false);
				swtch.src = "images/verz/list_plus.gif";	
    			// CB 20.2.2008 neuer Teil
    			//memField.value = "none";
			}
			
		    
		}
		
				
// Function OnClickLink wir im Moment nicht verwendet! 

		function OnClickLink (link)
		{
			if (link == null) return;

			// letzten aktiven Link wieder normal anzeigen
/*
			if (ID_active != null)
			{

				var link_last = eval("LINK" + ID_active);

				if (typeof(link_last) != "undefined")
				{
					link_last.style.removeAttribute ("backgroundColor");
					link_last.style.removeAttribute ("color");
				}
			}

			// neu aktiven Link merken und hervorheben

			ID_active = link.getAttribute("ID", 2).substring(4);

			if (ID_active == null) return;

			link.style.setAttribute ("backgroundColor", LIST_SELECTBACKCOLOR, false);
			link.style.setAttribute ("color", LIST_SELECTCOLOR, false);

			// die Parent Elemente durchgehen und sicherstellen, daß eh alle FOLDER-DIVs sichtbar sind
*/
			var obj = link;
			
			while ((obj = obj.parentElement) != null)
			{
			
				if (obj.tagName == "DIV" &&
					obj.className == "VERZ" &&
					obj.style.getAttribute("display", 2) == "block")
				{
				alert("bin Da!" + ", " + obj.getAttribute("ID", 2).substring(6) + " , " + z);
					swtch = eval("SWITCH" + obj.getAttribute("ID", 2).substring(6));
					OnClickSwitch(swtch);
				}
			}

			// zu URL gehen
/*			if (ID_active.substring(0,5) == "I___I")//Klaus 20.3.2003
			{
				var mailid = ID_active.substring(5).replace(/I___I/g,"%");//Klaus 20.3.2003
*/

//			if (ID_active.charAt(0) == "_")
			if( ID_active_IsBeitrag( ) )
			{
//				var mailid = ID_active.substring(1).replace(/_/g, "%");
				var mailid = BeitragID_FromID(ID_active);

				var cmd = "ForumFile.asp?MAILID=" + mailid;
				if( eval( "LINK" + ID_active ).style.getAttribute("twReloadAfterClick") == "true")
				{
					cmd += "&RELOADFOLDER=TRUE";
				}
				else
					cmd += "&RELOADFOLDER=FALSE";
				parent.FORUM_FILE_FRAME.location = cmd;
			}
		}	