
<!--

var the_timeout;

function y2k(number) { 
  return (number < 1000) ? number + 1900 : number;
}
function fixTime( the_minutes ) {
  if ( the_minutes < "10" ) the_minutes = "0"+the_minutes;
  return the_minutes;
}

function writeTime() {
  // get the date information; set month, day and year.
  var date = new Date();
  var month = new String;
  var day = new String;
  var year = new String;
  month = date.getMonth()
  day = date.getDate()
  year = y2k(date.getYear())

  if (month == "0")       month = "January";
  else if (month == "1")  month = "February";
  else if (month == "2")  month = "March";
  else if (month == "3")  month = "April";
  else if (month == "4")  month = "May";
  else if (month == "5")  month = "June";
  else if (month == "6")  month = "July";
  else if (month == "7")  month = "August";
  else if (month == "8")  month = "September";
  else if (month == "9")  month = "October";
  else if (month == "10") month = "November";
  else if (month == "11") month = "December";

  // Now set minutes, seconds and AM/PM (called time_of_day)
  var minutes = new String;
  minutes = fixTime( date.getMinutes() );

  var seconds = new String;
  seconds = fixTime( date.getSeconds() );

  var hours = new String;
  hours = fixTime( date.getHours() );

  var time_of_day = new String;
  if ( hours > "12" ) {
     time_of_day = "PM";
     hours = hours - "12";
  }
  else time_of_day = "AM";
  document.write(month + " " + day);
  document.write("<BR>");
  document.write(hours + ":" + minutes + " " + time_of_day);
  // run this function again in 1000 millisecond (1 sec):
  //the_timeout = setTimeout("writeTime();", 1000);
}

// -->
