news1=new Image();
news1.src="bilder/navigation/news.jpg";
news2=new Image();
news2.src="bilder/navigation/news_on.jpg";
function wechsel1() {document.news.src = news2.src};
function wechsel2() {document.news.src = news1.src};

ipong1=new Image();
ipong1.src="bilder/navigation/ipong.jpg";
ipong2=new Image();
ipong2.src="bilder/navigation/ipong_on.jpg";
function wechsel3() {document.ipong.src = ipong2.src};
function wechsel4() {document.ipong.src = ipong1.src};

bilder1=new Image();
bilder1.src="bilder/navigation/bilder.jpg";
bilder2=new Image();
bilder2.src="bilder/navigation/bilder_on.jpg";
function wechsel5() {document.bilder.src = bilder2.src};
function wechsel6() {document.bilder.src = bilder1.src};

preise1=new Image();
preise1.src="bilder/navigation/preise.jpg";
preise2=new Image();
preise2.src="bilder/navigation/preise_on.jpg";
function wechsel7() {document.preise.src = preise2.src};
function wechsel8() {document.preise.src = preise1.src};

business1=new Image();
business1.src="bilder/navigation/business.jpg";
business2=new Image();
business2.src="bilder/navigation/business_on.jpg";
function wechsel9() {document.business.src = business2.src};
function wechsel10() {document.business.src = business1.src};

shop1=new Image();
shop1.src="bilder/navigation/shop.jpg";
shop2=new Image();
shop2.src="bilder/navigation/shop_on.jpg";
function wechsel11() {document.shop.src = shop2.src};
function wechsel12() {document.shop.src = shop1.src};

downloads1=new Image();
downloads1.src="bilder/navigation/downloads.jpg";
downloads2=new Image();
downloads2.src="bilder/navigation/downloads_on.jpg";
function wechsel13() {document.downloads.src = downloads2.src};
function wechsel14() {document.downloads.src = downloads1.src};

faq1=new Image();
faq1.src="bilder/navigation/faq.jpg";
faq2=new Image();
faq2.src="bilder/navigation/faq_on.jpg";
function wechsel15() {document.faq.src = faq2.src};
function wechsel16() {document.faq.src = faq1.src};

kontakt1=new Image();
kontakt1.src="bilder/navigation/kontakt.jpg";
kontakt2=new Image();
kontakt2.src="bilder/navigation/kontakt_on.jpg";
function wechsel17() {document.kontakt.src = kontakt2.src};
function wechsel18() {document.kontakt.src = kontakt1.src};

impressum1=new Image();
impressum1.src="bilder/navigation/impressum.jpg";
impressum2=new Image();
impressum2.src="bilder/navigation/impressum_on.jpg";
function wechsel19() {document.impressum.src = impressum2.src};
function wechsel20() {document.impressum.src = impressum1.src};

home1=new Image();
home1.src="bilder/navigation/home.jpg";
home2=new Image();
home2.src="bilder/navigation/home_on.jpg";
function wechsel21() {document.home.src = home2.src};
function wechsel22() {document.home.src = home1.src};


function eingaben_ueberpruefen(){

 if (document.Form.sb_Name.value == "Dein Name"){
  alert("Gib bitte deinen Namen ein!");
  document.Form.sb_Name.focus();
  return false;
 }

 if (document.Form.sb_Name.value == ""){
  alert("Gib bitte deinen Namen ein!");
  document.Form.sb_Name.focus();
  return false;
 } 

 if (document.Form.sb_Eintrag.value == ""){
  alert("Du hast vergessen, einen Eintrag zu schreiben!");
  document.Form.sb_Eintrag.focus();
  return false;
 }


 if (document.Form.sb_Eintrag.value == "Dein Eintrag"){
  alert("Du hast vergessen, einen Eintrag zu schreiben!");
  document.Form.sb_Eintrag.focus();
  return false;
 }
}

/*
-----------------------------------------------------------------------
Popup Fenster - Funktion
-----------------------------------------------------------------------
*/
function GrafikAnzeigen(GrafikURL, Breite, Hoehe)
{
    Fensteroptionen = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
    Grafikfenster = window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
    Grafikfenster.focus();
    Grafikfenster.document.open();
   
with(Grafikfenster)
    {
        document.write("<html><head>");
        document.write("<title>Grafikanzeige</title>");
        document.write("</head>");
        document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">");
        document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\">");
        document.write("</body></html>");
    }
    return;
}

function CheckNewsform()
{
 if(document.nlformular.EMail.value == "Ihre E-Mail Adresse") {
   alert("Geben Sie bitte eine gültige E-Mail Adresse ein!");
   document.nlformular.EMail.focus();
   return false;
  }
 if(document.nlformular.EMail.value == "") {
   alert("Das Feld darf nicht frei bleiben. Geben Sie bitte eine gültige E-Mail Adresse ein!");
   document.nlformular.EMail.focus();
   return false;
  }
 if(document.nlformular.EMail.value.indexOf('@') == -1) {
   alert("Geben Sie bitte eine korrekte E-Mail Adresse ein!");
   document.nlformular.EMail.focus();
   return false;
  }
 if(document.nlformular.EMail.value.indexOf('.') == -1) {
   alert("Geben Sie bitte eine korrekte E-Mail Adresse ein!");
   document.nlformular.EMail.focus();
   return false;
  }
}
