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);
}

<!--//

// -->		

/* HELP FUNCTIONS
 ******************************/
var GetElementById = GetElementById_Initialize;

function GetElementById_Initialize( id )
{
	if( null != document.getElementById )
	{
		GetElementById = function( id ) 
		{ 
			return document.getElementById( id ); 
		}
	}
	else if( null != document.all )	
	{
		GetElementById = function( id )
		{
			return document.all[ id ];
		}
	}
	else if( null != document.layers )
	{
		GetElementById = function( id )
		{
			return GetElementById_Netscape4( id );
		}
	}
	else
	{
		GetElementById = function( id )
		{
			return null;
		}
	}
	return GetElementById( id );
}

function GetElementById_Netscape4( id )
{
	var i;
	for( i = 0; i < document.forms[ 0 ].length; i ++ )
	{
		var e = document.forms[ 0 ].elements[ i ];
		if( e.name && id == e.name )
			return e;
	}
	return document.layers[ id ];
}



function showHelp(helpID, e) {
  if ( typeof RollTip == "undefined" || !RollTip.ready ) return;
  
  divHelp = GetElementById(helpID);
  
  RollTip.reveal(divHelp.innerHTML, e);
}

function hideHelp() {
  if ( typeof RollTip == "undefined" || !RollTip.ready ) return;
  RollTip.conceal();
}


