// JavaScript Document
function startclock()
{
var arr = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")
var thetime=new Date();
var gdate=thetime.getDate();
var gmonth=thetime.getMonth();
var gfullyear=thetime.getFullYear();
var nhours=thetime.getHours();
var nmins=thetime.getMinutes();
var nsecn=thetime.getSeconds();
var AorP=" ";

if (nhours>=12)
    AorP="P.M.";
else
    AorP="A.M.";

if (nhours>=13)
    nhours-=12;

if (nhours==0)
 nhours=12;

if (nsecn<10)
 nsecn="0"+nsecn;

if (nmins<10)
 nmins="0"+nmins;

document.getElementById("clockspot").innerHTML=gdate+" de "+arr[gmonth]+" de "+gfullyear+" "+nhours+":"+nmins+" "+AorP;

//setTimeout('startclock()',1000);

} 
