function chkFormular ()
{
  if (document.anmeldung.vorname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.anmeldung.vorname.focus();
    return false;
  }
  if (document.anmeldung.nachname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.anmeldung.nachname.focus();
    return false;
  }
  if (document.anmeldung.adresse.value == "") {
    alert("Bitte Ihre Adresse eingeben!");
    document.anmeldung.adresse.focus();
    return false;
  }
  if (document.anmeldung.plz.value == "") {
    alert("Bitte Ihre Postleitzahl eingeben!");
    document.anmeldung.plz.focus();
    return false;
  }
  if (document.anmeldung.ort.value == "") {
    alert("Bitte Ihren Wohnort eingeben!");
    document.anmeldung.ort.focus();
    return false;
  }
  if (document.anmeldung.mail.value == "") {
    alert("Bitte Ihre E-Mail-Adresse eingeben!");
    document.anmeldung.mail.focus();
    return false;
  }
  if (document.anmeldung.mail.value.indexOf("@") == -1) {
    alert("Keine E-Mail-Adresse!");
    document.anmeldung.mail.focus();
    return false;
  }
  //if (document.anmeldung.Alter.value == "") {

  //  alert("Bitte Ihr Alter eingeben!");
  //  document.anmeldung.Alter.focus();
  //  return false;
  /*}
  var chkZ = 1;
  for (i = 0; i < document.anmeldung.Alter.value.length; ++i)
    if (document.anmeldung.Alter.value.charAt(i) < "0" ||
        document.anmeldung.Alter.value.charAt(i) > "9")
      chkZ = -1;
  if (chkZ == -1) {
    alert("Altersangabe keine Zahl!");
    document.anmeldung.Alter.focus();
    return false;
  }*/
}

function browserwindow () { 
      var l_weite; 
      var r_weite;
      var footer_hoehe;
      var footer_dif = 148;
      
      if  (Weite >= 1000) {    
            l_weite = Weite-1000;
            l_weite = l_weite / 2;
            r_weite = l_weite + 990;
            //alert (r_weite+"px");
      }
      else {
            l_weite= 0; r_weite = "1000";
      }
      
      document.getElementById('div_right').style.width = l_weite+"px";
      document.getElementById('div_right').style.left = r_weite+"px";
      document.getElementById('div_left').style.width = l_weite+"px";
      
      document.getElementById('div_header').style.left = l_weite+"px";
      document.getElementById('div_center').style.left = l_weite+"px";
      document.getElementById('div_footer').style.left = l_weite+"px";
      
      footer_hoehe = document.getElementById('div_inhalt').offsetHeight; 
      if (document.getElementById('spalte_rechts').offsetHeight > footer_hoehe) footer_hoehe = document.getElementById('spalte_rechts').offsetHeight;
      if (document.getElementById('menue_container').offsetHeight > footer_hoehe) footer_hoehe = document.getElementById('menue_container').offsetHeight;
      if (footer_hoehe < 490) footer_hoehe = 490;
      
 	if (document.getElementById('spalte_rechts').style.height>0 && document.getElementById('spalte_rechts').style.height>0){
 		if (navigator.appName == "Microsoft Internet Explorer") document.getElementById('spalte_rechts').style.height = footer_hoehe+"px";
 		else document.getElementById('spalte_rechts').style.minHeight = footer_hoehe+"px";
 	}
 	
 	var menue_hoehe;
 	if (navigator.appName == "Microsoft Internet Explorer") menue_hoehe=footer_hoehe-document.getElementById('menue_container').offsetHeight+23;
 	else menue_hoehe=footer_hoehe-document.getElementById('menue_container').offsetHeight+4;
 	
 	document.getElementById('menue_spacer2').style.height = menue_hoehe+"px";
 	
 	footer_hoehe = footer_hoehe + footer_dif;
      document.getElementById('div_footer').style.top = footer_hoehe+"px";
}
function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

