var now = new Date();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr = now.getYear();
if (dayNr<10) dayNr = "0" + dayNr;
if (mName<10) mName = "0" + mName;
if(dName==1) Day = "Dom";
if(dName==2) Day = "Seg";
if(dName==3) Day = "Ter";
if(dName==4) Day = "Qua";
if(dName==5) Day = "Qui";
if(dName==6) Day = "Sex";
if(dName==7) Day = "S&aacute;b";
if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
var todaysDate =("" + Day + "");
var todaysDate_2 =(dayNr + "/" + mName + "/" + Year);

function hora(){
var fecha = new Date()
var hora = fecha.getHours()
var minuto = fecha.getMinutes()
var segundo = fecha.getSeconds()
if (hora < 10) {hora = "0" + hora}
if (minuto < 10) {minuto = "0" + minuto}
if (segundo < 10) {segundo = "0" + segundo}
var horita = hora + ":" + minuto + ":" + segundo
document.getElementById('hora').firstChild.nodeValue = horita
tiempo = setTimeout('hora()',1000)
}

function inicio(){
document.write('<span id="hora">')
document.write ('000000</span>')
hora()
}