<!--

function y2k(number){
 return (number < 1000 ) ? number + 1900 : number;
}

function MyHour(number) {
return (number <= 12) ? ( (number ==0) ? 12 : number  ): "0" + ( number - 12 );
}

function fixTime(number) {
 return (number < 10) ? "0" + (number) : number;
}


function fullDate(now,lang)
{
if (lang)
  {
   var the_Day= new Array( "Domimgo","Lunes", "Martes", "Miercoles", "Jueves",  "Viernes", "Sábado");
   var the_Month= new Array("enero", "febrero", "marzo", "abril",  "mayo", "junio", "julio", "agosto", 
                "septiembre", "octubre", "noviembre", "diciembre");
   }  else {
   var the_Day= new Array( "Sunday","Monday", "Tuesday", "Wednesday", "Thursday",  "Friday", "Saturday");
   var the_Month= new Array("January", "February", "March", "April",  "May", "June", "July", "August", 
                "September", "October", "November", "December");

}


the_WeekDay = the_Day[now.getDay()];
the_Month   = the_Month[now.getMonth()];
the_Date    = fixTime(now.getDate());
the_Year    = y2k(now.getYear());
the_Hour    = MyHour(now.getHours());
the_Minutes = fixTime(now.getMinutes());
the_Seconds = fixTime(now.getSeconds());
the_M       = (now.getHours() <= 12) ?  " AM" : " PM";


return (lang) ? (the_WeekDay +", "+ the_Date + " de " +the_Month +" de " + the_Year + " | "  + the_Hour +":"+ the_Minutes +":" +the_Seconds+" "+ the_M) : (the_WeekDay +", "+ the_Month + " " +the_Date +", " + the_Year + " | "  + the_Hour +":"+ the_Minutes +":" +the_Seconds+" "+ the_M);
}

function shortDate(now)
{

the_Month   = now.getMonth() + 1;
the_Date    = fixTime(now.getDate());
the_Year    = y2k(now.getYear());
the_Hour    = MyHour(now.getHours());
the_Minutes = fixTime(now.getMinutes());
the_Seconds = fixTime(now.getSeconds());
the_M       = (now.getHours() <= 12) ?  " AM" : " PM";

return the_Month + "-" + the_Date + "-" + the_Year + " " + the_Hour +":"+ the_Minutes +":" +the_Seconds+" "+ the_M;
}
-->