function toggle(Nr) {
 pic="pic"+Nr;
 txt="Kap"+Nr;
 if(document.getElementById){
   Bild=document.getElementById(pic);
   Text= document.getElementById(txt).style;
   if (Text.display == "none"){
     Text.display = "block";
     Bild.src="pic/minus.gif"}
   else {
     Text.display = "none"
     Bild.src="pic/plus.gif"}
}}

function HideAll(Anz) {
  if(document.getElementById){
    for (var i=1; i<= Anz; i++){
      pic="pic"+i;
      txt="Kap"+i;
      Bild=document.getElementById(pic);
      Text= document.getElementById(txt).style;
      Text.display = "none";
      Bild.src="pic/plus.gif"}
}}

function ShowAll(Anz) {
  if(document.getElementById){
    for (var i=1; i<= Anz; i++){
      pic="pic"+i;
      txt="Kap"+i;
      Bild=document.getElementById(pic);
      Text= document.getElementById(txt).style;
      Text.display = "block";
      Bild.src="pic/minus.gif"}
}}

function toggleAll(Anz) {
 if(document.getElementById){
   vh= document.getElementById("Kap1").style.display;
   if (vh == "none"){
     ShowAll(Anz)}
   else {
     HideAll(Anz)}
}}

