function druckformular()
{
 var hoehe=screen.height*0.9;
 window.open("bestellen.html","","width=580,height="+hoehe+",locationbar=no,rezisable=no,menubar=no,scrollbars=yes,screenX=10,screenY=10,top=10,left=10");
 }

function laden ()  
{
 if(top.frames.length == 0)
 {
 parent.location.href='index.html';
}
}

function chkformulare()
{
     if(document.formular.bandname.value == "")
      {
       alert("Bitte einen Namen eingeben!");
       document.formular.bandname.focus();
       return false;
      }
      if(document.formular.strasse.value == "")
      {
       alert("Bitte die Straße eingeben!");
       document.formular.strasse.focus();
       return false;
      }
       if(document.formular.plz.value == "")
      {
       alert("Bitte Postleitzahl eingeben!");
       document.formular.plz.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("Postleitzahl ist keine Zahl!");
       document.formular.plz.focus();
       return false;
      }
     var chkZ = 1;
     if(document.formular.plz.value.length<"5")
         chkZ = -1;
     if(chkZ == -1)
     {
       alert("Postleitzahl ist nicht 5-stellig !");
       document.formular.plz.focus();
       return false;
      }
      if(document.formular.ort.value == "")
      {
       alert("Bitte Ihren Wohnort eingeben!");
       document.formular.ort.focus();
       return false;
      }
      if(document.formular.musik.value == "")
      {
       alert("Bitte eine Musikrichtung eingeben!");
       document.formular.musik.focus();
       return false;
      }
     var e_mail = document.formular.e_mail.value;
    if (e_mail=="")
    {
      alert("Bitte eine E-Mail-Adresse eingeben!");
      document.formular.e_mail.focus();
      return false;
      }
    var at_pos;
    at_pos =e_mail.indexOf("@");
    if (at_pos < 0 && document.formular.e_mail.value!="")
     {
      alert("Fehlerhafte E-Mail-Adresse: @ - Zeichen fehlt!");
      document.formular.e_mail.focus();
      return false;
     }
     if (at_pos == 0 && document.formular.e_mail.value!="")
      {
      alert("Fehlerhafte E-Mail-Adresse: @ am Anfang!");
      document.formular.e_mail.focus();
      return false;
      }
     if (at_pos > 0 && document.formular.e_mail.value!="")
      {
       if (e_mail.lastIndexOf("@") != at_pos)
        {
       alert("Fehlerhafte E-Mail-Adresse: Mehrfaches @ - Zeichen");
       document.formular.e_mail.focus();
       return false;
       }
      }
      var punkt;
      punkt=e_mail.indexOf(".");
      if (punkt < 0 && document.formular.e_mail.value!="")
       {
        alert("Fehlerhafte E-Mail-Adresse: Punkt '.' fehlt!");
        document.formular.e_mail.focus();
        return false;
       }
}

function chkformular()
{
     if(document.formular.nachname.value == "")
      {
       alert("Bitte einen Nachnamen eingeben!");
       document.formular.nachname.focus();
       return false;
      }
     if(document.formular.vorname.value == "")
      {
       alert("Bitte einen Vornamen eingeben!");
       document.formular.vorname.focus();
       return false;
      }
     var e_mail = document.formular.e_mail.value;
     if (e_mail=="")
     {
      alert("Bitte eine E-Mail-Adresse eingeben!");
        document.formular.e_mail.focus();
      return false;
      }
    var at_pos;
    at_pos =e_mail.indexOf("@");
    if (at_pos < 0 && document.formular.e_mail.value!="")
     {
      alert("Fehlerhafte E-Mail-Adresse: @ - Zeichen fehlt!");
      document.formular.e_mail.focus();
      return false;
     }
     if (at_pos == 0 && document.formular.e_mail.value!="")
      {
      alert("Fehlerhafte E-Mail-Adresse: @ am Anfang!");
      document.formular.e_mail.focus();
      return false;
      }
     if (at_pos > 0 && document.formular.e_mail.value!="")
      {
       if (e_mail.lastIndexOf("@") != at_pos)
        {
       alert("Fehlerhafte E-Mail-Adresse: Mehrfaches @ - Zeichen");
       document.formular.e_mail.focus();
       return false;
       }
      }
      var punkt;
      punkt=e_mail.indexOf(".");
      if (punkt < 0 && document.formular.e_mail.value!="")
       {
        alert("Fehlerhafte E-Mail-Adresse: Punkt '.' fehlt!");
        document.formular.e_mail.focus();
        return false;
       } 
      if(document.formular.nachricht.value == "")
      {
       alert("Möchten Sie keinen Kommentar eingeben ?");
       document.formular.nachricht.focus();
       return false;
      }
       {
      var sonder_check = document.formular.vorname.value+document.formular.e_mail.value+document.formular.nachricht.value;
      Ergebnis = sonder_check.match(/\?|\<|\>|\\|\//gi);
      if(Ergebnis){
      alert("Bitte keine HTML-TAGS oder Sonderzeichen eingeben...");
      parent.location.href="index.html";     
      }
      document.formular.vorname.focus();
      }
}

function oeffne()
{
 var hoehe=screen.height*0.8;
 var breite=790;
 i="http://www.gedichte-poesie.de/gastlyrik";
 window.open(i+".html","Gastlyrik","width="+breite+",height="+hoehe+",locationbar=yes,scrollbars=yes,rezisable=yes,menubar=no,screenX=0,screenY=0,top=0,left=0");
 
 {
 document.onmousedown=click;
 var times=0;
 var times2=10;
 function click(){
 if((event.button==2)||(event.button==3)){
 if(times>=1) { war_doch_schon() }
  alert("Quellcode kann nicht gefunden werden,\n Quellcode ist wahrschienlich versteckt !!!");
 times++
  }
 }
 
 function war_doch_schon(){
 alert(times+". Versuch: Oh jeminee, ich finde den Quellcode wirklich nicht ! ");
 }
  }
 
 {
 if(top.frames.length == 0)
 {
 parent.location.href='index.html';
}
}
 
 }