function _look(nr) {
 if (navigator.appName == "Netscape") {
  if ( document.getElementById ) {
    for ( i=1;i<=5;i++ ) {
      xxx = "mlink" + i;
      yyy = "bg" + i;
      yyy2 = "bgto" + i;
      zzz = "subnav" + i;
      obj=document.getElementById("subsprachen");
      if ( myfollow == 1 && nr == 6) {
        obj.style.visibility = "visible";
      } else if ( myfollow == 1 ) {
        obj.style.visibility = "hidden";
      }
      if ( i != nr ) {
        obj=document.getElementById(xxx);
        obj.style.color="ffffff";
        obj=document.getElementById(yyy);
        obj.style.backgroundColor="084684";
        obj=document.getElementById(yyy2);
        obj.style.backgroundColor="5983AD";
        obj=document.getElementById(zzz);
        obj.style.visibility="hidden";
      } else {
        obj=document.getElementById(xxx);
        obj.style.color="084684";
        obj=document.getElementById(yyy);
        obj.style.backgroundColor="ffffff";
        obj=document.getElementById(yyy2);
        obj.style.backgroundColor="ffffff";
        obj=document.getElementById(zzz);
        obj.style.visibility="visible";
      }
    }
    if ( nr == 0 ) {
      navpointon();
    }
  } else {
    for ( i=1;i<=5;i++ ) {
      zzz = "subnav" + i;
      if ( myfollow == 1 && nr == 6) {
        document.subsprachen.visibility = "visible";
      } else if ( myfollow == 1 ) {
        document.subsprachen.visibility = "hidden";
      }
      if ( i != nr ) {
        eval('document["' + zzz + '"].visibility="hidden"');
      } else {
        eval('document["' + zzz + '"].visibility="visible"');
      }
    }
  }
 } else{
   for ( i=1;i<=5;i++ ) {
     xxx = "mlink" + i;
     yyy = "bg" + i;
     yyy2 = "bgto" + i;
     zzz = "subnav" + i;
     if ( myfollow == 1 && nr == 6) {
       document.all.subsprachen.style.visibility = "visible";
     } else if ( myfollow == 1 ) {
       document.all.subsprachen.style.visibility = "hidden";
     }
     if ( i != nr ) {
       eval('document.all["' + xxx + '"].style.color="ffffff"');
       eval('document.all["' + yyy + '"].style.backgroundColor="084684"');
       eval('document.all["' + yyy2 + '"].style.backgroundColor="5983AD"');
       eval('document.all["' + zzz + '"].style.visibility="hidden"');
     } else {
       eval('document.all["' + xxx + '"].style.color="084684"');
       eval('document.all["' + yyy + '"].style.backgroundColor="ffffff"');
       eval('document.all["' + yyy2 + '"].style.backgroundColor="ffffff"');
       eval('document.all["' + zzz + '"].style.visibility="visible"');
     }
   }
   if ( nr == 0 ) {
     navpointon();
   }
 }
}
function _on(nr) {
 xxx = "msublink" + nr;
 yyy = "bgsub" + nr;
 if (navigator.appName == "Netscape") {
  if ( document.getElementById ) {
    obj=document.getElementById(xxx);
    obj.style.color="ffffff";
    obj=document.getElementById(yyy);
    obj.style.backgroundColor="6B90B5";
  }
 } else {
   eval('document.all["' + xxx + '"].style.color="ffffff"');
   eval('document.all["' + yyy + '"].style.backgroundColor="6B90B5"');
 }
}
function _off(nr) {
 xxx = "msublink" + nr;
 yyy = "bgsub" + nr;
 if (navigator.appName == "Netscape") {
  if ( document.getElementById ) {
    obj=document.getElementById(xxx);
    obj.style.color="084684";
    obj=document.getElementById(yyy);
    obj.style.backgroundColor="ffffff";
  }
 } else {
   eval('document.all["' + xxx + '"].style.color="084684"');
   eval('document.all["' + yyy + '"].style.backgroundColor="ffffff"');
 }
}
function set_lang() {
 if (navigator.appName == "Netscape") {
   if ( document.getElementById ) {
     links = ((window.innerWidth - 742)/2)-8;
     obj=document.getElementById("sprachen");
     obj.style.left = links;
  obj.style.visibility = "visible";
     obj=document.getElementById("subsprachen");
     obj.style.left = links + 22;
   } else {
     links = ((window.innerWidth - 742)/2)-9;
     document.sprachen.left = links;
  document.sprachen.visibility = "visible";
     document.subsprachen.left = links + 22;
   }
 } else {
   links = ((document.all.content.offsetWidth - 742)/2)-10;
   document.all.sprachen.style.left = links;
   document.all.sprachen.style.visibility = "visible";
   document.all.subsprachen.style.left = links + 22;
 }
}
function nn4() {
 if ( navigator.appName == "Netscape" && !document.getElementById ) {
   window.history.go(0);
 }
}
function navpointon() {
 if ( rubrik > 0 ) {
   xxx = "mlink" + rubrik;
   yyy = "bg" + rubrik;
   if (navigator.appName == "Netscape") {
     if ( document.getElementById ) {
       obj=document.getElementById(xxx);
       obj.style.color="084684";
       obj=document.getElementById(yyy);
       obj.style.backgroundColor="ffffff";
     }
   } else {
     eval('document.all["' + xxx + '"].style.color="084684"');
     eval('document.all["' + yyy + '"].style.backgroundColor="ffffff"');
   }
 }
}
function E1Nav() {
 if (navigator.appName == "Netscape") {
   if ( document.getElementById ) {
     links = ((window.innerWidth - 742)/2)-8;
     obj=document.getElementById("e1nav");
     obj.style.left = links + 183;
  obj.style.visibility = "visible";
     obj=document.getElementById("subnav1");
     obj.style.left = links + 108;
     obj=document.getElementById("subnav2");
     obj.style.left = links + 248; //183;
     obj=document.getElementById("subnav3");
     obj.style.left = links + 320;
     obj=document.getElementById("subnav4");
     obj.style.left = links + 48;
     obj=document.getElementById("subnav5");
     obj.style.left = links + 242; //0;
   } else {
     posleft = ((window.innerWidth - 742)/2)-9;
     document.e1nav.left = posleft + 183;
  document.e1nav.visibility = "visible";
     document.subnav1.left = posleft + 108;
     document.subnav2.left = posleft + 248; //183;
     document.subnav3.left = posleft + 320;
     document.subnav4.left = posleft + 48;
     document.subnav5.left = posleft + 242; //0;
   }
 } else {
   links = ((document.all.content.offsetWidth - 742)/2)-10;
   document.all.e1nav.style.left = links + 183;
   document.all.e1nav.style.visibility = "visible";
   document.all.subnav1.style.left = links + 108;
   document.all.subnav2.style.left = links + 248; //183;
   document.all.subnav3.style.left = links + 320;
   document.all.subnav4.style.left = links + 48;
   document.all.subnav5.style.left = links + 242; //0;
 }
}
function check1() {
 var msg = "I campi contrassegnati con * sono assolutamente necessari per la successiva elaborazione dei dati.\n\n";
 var error = false;
 ok1 = document.form1.feld9.value.match(/@.*@|\.\.|@\.|\.@|^\./);
 ok2 = document.form1.feld9.value.match(/^.+\@\[?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,4}|[0-9]{1,3}\]?$/);
 if ( ok1 != null || document.form1.feld9.value != ok2 ) {
    error = true;
 }
 if (error) {
   alert(msg);
 } else {
   document.form1.action = "/cgi-bin/bb_contact.pl";
   document.form1.submit();
 }
}
function check2() {
 var msg = "I campi contrassegnati con * sono assolutamente necessari per la successiva elaborazione dei dati.\n\n";
 var error = false;
 if (document.form1.feld1.value == "" || document.form1.feld1.value == " " ) {
    error = true;
 }
 if (document.form1.feld2.value == "" || document.form1.feld2.value == " " ) {
    error = true;
 }
 if (document.form1.feld5.value == "" || document.form1.feld5.value == " " ) {
    error = true;
 }
 if (document.form1.feld6.value == "" || document.form1.feld6.value == " " ) {
    error = true;
 }
 if (document.form1.feld7.value == "" || document.form1.feld7.value == " " ) {
    error = true;
 }
 if (document.form1.feld8.value == "" || document.form1.feld8.value == " " ) {
    error = true;
 }
 if (error) {
   alert(msg);
 } else {
   document.form1.action = "/cgi-bin/bb_contact.pl";
   document.form1.submit();
 }
}