//*****Funcoes de controle de data e hora********************
<!-- hide// Navigation - Stop
var timerID = null;
var timerRunning = false;
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}

function showtime() {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        timeValue += (hours >= 12) ? " PM" : " AM"
        //document.clock.face.value = timeValue;
        // you could replace the above with this
        // and have a clock on the status bar:
        window.status = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}

function startclock () {
        // Make sure the clock is stopped
        stopclock();
        showtime();
}
// un hide --->

// Give the function a name so the onSubmit event for the submit
      // button can call it.
      function FullYear () {
      // Create a variable called ddate that will contain the current
      // date on the client system.
      var ddate= new Date();
      // Create a variable called year that will contain the current
      // year on the client system. Note that the JavaScript getYear method
      // will return values 0 through 99 for years 1900 through 1999, but
      // it will return 2000 or higher for years above 2000.

      var year=ddate.getFullYear()
      // Analyze the current year, and if it is less than 100 (year 2000),
      // then add 1900 to it.
	  
      if (year / 100) {year = (year + 00)}
      // Specify that the return value of the function FullYear shall be a
      // text string in the form of m/d/yyyy. The month portion is the
      // result of the getMonth method that returns 0 for January and 11
      // for December. Add one to that value for the common representation
      //of a month. The date portion is the result of the getDate method,
      // and the year portion is the result of the calculation within the
      // if condition in the line above.

      return (ddate.getDate() + "/" + (ddate.getMonth() + 1)+ "/" + year);
	
      } 

//*****Fim controle data e hora**********************************************

//********hora e data *****

dia = new Date();
ano = dia.getYear();

if (ano < 2000) // correçao para browsers que retornam 100 no ano 2000
  {
  ano = 1900 + dia.getYear();
  }
  
mes          = new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro")
mesen        = new Array("Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Oct","Nov","Dez")
dia_semana   = new Array("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
dia_semanaen = new Array("Sunday","Monday","Tuesday ","Wednesday ","Thursday ","Friday","Saturday");

hora = dia.getHours();
if (hora < 10)  {  hora = "0" + hora;  }

minuto = dia.getMinutes();
if (minuto < 10)  {  minuto = "0" + minuto;  }

//document.writeln(dia_semana[dia.getDay()] + ", " + dia.getDate() + " de " +  mes[dia.getMonth()] + " de " + ano);


function dataAtual()
{
  var strData, strDia, strMes, strAno;

  data = new Date();
  strDia = data.getDate();
  strMes = data.getMonth();
  strAno = data.getYear();

  if (strDia < 10)
    strDia = '0'+strDia;

  if (strMes < 10)
    strMes = '0'+strMes;

  strAno=''+strAno;

  if (strAno.length == 2)
    strAno = '19'+strAno;

  strData = strDia+"/"+strMes+"/"+strAno;

  return strData;
}
//********Fim de hora e data *****