//jack
//iefix

//funcion para mostrar el reloj
function reloj(){
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM" 
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
document.tiempo.reloj.value=hours+":"+minutes+":"
+seconds+" "+dn
setTimeout("reloj()",1000)
}

function reloj2() 
{
   var digital = new Date();
   var horas = digital.getHours();
   var minutos = digital.getMinutes();
   var segundos = digital.getSeconds();
   var amOPm = "am";
   if (horas > 11) amOPm = "pm";
   if (horas > 12) horas = horas - 12;
   if (horas == 0) horas = 12;
   if (minutos <= 9) minutos = "0" + minutos;
   if (segundos <= 9) segundos = "0" + segundos;
   tiempo =horas + ":" + minutos + ":" + segundos + " " + amOPm;
   basicclock.innerHTML = tiempo;
   setTimeout("reloj2()", 1000);
}

//funcion para mostrar el calendario
function calendario(){
var dato=new Date();
var year=dato.getYear();
if (year < 1000)
year+=1900;
var day=dato.getDay();
var month=dato.getMonth();
var daym=dato.getDate();
if (daym<10)
daym="0"+daym;
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado");
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
document.write("<small><font color='white' face='Arial' size='2'>"+ dayarray[day] + " " + daym + " de " + montharray[month] + " del " + year +"</font></small>");
}