function Grafik() {

  auswahl = document.forms[0].elements[1].selectedIndex;
  document.images[0].src = document.forms[0].elements[1].options[auswahl].value;
}

/*funktion Navigationsebenen*/
sfHover = function() {
	var sfEls = document.getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
/*Navigationseben ende--------------------*/

/*Neues Fenster formular*/
function form() 
{ 
 var breite=850; 
 var hoehe=700; 
 var positionX=((screen.availWidth / 2) - breite / 2); 
 var positionY=((screen.availHeight / 2) - hoehe / 2); 
 var url='form/form.htm'; 
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0'); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 pop.location=url; 
 }
 
 /*Neues Fenster formular*/
function form_index() 
{ 
 var breite=850; 
 var hoehe=700; 
 var positionX=((screen.availWidth / 2) - breite / 2); 
 var positionY=((screen.availHeight / 2) - hoehe / 2); 
 var url='../form/form.htm'; 
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0'); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 pop.location=url; 
 }

 
 /*pruefung Formulareingaben--------*/
 
 function chkFormular () {
  if (document.Formular.versender.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.Formular.versender.focus();
    return false;
  }
  if (document.Formular.strasse.value == "") {
    alert("Bitte Ihre Straße eingeben!");
    document.Formular.strasse.focus();
    return false;
  }
  if (document.Formular.ort.value == "") {
    alert("Bitte Ihren Wohnort eingeben!");
    document.Formular.ort.focus();
    return false;
  }
  if (document.Formular.plz.value == "") {
    alert("Bitte Ihre PLZ eingeben!");
    document.Formular.Alter.focus();
    return false;
  }
  var chkZ = 1;
  for (i = 0; i < document.Formular.plz.value.length; ++i)
    if (document.Formular.plz.value.charAt(i) < "0" ||
        document.Formular.plz.value.charAt(i) > "9")
      chkZ = -1;
  if (chkZ == -1) {
    alert("Das ist keine Zahl!");
    document.Formular.plz.focus();
    return false;
  }  
  if (document.Formular.mail.value == "") {
    alert("Bitte Ihre E-Mail-Adresse eingeben!");
    document.Formular.mail.focus();
    return false;
  }
  if (document.Formular.mail.value.indexOf("@") == -1) {
    alert("Keine E-Mail-Adresse!");
    document.Formular.mail.focus();
    return false;
  }
  if (document.Formular.frage.value == "") {
    alert("Sie haben die Anfrage vergessen!");
    document.Formular.frage.focus();
    return false;
  }
}

/*pruefung ende Formulareingaben---------*/
