
function TodayIs() {
    bfndow = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
    bfnmoy = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

    bfndate = new Date();

    document.write("<font face='Arial' size='2' color='#000000'><i>");

    document.write(bfndow[bfndate.getDay()]+ ",&nbsp;");
    document.write(bfnmoy[bfndate.getMonth()] + " ");
    document.write(bfndate.getDate() + ", ");
    if(bfndate.getYear() > 1000)
    {
        document.write(bfndate.getYear());
    }    
    else
    {
        if(bfndate.getYear() > 90 && bfndate.getYear() < 100)
        {
            document.write("19" + bfndate.getYear());
        }
        else
        {
           if(bfndate.getYear() > 99)       	
       	      document.write(bfndate.getYear() + 1900);       
        }
    }
    document.writeln("&nbsp;</i></font>");

}

function tick() {
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;
  var today;

  today = new Date();

  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();

  if (intHours == 0) {
     hours = "12:";
     ap = "Midnight";
  } else if (intHours < 12) { 
     hours = intHours+":";
     ap = "AM";
  } else if (intHours == 12) {
     hours = "12:";
     ap = "PM";
  } else {
     intHours = intHours - 12
     hours = intHours + ":";
     ap = "PM";
  }

  if (intMinutes < 10) {
     minutes = "0"+intMinutes+":";
  } else {
     minutes = intMinutes+":";
  }

  if (intSeconds < 10) {
     seconds = "0"+intSeconds+" ";
  } else {
     seconds = intSeconds+" ";
  } 

  timeString = hours+minutes+seconds+ap;

  Clock.innerHTML = "Current time: "+timeString;

  window.setTimeout("tick();", 100);
}



