     function tick() {
         today = new Date();
         hour=today.getHours();
         minutes=today.getMinutes();
         seconds=today.getSeconds();
         year=today.getYear();
         day=today.getDate();
         month=today.getMonth()+1;
         if (seconds < 10) {seconds="0"+ seconds;}
         if (minutes < 10) {minutes="0"+ minutes;}
         if (month < 10) {month="0"+ month;}
         if (day < 10) {day="0" + day}
         if (hour<=12)             {Antw ="Guten Morgen"} else
         if (hour>12 && hour <18)  {Antw ="Guten Tag"} else
         if (hour>=18 && hour <24) {Antw ="Guten Abend"}
         timeString="<span style='font-family: comic sans ms; font-size:16px; text-decoration:underline; color:#00df00'>" +
         Antw + "</span><br>" +
         "<p  style='font-family: arial; font-size:10px; margin-top:-0px;'>" +
         "Heute ist der "+ day + "." + month + "."+ year +"<br>"
         + "Es ist jetzt&nbsp;" + hour+":"+minutes+":"+seconds +"&nbsp;Uhr" + "</p>";
         clock.innerHTML = timeString;
         window.setTimeout("tick();", 1000);}
         window.onload = tick;