/*Funktion für Startseite und andere wichtige Sachen */
/*
  document.write("<tr><td><a href='plakat_web' class='status' id='Link1'>Weihnachtskonzert: Winterblechgebeat</a><p class='nix'><br><a id='Link2' >_</a><a id='Link3'>_</a></p><p class='status'>")
   document.write("Sa, 10.12. um 19:00 Uhr - <a class='link_status' href='http://ok.ekmd-online.de:8001/karte/?language=en&s=1&ok_id=716&sm=E_7' target='_blank'>Kirche zu Apollensdorf</a> <a class='link_status' href='http://maps.google.de/maps?q=51.872431,12.542121&hl=de&ll=51.872331,12.542573&spn=0.001802,0.005284&sll=51.870197,12.596836&sspn=0.057659,0.169086&vpsrc=6&t=h&z=18' target='_blank'>in Wittenberg</a><br>");
   document.write("So, 11.12. um 16:00 Uhr - <a class='link_status' href='http://www.halle-selk.de/' target='_blank'>Maria-Magdalenen Kapelle</a> <a class='link_status' href='http://maps.google.de/maps?q=Friedemann-Bach-Platz+5,+06110+Halle&hl=de&ll=51.486327,11.963725&spn=0.001817,0.005284&sll=51.486835,11.964819&sspn=0.007269,0.021136&vpsrc=6&gl=de&hnear=Friedemann-Bach-Platz+5,+Halle+06108+Halle+%28Saale%29,+Sachsen-Anhalt&t=h&z=18&layer=c&cbll=51.486327,11.963725&cbp=12,0,,0,0&photoid=po-21289976' target='_blank'>in Halle</a><br>");
 */
   document.write("<tr><td><p class='status'>Winterblechgebeat <a  href='http://blechanfall.de/pages/info_report_2011_12_09.html' id='Link1'>Bericht</a> </p>");
/*
   document.write("So, 21.8. um 14:00 Uhr - <a class='link_status' href='http://www.smile-design.de/cmsselkberlin/index.php?option=com_content&view=article&id=12&Itemid=13' target='_blank'>Christus-Kirche</a> <a class='link_status' href='http://maps.google.de/maps?q=Hebbelstr.+14,+14469+Potsdam&hl=de&ll=52.406716,13.062117&spn=0.001774,0.005284&sll=52.404801,13.07019&sspn=0.007095,0.021136&z=18' target='_blank'>in Potsdam</a><br>");
        document.write("Di,&nbsp; 3.8. um 19:30 Uhr - <a class='link_status' href='http://www.raymond-faure.com/Ballenstedt/Ballenstedt_Kirche.html' target='_blank'>St. Nikolai-Kirche</a> <a class='link_status' href='http://maps.google.de/maps?f=q&source=s_q&hl=de&geocode=&q=++%09+Kirchhofplatz,++06493++Ballenstedt&sll=51.721185,11.240356&sspn=0.008428,0.027208&gl=de&ie=UTF8&hq=&hnear=Kirchhofplatz,+06493+Ballenstedt,+Harz,+Sachsen-Anhalt&ll=51.721246,11.238799&spn=0.004214,0.02178&z=16' target='_blank'>in Ballenstedt</a><br>");
    document.write("Sa, 7.8. um 20:00 Uhr - <a class='link_status' href='http://www.lychen.de/Kirche-St-Johannes.58.0.html' target='_blank'>St. Johannes Kirche</a> <a class='link_status' href='http://maps.google.de/maps?f=q&source=s_q&hl=de&geocode=&q=lychen+am+Kirchplatz+9&sll=53.11546,12.974854&sspn=0.535757,1.766052&ie=UTF8&hq=&hnear=Am+Kirchplatz+9,+17279+Lychen,+Uckermark,+Brandenburg&ll=53.208898,13.316159&spn=0.001044,0.003449&t=h&z=18' target='_blank'>in Lychen</a><br>");
    document.write("So, 8.8. um 18:00 Uhr - <a class='link_status' href='http://www.smile-design.de/cmsselkberlin/index.php?option=com_content&view=article&id=5&Itemid=6' target='_blank'><i>Annenkirche</i></a> <a class='link_status' href='http://maps.google.de/maps?q=Annenstra%C3%9Fe+53+10179+Berlin&oe=utf-8&client=firefox-a&ie=UTF8&hl=de&hq=&hnear=Annenstra%C3%9Fe+53,+Berlin+10179+Berlin&ll=52.50751,13.415658&spn=0.003866,0.013797&t=h&z=16' target='_blank'>in Berlin-Mitte</a><br>");
*/
/*  document.write("<a class='link_status' href='http://www.blechanfall.de/pages/info_report_2009_09_13.html'>Tag des offenen Denkmals - BlechAnfall in Gransee</a>"); */


/*aktulle Update*/
  document.write("<a class='nix' id='Link3'>_</a><br></p>")
  document.write("</td><td width='110' ><p class='status update'>Update <!--DATE-->15.09.2010 22:19:29<!--/DATE--> </p></td>");
  document.write("</tr> ");

