function processdt () {

	var today = new Date();
	var mycolor = "blue";

	var textout = "";

	if(today.getMinutes() < 10) {
		mpad = "0";
	} else {
		mpad = "";
	}

	if(today.getSeconds() < 10) {
		spad = "0";
	} else {
		spad = "";
	}

	// textout += "<center><FONT SIZE=4 color=" + mycolor;
	// textout += ">Welcome<a href='javascript:showev();'><FONT SIZE=4 color=" + mycolor + ">!</font></a>!</FONT></center>";

	if((today.getHours() < 12) && (today.getHours() >= 6)) {
		textout += "<center><FONT SIZE=4 color=" + mycolor;
		textout += ">Good Morning</FONT></center>";
	}

	if((today.getHours() >= 12) && (today.getHours() < 18)) {
		textout += "<center><FONT SIZE=4 color=" + mycolor;
		textout += ">Good Afternoon</FONT></center>";
	}

	if((today.getHours() >= 18) && (today.getHours() <= 23)) {
		textout += "<center><FONT SIZE=4 color=" + mycolor;
		textout += ">Good Evening</FONT></center>";
	}

	if((today.getHours() >= 0) && (today.getHours() < 4)) {
		textout += "<center><FONT SIZE=4 color=" + mycolor;
		textout += ">You're up late today.</FONT></center>";
	}

	if((today.getHours() >= 4) && (today.getHours() <= 6)) {
		textout += "<center><FONT SIZE=4 color=" + mycolor;
		textout += ">Wow! You are up early!!</FONT></center>";
	}

	if(today.getHours() == 12) {
		var ampm = ' PM';
		var dayhours = 12;
	} else if (today.getHours() > 12) {
		var ampm = ' PM';
		var dayhours = today.getHours() - 12;
	} else {
		var ampm = ' AM';
		var dayhours = today.getHours();
	}

	textout += "<center><FONT SIZE=3 color=" + mycolor;
	// textout += ">Time: " + today.getHours() + ":" + mpad + today.getMinutes() + ":" + spad + today.getSeconds();
	textout += ">Time: " + dayhours + ":" + mpad + today.getMinutes() + ":" + spad + today.getSeconds() + ampm;
	// textout += ">Time: " + today.getHours() + ":" + mpad + today.getMinutes();

	var month = today.getMonth() + 1;
	textout += "  Date: " + month + "/" + today.getDate();
	textout += "/" + today.getFullYear() + "</font></center>";

	document.all.timediv.innerHTML = textout;

	// update every 100 ms
	setTimeout('processdt()', 300);
}
