// create a new Date object
var now = new Date();
// extract the time information
var hh = now.getHours();
// default welcome message
var hi = "Good Morning...Welcome to the World Wide Web of <b><i>DDC1975.CA</i></b>!";
// welcome if after noon
if( hh > 11 ) hi= "Good Afternoon...Welcome to the World Wide Web of <b><i>DDC1975.CA</i></b>!";
// welcome if after 6 p.m.
if( hh > 17 ) hi= "Good Evening...Welcome to the World Wide Web of <b><i>DDC1975.CA</i></b>!";
// display welcome message
var tim = hi;
document.write(tim);
