//*****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 now = new Date(); 
var hours = now.getHours(); 
var minutes = now.getMinutes(); 
var timeValue = "" + ((hours >12) ? hours -12 :hours) 
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += (hours >= 12) ? " PM" : " AM" 
timerRunning = true; 

mydate = new Date(); 
myday = mydate.getDay(); 
mymonth = mydate.getMonth(); 
myweekday= mydate.getDate(); 
weekday= myweekday; 
myyear= mydate.getYear(); 
year = myyear

if(myday == 0) 
day = " Domingo, " 

else if(myday == 1) 
day = " Segunda, " 

else if(myday == 2) 
day = " Terça, " 

else if(myday == 3) 
day = " Quarta, " 

else if(myday == 4) 
day = " Quinta, " 

else if(myday == 5) 
day = " Sexta, " 

else if(myday == 6) 
day = " Sábado, " 

if(mymonth == 0) 
//month = " de Janeiro de " 
month = "01" 

else if(mymonth ==1) 
//month = " de Fevereiro de " 
month = "02" 

else if(mymonth ==2) 
//month = " de Março de " 
month = "03" 

else if(mymonth ==3) 
//month = " de April de " 
month = "04" 

else if(mymonth ==4) 
//month = " de Maio de "
month = "05" 

else if(mymonth ==5) 
//month = " de Junho de " 
month = "06" 

else if(mymonth ==6) 
//month = " de Julho de " 
month = "07" 

else if(mymonth ==7) 
//month = " de Agosto de " 
month = "08" 

else if(mymonth ==8) 
//month = " de Setembro de " 
month = "09" 

else if(mymonth ==9) 
//month = " de Outubro de " 
month = "10" 

else if(mymonth ==10) 
//month = " de Novembro de " 
month = "11" 

else if(mymonth ==11) 
//month = " de Dezembro de " 
month = "12" 

return  myweekday +'/'+ month +'/'+ year; 

}
//********Fim de hora e data *****



