datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour >17.45) display = "ABEND";
else if (thehour >17) display = "TAG";
else if (thehour >13) display = "TAG";
else if (thehour >11) display = "TAG";
else if (thehour >10) display = "MORGEN";
else display = "MORGEN";
var greeting = ("GUTEN  " + display + "");
document.write(greeting);
