// JavaScript Document

now = new Date();
localtime = now.toString();
document.write(localtime + "<br />");
hours = now.getHours();
mins = now.getMinutes();
document.write("<h1>");
if (hours < 10) document.write("Good morning!");
else if (hours >= 14 && hours <= 17) document.write("Good afternoon.");
else if (hours >= 17) document.write("Good Evening.");
else document.write("Good day!")
document.write("</h1>");