/*aktulle Infos*/
/*
  document.getElementById("Link2").firstChild.nodeValue = "DER BERICHT - Sommertournee 2010";
  document.getElementById("Link2").href = "http://www.legiehn.de/blechanfall/pages/info_report_2010_08_08.html";
  document.getElementById("Link2").id = "link_status";
   */

  var Jetzt = new Date();
  var heuteTag = String(Jetzt.getDate());
  var heuteMonat = String(Jetzt.getMonth());
  var Monatsname = new Array("Januar", "Februar", "Maerz", "April", "Mai", "Juni",
                      "Juli", "August", "September", "Oktober", "November", "Dezember");
  var HeadHeight = 332

  var Aktuell = heuteTag.concat(".");
  var Aktuell = Aktuell.concat(heuteMonat);

  var Geburtstag = new Array("Manuel", "1/31/1983", "Johannes", "2/23/1983", "Rolf", "5/24/1980", "Martin & Sebastian", "8/30/1980", "Sebastian", "8/30/1980",
      "Georg", "9/7/1980", "Fritz", "6/12/1980", "Volker", "9/28/1980", "Andreas", "11/1/1980", "Malte", "11/18/1980", "Dominik", "11/26/1980");

 function Viewer (Link,Nr,Anzahl) {
/*Link = "images/pictures/" z.B. 2007_08_05_*/
/*Nr = Bild Nummer z.B. 5*/
/*Anzahl = Bilderanzahl z.B. 10*/
        if (navigator.appName.indexOf("Netscape") != -1){
          MeinFenster = window.open("../viewer.html?=images/pictures/" + Link + "=" + Nr + "=" + Anzahl);}
         else{
             if (navigator.appName.indexOf("Explorer") != -1){
                window.location.href="../viewer.html?=images/pictures/" + Link + "=" + Nr + "=" + Anzahl;}
              else{
                window.location.href="../viewer.html?=images/pictures/" + Link + "=" + Nr + "=" + Anzahl;}
              }
        }

 function Geburtstagsbild (Wer) {
        document.images.pictures.src="images/title/geburtstag_"+ Wer +".jpg";
        /*document.getElementById("Bildtitel").firstChild.nodeValue = "Herzlichen Glueckwunsch zum Geburtstag - "+ Wer;
        document.getElementById("Bildtitel").id = "picturetitle"; */

         Mouseoverhead ()
        }
 function click(wert)  {alert("hall"); document.getElementById(wert).style.display = 'none';}
 function Mouseoverhead ()  {
         if ( HeadHeight == 332) { HeadHeight = 150;  document.images.Head.height = HeadHeight;
        }else{HeadHeight = 332;  document.images.Head.height = HeadHeight;}

    }
 function Datediff (Datum)  {
  }

  function Einlesen()  {
     var Aktuell = new Date()
     /*Status*/


           var d1 = new Date();
           var d2 = new Date("8/5/2007");
           d2.setFullYear(d1.getFullYear());
           var day = 1000*60*60*24;
           var diff = Math.ceil((d2.getTime()-d1.getTime())/(day));
       /*document.getElementById("Bildtitel").firstChild.nodeValue = "Noch " + diff + " Tage bis zum Sommertourneeauftakt mit dem Motto:";
       document.getElementById("Bildtitel").id = "Picturetitle";*/

     /*Monatsbild*/
     document.images.pictures.src="images/title/"+ Monatsname[Aktuell.getMonth()] +".jpg";
     /*Geburtstagsüberprüfung*/
          for (var i = 0; i <=22; i++)    /*Schleife für Geburtstag*/
         {
           i++

           var d1 = new Date();
           var d2 = new Date(Geburtstag[i]);
           d2.setFullYear(d1.getFullYear());
           var day = 1000*60*60*24;
           var diff = Math.ceil((d2.getTime()-d1.getTime())/(day));
           var Datum = d2.getDate() + "." + parseInt(d2.getMonth()) + "." + d2.getYear();

           /*Link, hinweis für Geburtstag*/
           if (0 >= diff && diff >=-7)  {
                  /*document.getElementById("Link1").firstChild.nodeValue = "test"/*Datum +" - Geburtstag von " + Geburtstag[i-1];
                  document.getElementById("Link1").href = "javascript:Geburtstagsbild('" + Geburtstag[i-1]+ "')";
                  document.getElementById("Link1").id ="link_status";       */
                             }
           if ( diff == 0)  { Geburtstagsbild (Geburtstag[i-1]) }

         }

     }



 /*Umfragetest*/
 function pruefen() {

         var checked = false;

           /*Schleife über alle RadioButtons Stimme*/
           for (i=0;i<document.forms[0].stimme.length;i++)
           {
            if (document.forms[0].stimme[i].checked)
            { checked = true;}
           }

         /*Wenn nicht gewählt und was reingeschrieben wurde*/
         if (checked == false && document.forms[0].name.value=="" && document.forms[0].link.value=="")
            {    alert('Bitte wählen sie!');
                 return(false);
            }

         /*Wenn LINK geschrieben aber Titel fehlt*/
         else if (document.forms[0].link.value!="" && document.forms[0].name.value=="")
            {    alert('Bitte Titel eingeben!')
                 return(false);
            }

         var link = document.forms[0].link.value.substr(0, 11);

         /*Wenn LINK geschrieben aber Link ist falsch*/
         if (link!="http://www." && document.forms[0].link.value!="")
              {alert('Bitte geben Sie die ganze URL an!')
              return(false);}
   }
