

function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "Enero";
   months[1]  = "Febrero";
   months[2]  = "Marzo";
   months[3]  = "Abril";
   months[4]  = "Mayo";
   months[5]  = "Junio";
   months[6]  = "Julio";
   months[7]  = "Augusto";
   months[8]  = "Septiembre";
   months[9]  = "Octubre";
   months[10] = "Noviembre";
   months[11] = "Diciembre";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname +
                    ' ' +
                    monthday +
                    ', ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = " AM,";
   if (hour   > 11) { ap = " PM,";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                   
                    ap;
   return timeString;
} // function getClockTime()


