// JavaScript Document

// TWO STEPS TO INSTALL BASIC CLOCK:
//  1.  Add the onLoad event handler into the BODY tag
//  2.  Copy the coding into the BODY of your HTML document 

// STEP ONE: Insert the onLoad event handler into your BODY tag  -->
// Para que cargue el reloj <body onLoad="clock()">
// Para poner el reloj <span id="pendule"></span> 
// Cierra el Body Modificado </body>

<!-- Begin
function clock() {
if (!document.layers && !document.all) return;
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;
if (document.layers) {
document.layers.pendule.document.write(dispTime);
document.layers.pendule.document.close();
}
else
if (document.all)
pendule.innerHTML = dispTime;
setTimeout("clock()", 1000);
}
//  End -->

