// JavaScript Document

function addLink(text)
{ 
text.value+='<url="http://">Link</url>';
} 

function addStrong(text)
{ 
text.value+="<b>gefetteter Text</b>";
} 

function addEm(text)
{ 
text.value+="<i>kursiver Text</i>";
} 

function addUnderline(text)
{ 
text.value+="<u>unterstrichener Text</u>";
} 

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

function oeffnen(id) {
 document.getElementById(id).style.display='block';
    }
	
function schliessen(){
 document.getElementById("eins").style.display='none';
 document.getElementById("zwei").style.display='none';
 document.getElementById("drei").style.display='none';
 document.getElementById("vier").style.display='none';
}
