
miFechaActual = new Date()
dia = miFechaActual.getDate()
mes = parseInt(miFechaActual.getMonth()) + 1
ano = miFechaActual.getFullYear()


function moveReloj(){
    momActual = new Date()
    hor = momActual.getHours()
    min = momActual.getMinutes()
    seg = momActual.getSeconds()

    str_seg = new String (seg)
    if (str_seg.length == 1)
       seg = "0" + seg

    str_min = new String (min)
    if (str_min.length == 1)
       min = "0" + min

    str_hor = new String (hor)
    if (str_hor.length == 1)
       hor = "0" + hor

    dataImprimible = dia + "/" + mes + "/" + ano + "  " + hor + " : " + min + " : " + seg

    document.form_tempo.tempo.value = dataImprimible

    setTimeout("moveReloj()",1000)
   }
   

 
