// Kontaktformularcheck

function Kontakt()
{
 if(document.kontaktformular.name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.kontaktformular.name.focus();
   return false;
  }
if((document.kontaktformular.email.value) && (document.kontaktformular.email.value.indexOf("@") == -1 || document.kontaktformular.email.value.indexOf(".") == -1)){ 
   alert("Bitte geben Sie eine gültige E-Mail-Adresse an.");
   document.kontaktformular.email.focus();
   return false;
   }
if(document.kontaktformular.text.value == "") {
   alert("Bitte einen Kommentar eingeben!");
   document.kontaktformular.text.focus();
   return false;
  }
}
// ende Kontaktformular





// Adminlogincheck

function AdminChecker()
{
 if(document.adminlogin.username.value == "")  {
   alert("Bitte Ihren Namen eingeben!");
   document.adminlogin.username.focus();
   return false;
  }
 if(document.adminlogin.passwort.value == "")  {
   alert("Bitte Ihr Passwort eingeben!");
   document.adminlogin.passwort.focus();
   return false;
  }
}
// ende Adminlogincheck





// Guestbookformularcheck

function BuchChecker()
{
 if(document.buch.name.value == "")  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.buch.name.focus();
   return false;
  }
if((document.buch.mail.value) && (document.buch.mail.value.indexOf("@") == -1 || document.buch.mail.value.indexOf(".") == -1)){ 
   alert("Bitte geben Sie eine gültige E-Mail-Adresse an.");
   document.buch.mail.focus();
   return false;
   }
if(document.buch.text.value == "") {
   alert("Bitte einen Kommentar eingeben!");
   document.buch.text.focus();
   return false;
  }
}
// ende Guestbookformularcheck




// Popup START

function PopUp(file, breite, hoehe) {
  var screenX = screen.width;
  var screenY = screen.height;
  var x = (screenX - breite) / 2;
  var y = (screenY - hoehe) / 2;

  var win = window.open(file,'PopUp','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + breite + ', height=' + hoehe + '');

  if (navigator.appName.indexOf("Netscape") != -1) win.resizeTo(breite, hoehe);
  win.moveTo(x, y);
}

// Popup ENDE




// Bildwechsel Navigation START

homeOn = new Image();
homeOn.src = "staticimages/home-over.jpg";
homeOff = new Image();
homeOff.src = "staticimages/home-off.jpg";

firmaOn = new Image();
firmaOn.src = "staticimages/firma-over.jpg";
firmaOff = new Image();
firmaOff.src = "staticimages/firma-off.jpg";

boutiqueOn = new Image();
boutiqueOn.src = "staticimages/boutique-over.jpg";
boutiqueOff = new Image();
boutiqueOff.src = "staticimages/boutique-off.jpg";

reparaturenOn = new Image();
reparaturenOn.src = "staticimages/reparaturen-over.jpg";
reparaturenOff = new Image();
reparaturenOff.src = "staticimages/reparaturen-off.jpg";

occersatzteileOn = new Image();
occersatzteileOn.src = "staticimages/occersatzteile-over.jpg";
occersatzteileOff = new Image();
occersatzteileOff.src = "staticimages/occersatzteile-off.jpg";

aixamOn = new Image();
aixamOn.src = "staticimages/aixam-over.jpg";
aixamOff = new Image();
aixamOff.src = "staticimages/aixam-off.jpg";

designOn = new Image();
designOn.src = "staticimages/design-over.jpg";
designOff = new Image();
designOff.src = "staticimages/design-off.jpg";

restaurationOn = new Image();
restaurationOn.src = "staticimages/restauration-over.jpg";
restaurationOff = new Image();
restaurationOff.src = "staticimages/restauration-off.jpg";

kontaktOn = new Image();
kontaktOn.src = "staticimages/kontakt-over.jpg";
kontaktOff = new Image();
kontaktOff.src = "staticimages/kontakt-off.jpg";

versicherungOn = new Image();
versicherungOn.src = "staticimages/versicherung-over.jpg";
versicherungOff = new Image();
versicherungOff.src = "staticimages/versicherung-off.jpg";

michischaubOn = new Image();
michischaubOn.src = "staticimages/datum/michischaub-over.jpg";
michischaubOff = new Image();
michischaubOff.src = "staticimages/datum/michischaub-off.jpg";


function changeSrc(fasel)
{
document.images[fasel].src =eval(fasel + "On.src");
}

function changeSrcBack(fasel)
{
document.images[fasel].src = eval(fasel + "Off.src");
}

// Bildwechsel ENDE
