function relogio() 
{
	if (!document.layers && !document.all) return;
	var data = new Date();
	var hora = data.getHours();
	var minutos = data.getMinutes();
	if (minutos<10)
  	{
    	minutos='0'+minutos;
  	}
	var segundos = data.getSeconds();
	if (segundos<10)
  	{
    	segundos='0'+segundos;
  	}
	saida = hora + " : " + minutos + " : " + segundos
	if (document.layers) 
	{
		document.layers.horas.write(saida);
	}
	else
		if (document.all)
		{
			document.getElementById('horas').innerHTML = saida;
		}	
	setTimeout("relogio()", 500);
}