<!-- vor alten Browsern verstecken
/*
    Copyright (c) LHM-AfID 2002.
*/

function navigate(kreis,stibez,lart,sart,ausart)
  {
      /* alert('Hihi!'); */
      switch (kreis)
         {
         case "":
            break;
         default:
            document.f1.KREIS.value = kreis;
            break;
         }

      switch (stibez)
         {
         case "":
            break;
         case "0":
            document.f1.STIBEZ.value = "";
            break;
         case "x":
            document.f1.STIBEZ.value = "";
            break;
         default:
            document.f1.STIBEZ.value = stibez;
            break;
         }

      switch (lart) /* Lokalart */
         {
         case "":
            break;
         default:
            document.f1.LART.value = lart;
            break;
         }

      switch (sart) /* Stimmart */
         {
         case "":
            break;
         default:
            document.f1.SART.value = sart;
            break;
         }

      switch (ausart) /* Auskunftsart */
         {
         case "":
            break;
         default:
            document.f1.AUSART.value = ausart;
            break;
         }

        /* Alle Werte sichern */
      wart = document.f1.WART.value;
      if (document.f1.KREIS.value == "000")
         {
         kreis = "0";
         }
       else
         {
         kreis = document.f1.KREIS.value;
         }
      stibez = document.f1.STIBEZ.value;
      lart = document.f1.LART.value;
      lart = lart.toUpperCase();
      sart = document.f1.SART.value;
      ausart = document.f1.AUSART.value;
      ausart = ausart.toUpperCase();

      /* Wenn irgendwas auf Stibezebene gesucht wird, ist Kreis immer 000 */
      if (stibez != "") {
         kreis = "0";
         }



      /* Aufbau der zu ladenden Seite */
      /* >>> Allgemeiner Teil */
        href = "H" + wart + "." + kreis;

      /* >>> Stibez optional */
      if (stibez != "0" && stibez != "")
         {
          href = href + "." +stibez;
          }

      /* >>> Auswahl */
      href = href + "." +ausart;


      /* >>> Lokal-Art */


      if (ausart == "STIBEZAUS") {
         sart = "2"; /* geändert am 10.08.09, Rösler, alter Wert: "1" */
         lart = "G";
         }


      href = href + "-" +lart;


      /* >>> Stimmart-Art */

      href = href + "." +sart;


      href = href + ".html";

      /* wg. HOST-ENTER alles in Kleinschreibung
      /* alert("lade Seite: " + href); */
      href = href.toLowerCase();

      /*alert("lade Seite: " + href); */

      /* Seite laden */
      /*alert("lade Seite: " + href); */
      document.location.href = href;
      return;
  }


function anz(stbz_klar,stabez)
  {

        document.f1.STABEZKLAR.options[document.f1.STABEZKLAR.selectedIndex].text = stbz_klar;
   }


function send_kreis(kreis)
  {

        navigate(kreis,'','','','alpha');

  }


function Anim(Bildname, Dateiname) {
        if (document.images) {
                document.images[Bildname].src =  Dateiname + '.gif';
                  }
}

function readSelect()
  {
   navigate(document.f1.staBezKlar.options[document.f1.staBezKlar.selectedIndex].value,'','','','alpha');
  }

function set_Stibez(selectionbox)
  {

       var stibez;

       switch (selectionbox)
        {
         case "SBBB":
         stibez = document.f1.SBBB.options[document.f1.SBBB.selectedIndex].value;
            break;
         case "SBNB":
         stibez = document.f1.SBNB.options[document.f1.SBNB.selectedIndex].value;
            break;
         default:
            break;
         }

        navigate('000',stibez,'','','alpha');
  }


/* -->  */
