function MGVCookieHolen () {
   var Wert = "";
   if (document.cookie) {
      var Wertstart = document.cookie.indexOf("=") + 1;
      var Wertende = document.cookie.indexOf(";");
      if (Wertende == -1)
         Wertende = document.cookie.length;
         Wert = document.cookie.substring(Wertstart, Wertende);
      }
   return Wert;
   }

function MGVCookieSetzen (Bezeichner, Wert, Verfall) {
   var jetzt = new Date();
   var Auszeit = new Date(jetzt.getTime() + Verfall);
   document.cookie = Bezeichner + "=" + Wert + "; expires=" + Auszeit.toGMTString() + ";";
   }

function MGVCookieZaehler () {
   var Verfallszeit = 1000 * 60 * 30;
   var Anzahl = MGVCookieHolen();
   var Zaehler = 0;
   if (Anzahl != "") 
      Zaehler = parseInt(Anzahl);
   Zaehler = Zaehler + 1;
   MGVCookieSetzen("Zaehler", Zaehler, Verfallszeit);
   return (Zaehler);
   }

function PopUp (Sofort) {
   if (Sofort == false && navigator.cookieEnabled == true) 
      var x = MGVCookieZaehler();
   else 
      var x = 0;
   if (Sofort == true || x < 2) 
      window.open("../PopUp.htm", "PopUp", "width=420,height=320,left=200,top=150,menubar=no,toolbar=no,statusbar=no,locationbar=no" );
   }

function goTOP () {
   window.scrollTo(0, 0);
   }

function goBottom () {
   window.scrollTo(0, 9000);
   }

function goBack () {
   history.back();
   }

function goNext () {
   history.forward(); 
   }

function Archiv(Typ, Hoehe, Jahr) {
   Inhalt = ("Archiv_" + Typ + "/" + Typ + "_" + Jahr +".htm");
   document.getElementById("JahrID").firstChild.data = (Jahr);
   document.getElementById("ArchivID").src = (Inhalt);
   document.getElementById("ArchivID").height = (Hoehe);
   }