// This function displays the time in the status line.
// Invoke it once to activate the clock; it will call itself from then on.
function display_time_in_status_line() {
	var d = new Date();
	var h = d.getHours();
	var m = d.getMinutes();
	var s = d.getSeconds();
	if (m < 10)
			m = "0" + m;
	if (s < 10)
			s = "0" + s;

	var t = "The current time is " + h + ":" + m + ":" + s;

	// Display the time in the status line.
	defaultStatus = t;

	// Arrange to do it again in 1 second (1000 ms).
	setTimeout("display_time_in_status_line()", 1000);
}

