function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
// MouseOver
function Over(imgName) {
 if (document.images) {
  document.images[imgName].src = menuOver[imgName].src;
 }
}

// MouseOut
function Off(imgName) {
 if (document.images) {
  document.images[imgName].src = menuOff[imgName].src;
 }
}

function Show(ebene, bild, bilddb) {
 if (document.getElementById) {
  document.getElementById(ebene).style.display="inline";
 }else{
  if (bild!='') {
   popup('popup.asp?bild=' + bild);
  }else if(bilddb!='') {
   popup('popup.asp?' + bilddb);
  }
 }
}

function Hide(ebene) {
 if (document.getElementById) {
  document.getElementById(ebene).style.display="none";
 }
}

zoom_win=null;
function popup(ziel) {
 zoom_win=window.open(ziel,"zoom","toolbar=0,directories=0,location=0,resizable=1,menubar=0,scrollbars=0,status=0,width=10,height=10");
 if(zoom_win != null) {
  if(zoom_win.opener == null)zoom_win.opener=self;
  } else {
      alert("Fehler");
 }
 if(zoom_win.focus != null)zoom_win.focus();
}


function sicher() {
var antwort;
antwort=confirm("Sind Sie sicher, dass Sie den Formularinhalt löschen wollen?");
return antwort;
}

function formtest() {
var von, nachricht, email, affe, punkt, i;
von=document.form.von.value;
nachricht=document.form.nachricht.value;
email=document.form.Mail.value;

affe=0;
punkt=0;
for (i=0; i<email.length; i++) {
if (email.charAt(i)=="@") {
affe=1;
}
if (email.charAt(i)==".") {
punkt=1;
}
}
if (affe!=1 || punkt!=1 || email.length<7) {
alert("Das ist keine gültige E-Mail-Adresse!");
document.form.Mail.focus();
document.form.Mail.select();
return false;
}
}
