<!--
// Author: Anthony Tu
var flasher = false
// offsets from GMT (or UTC) standard time
// calculate current time, determine flasher state,
// and insert time into status bar every second
function updateTime()
{
//  GMT or UTC time
  var now = new Date()
// getTimezoneOffset returns minutes
  var nowUTC = now.getTime() + (now.getTimezoneOffset()*60*1000)
/**************** San Jose *************************************/
  var theHour = now.getHours()
  var theMin = now.getMinutes()
  var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)
  theTime += ((theMin < 10) ? ":0" : ":") + theMin
  theTime += (theHour >= 12) ? " pm" : " am"
  theTime += ((flasher) ? " " : "*")
  flasher = !flasher
  window.status = theTime
  document.clock.cTime.value = theTime

// Day
  var theDay = now.getDay()
  var ArrayDay = new Array(6)
  ArrayDay[0]="Sunday"
  ArrayDay[1]="Monday"
  ArrayDay[2]="Tuesday"
  ArrayDay[3]="Wednesday"
  ArrayDay[4]="Thursday"
  ArrayDay[5]="Friday"
  ArrayDay[6]="Saturday"
  window.status = ArrayDay[theDay]
  document.clock.cDay.value = ArrayDay[theDay]

// Month
  var theMonth= now.getMonth()
  var ArrayMonth = new Array(12)
  ArrayMonth[0]="January"
  ArrayMonth[1]="February"
  ArrayMonth[2]="March"
  ArrayMonth[3]="April"
  ArrayMonth[4]="May"
  ArrayMonth[5]="June"
  ArrayMonth[6]="July"
  ArrayMonth[7]="August"
  ArrayMonth[8]="September"
  ArrayMonth[9]="October"
  ArrayMonth[10]="November"
  ArrayMonth[11]="December"
  window.status = ArrayMonth[theMonth]
  document.clock.cMonth.value = ArrayMonth[theMonth]
  var theDate = now.getDate()
  window.status = theDate
  document.clock.cDate.value = theDate
  var theYear= now.getFullYear()
  window.status = theYear
  document.clock.cYear.value = theYear
  // recursively call this function every second to keep timer going
  timerID = setTimeout("updateTime()",1000)
}
//-->
