	// Client-side reading of computer's clock and setting of greeting
	// Written by Bob Delaney
	var todayobj = new Date();		// Define a Date() object
	var themonth = new Array();	// For the month names
	var todaytime, todaydate;		// Need to use two variables
	var todaygreet;					// Christmas etc.

	
	// Initialize month names
	themonth[0]  = "January";
	themonth[1]  = "February";
	themonth[2]  = "March";
	themonth[3]  = "April";
	themonth[4]  = "May";
	themonth[5]  = "June";
	themonth[6]  = "July";
	themonth[7]  = "August";
	themonth[8]  = "September";
	themonth[9]  = "October";
	themonth[10] = "November";
	themonth[11] = "December";
	
	// Organize date greeting for the year 2003-04 (To May '04)
	switch (todayobj.getMonth()) {
		case 0:		// January
			switch (todayobj.getDate) {
			case 1:
				todaygreet = "Happy New Year";
				break;
			case 22:
				todaygreet = "It's Chinese New Year";
				break;
			}
			break;
		case 1:		// February
			if (todayobj.getDate() == 14) {
				todaygreet = "Happy Valentine's Day";
				break;
			}
			break;
		case 2:		// March
			if (todayobj.getDate() == 17) {
				todaygreet = "Happy St. Patrick's Day";
				break;
			}
			break;
		case 3:		// April
			switch (todayobj.getDate) {
				case 1:
					todaygreet = "It's April Fool's Day";
					break;
				case 6:
					todaygreet = "It's Passover";
					break;
				case 9:
					todaygreet = "It's Good Friday";
					break;
				case 11:
					todaygreet = "Happy Easter";
					break;
				case 22:
					todaygreet = "It's Earth Day";
					break;
			}
			break;
		case 4:		// May
			switch (todayobj.getDate) {
				case 9:
					todaygreet = "It's Mother's Day";
					break;
				case 24:
					todaygreet = "Enjoy Victoria Day!";
					break;
			}
			break;
		case 5:		// June
			switch (todayobj.getDate) {
				case 15:
					todaygreet = "It's Father's Day";
					break;
				case 21:
					todaygreet = "It's summer now";
					break;
			}
			break;
		case 6:		// July
			if (todayobj.getDate() == 1) {
				todaygreet = "Happy Canada Day";
				break;
			}
			break;
		case 7:		// August
			if (todayobj.getDate() == 4) {
				todaygreet = "Civic Holiday today";
				break;
			}
			break;
		case 8:		// September
			switch (todayobj.getDate) {
				case 1:
					todaygreet = "It's Labour Day";
					break;
				case 22:
					todaygreet = "It's autumn today";
					break;
				case 27:
					todaygreet = "It's Rosh Hashanah";
					break;
			}
			break;
		case 9:		// October
			switch (todayobj.getDate) {
				case 6:
					todaygreet = "It's Yom Kippur";
					break;
				case 13:
					todaygreet = "Happy Thankgiving";
					break;
				case 31:
					todaygreet = "Happy Halloween";
					break;
			}
			break;
		case 10:		// November
			if (todayobj.getDate() == 11) {
				todaygreet = "It's Remembrance Day";
				break;
			}
			break;
		case 11:		//December
			switch (todayobj.getDate) {
				case 24:
					todaygreet = "It's Christmas Eve";
					break;
				case 25:
					todaygreet = "Merry Christmas";
					break;
				case 26:
					todaygreet = "Happy Boxing Day";
					break;
				case 31:
					todaygreet = "It's New Year's Eve";
					break;
			}
			break;
		default:
			todaygreet = null;
			break;
	}

	if (todayobj.getHours() < 4) {
		todaytime = "heavens, you're up late";}		// Before 4:00 a.m.
	else if (todayobj.getHours() >= 4 && todayobj.getHours() < 7) {
		todaytime = "morning! You're up early"; }	// 4:00 to 6:59 a.m.
	else if (todayobj.getHours() >= 7 && todayobj.getHours() < 12) {
		todaytime = "morning"; }	// Before noon
	else if (todayobj.getHours() >= 12 && todayobj.getHours() < 18) {
		todaytime = "afternoon"; }	// Between 12 noon and 6:00 p.m.
	else {
		todaytime = "evening"; }	// Between 7:00 p.m. and Midnight
		
	if (todaygreet != null) {
		todaytime += (". " + todaygreet);
	}
	
	// Calculate month for display - Jan = 0; Dec = 11
	todaydate = themonth[todayobj.getMonth()] + " ";

	// Use getDate() for date and getFullYear() for the year
	// Assemble the string: month + " " + date + ", " + year 		
	todaydate += (todayobj.getDate() + ", " + todayobj.getFullYear());