/*
* 2Ms js library
*
* RTC (Real Time Clock)
*
* copyright (c) 1985-2006 by 2Ms CENTRO STUDI TECNICI
* http://www.2ms-it.com
* all rights reserved.
*/

function showtime ()
	{
		var now = new Date();
		var hours = now.getHours();
		var minutes = now.getMinutes();
		var seconds = now.getSeconds()
		var timeValue = ((hours < 10) ? "0" : "") + hours
		timeValue += ((minutes < 10) ? ":0" : ":") + minutes
		timeValue += ((seconds < 10) ? ":0" : ":") + seconds
		if (document.getElementById)
			{
				document.getElementById("rtc").innerHTML=timeValue;
			}
		setTimeout("showtime()", 1000)
	}
window.onload = showtime;
