/***********************************************************************
	Function: init_time(container_id[, offset])

	Discription:
	this will create a self updating clock indicating the current time

	Arguments:
	container_id	- 	the text id of the element to contain the clock
						note: the elements content will be erased.
	offset			- 	the timezone offset relative to GMT (this is optional).

	Tested on:
	MS IE 6.0
	Opera 7.0.3
	Mozilla 1.2.1

	*/
function init_time(container_id, offset)
{
	if (offset == null)
		offset = 0
	// XXX revise...
			var code = 'd = new Date(); h = d.getUTCHours()*1 + ' + offset + '; document.getElementById("' + container_id + '").innerHTML = ((h > 0 && h || 24+h) %24) + ":" + (10 > d.getUTCMinutes() && "0" + d.getUTCMinutes() || d.getUTCMinutes())' // ' + ":" + d.getUTCSeconds()'
	// setup initial time...
	eval(code)
	return setInterval(code, 1000)
}
