
//showfilled acompleta los numeros de un digito a 2 digitos

function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}

// toma la hora del reloj del sistema, la descompone, la rellena con 0 si es necesario, y se // tarda 1000ms (=1s) para volver a tomar la hora, ie. se tarda 1 segundo

function StartClock24() {
  TheTime = new Date;
  document.clock.showTime.value  = 	showFilled(TheTime.getHours()) + ":" + 								showFilled(TheTime.getMinutes()) + ":" + 							showFilled(TheTime.getSeconds());
  setTimeout("StartClock24()",1000)
}
