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="#003300" SIZE=2><b>Heute in <font color="800000">'+tag+' <FONT COLOR="#003300">'+tag1+' ist Weihnachten! <br></FONT></FONT></font>');
document.write('<FONT FACE="Arial" COLOR="#003300" SIZE=2> Wir wünschen angenehme Adventszeit.</FONT>')}
else

if (tag<-2)
    {
     if (tag>-7)
      {tag=tag+7;
       document.write('<FONT FACE="Arial" COLOR="003300" size="2"><b>Heute in <font color="#800000">'+tag+'  <FONT COLOR="#003300">'+tag1+' ist Silvester!</FONT></FONT></font> ');}
      else
       {document.write('<FONT FACE="Arial" COLOR="#800000" size="2"><b>Heute ist Silvester! <br>');
       document.write('<FONT FACE="Arial" COLOR="#003300"> Wir wünschen  einen schönen Jahreswechsel.</font></font>')}
     }
else
{document.write('<FONT FACE="Arial" COLOR="#800000" size="2"><b>Heute ist Weihnachten!<br>');
document.write('<FONT FACE="Arial" COLOR="#003300"> 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="#003300" size="2"><b>Willkommen im Jahr<FONT FACE="" COLOR="#800000"> '+jahr+' <br>');
document.write('<FONT FACE="Arial" COLOR="#003300" size="2">Wir wünschen  ein gesundes neues Jahr.</font></font></font>');}
