function bringBackBlinky(swi)
{spe=500;na=document.all.tags("blink");if(swi==1)
{sho="visible";swi=0;}
else
{sho="hidden";swi=1;}
for(i=0;i<na.length;i++)
{na[i].style.visibility=sho;}
setTimeout("bringBackBlinky()",spe);}
function blinkit(){intrvl=0;for(nTimes=0;nTimes<10;nTimes++){intrvl+=200;setTimeout("document.bgColor='#0000FF';",intrvl);intrvl+=200;setTimeout("document.bgColor='#FFFFFF';",intrvl);}}
function aktionSenden(page){var inputAktion=document.createElement("INPUT");inputAktion.type="hidden";inputAktion.value=page;inputAktion.name="page";inputAktion.id="page";document.getElementById("hiddenForm").appendChild(inputAktion);document.getElementById("hiddenForm").submit();}
function aktionSenden(page,cat){var hiddenForm=document.getElementById("hiddenForm");var pageInput=document.getElementById("page");pageInput.value=page;var catInput=document.getElementById("cat");catInput.value=cat;hiddenForm.submit();}
function chooseField(id,sender,oldClass,newClass){for(i=0;i<=3;i++){if(id=="text"+i){sichtbarkeit(id,sender,oldClass,newClass)}
else{ele=document.getElementById("text"+i);if(ele.style.display!="none"){ele.style.display="none";document.getElementById("buttontext"+i).className=oldClass;}}}}
function sichtbarkeit(id,sender,oldClass,newClass){var ele=document.getElementById(id);if(ele.style.display=="none")
{ele.style.display="block";if(sender!=null)
sender.className=newClass;}else{ele.style.display="none";if(sender!=null)
sender.className=oldClass;}}
function switchStyle(thisID,id,sheet)
{document.getElementById(id).style.backgroundColor=sheet;document.getElementById(thisID).textContent=thisID+" : "+sheet;document.Formular.User.value="";}
function elementFaderByName(toFade,maxHeight,link,newName,orgName)
{if(link.name==newName){link.name=orgName;fadeIn(toFade);}else{link.name=newName;fadeOut(toFade,0,maxHeight);}}
function elementfader(das,maxHeight,link,newName,orgName)
{if(link.firstChild.nodeValue==newName){link.firstChild.nodeValue=orgName;fadeIn(das);}else{link.firstChild.nodeValue=newName;fadeOut(das,0,maxHeight);}}
function fadeOut(das,height,maxHeight)
{height+=2;if(height<=maxHeight){document.getElementById(das).style.height=height+'px';window.setTimeout(function(){fadeOut(das,height,maxHeight)},10);}}
function fadeIn(das)
{var height=document.getElementById(das).style.height;height=height.substring(0,height.indexOf("px"));height-=2;if(height>=0){document.getElementById(das).style.height=height+'px';window.setTimeout(function(){fadeIn(das,height)},10);}}
