heute =new Date();
monat=heute.getMonth();
jahr=heute.getYear();


if (jahr<1000) jahr+=1900; /* Falls Jahresrueckgabe 2 bzw. 3-stellig ist */
if (monat==11)
tag = 24-heute.getDate()

if (monat==10)   /* November */
tag= 30+24-heute.getDate()


if (monat==11 || monat==10 && heute.getDate()>23) /* ab 24.11.xx beginnt text */
{
if (tag==1 || tag==-6) 
tag1="Tag";
else
tag1="Tagen";

if  (tag>0)
{document.write('<FONT FACE="Arial" COLOR="#FFF4AA" SIZE=2><b>Heute in <font color="FF3300">'+tag+' <FONT COLOR="#FFF4AA">'+tag1+' ist Weihnachten! <br></FONT></FONT></font>');
document.write('<FONT FACE="Arial" COLOR="#FFF4AA" SIZE=2> Wir wünschen angenehme Adventszeit</FONT>')}
else

if (tag<-2)
    {
     if (tag>-7)
      {tag=tag+7;
       document.write('<FONT FACE="Arial" COLOR="FFF4AA" size="2"><b>Heute in <font color="red">'+tag+'  <FONT COLOR="#FFF4AA">'+tag1+' ist Silvester!</FONT></FONT></font> ');}
      else
       {document.write('<FONT FACE="Arial" COLOR="#FF3300" size="2"><b>Heute ist Silvester! <br>');
       document.write('<FONT FACE="Arial" COLOR="#FFF4AA"> Wir wünschen  einen schönen Jahreswechsel</font></font>')}
     }
else
{document.write('<FONT FACE="Arial" COLOR="#FF3300" size="2"><b>Heute ist Weihnachten!<br>');
document.write('<FONT FACE="Arial" COLOR="#FFF4AA"> Wir wünschen  angenehme Feiertage</font></font>')}}
else
if (monat==0 && heute.getDate()<10) /* 9 Tage im Januar Begruessung */
  {document.write('<FONT FACE="Arial" COLOR="#FFF4AA" size="2"><b>Willkommen im Jahr<FONT FACE="" COLOR="#FF3300"> '+jahr+' <br>');
document.write('<FONT FACE="Arial" COLOR="#FFF4AA" size="2">Wir wünschen  ein gesundes neues Jahr</font></font></font>');}

