//get the current date
now = new Date ();
//split into hours, minutes, seconds
hours = now.getHours();
mins = now.getMinutes();
secs = now.getSeconds();
//display the time - NOT CURRENTLY ACTIVE
//document.write("<h2>");
//document.write(hours + ":" + mins + ":" + secs);
//ocument.write("</h2>");
//display a greeting
document.write("<p>");
if (hours < 11) document.write("Good Morning. Welcome to CC Web.");
else if (hours > 12 && hours < 18) document.write("Good Afternoon. Welcome to CC Web.");
else if (hours >= 18) document.write("Good Evening. Welcome to CC Web.");
else document.write("Good Day. Welcome to CC Web.");
document.write("</p>");
