
function ponFecha() {
fecha=new Date();
hora=fecha.getHours();
minutos=fecha.getMinutes();
if (minutos<10){
  minutos='0'+minutos
}
segundos=fecha.getSeconds();
if (segundos<10){
segundos='0'+segundos
}
return (hora+":"+minutos+":"+segundos); 
}

