<!-- hide this script from non-javascript-enabled browsers
/*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* DO NOT MAKE ANY CHANGES TO THIS FILE!                                       
*	CONTACT Joe Frausto Jr. TO REQUEST A CHANGE TO THIS FILE                    
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*
* ------------------------------------------------------------------------------------ 
*  Joe's Digital Clock
*  01/28/1999 by Joe Frausto Jr.
* ------------------------------------------------------------------------------------ 
*/

// Round time to nearest 5 minute increment - Rounds up
function getRoundedTime(InclSecs, InclDate)
{
  var hours, minutes, seconds, ap;
  var intHours, intMinutes, intSeconds;
  var today;

  today = new Date();

  intHours = today.getHours();
  intMinutes = today.getMinutes();
  intSeconds = today.getSeconds();

	bTest = false;
	
	sTestMins = "" + intMinutes;
	AddToFirst = "0";

	if (sTestMins.length == 2)
	{
		First_Digit = sTestMins.substr(0,1);
		Last_Digit = sTestMins.substr(1,1);


		if (Last_Digit < 3 || Last_Digit > 7)
		{
			SetLast = "0";
			if (Last_Digit > 7)
				AddToFirst = "1";
		}
		else
		{
			SetLast = "5";
		}

		if (AddToFirst == "1")
			First_Digit = parseInt(First_Digit) + 1;
		intMinutes = First_Digit + SetLast;
	}
	else
	{
		if (intMinutes < 3 || intMinutes > 7)
		{
			SetLast = "0";
			if (intMinutes > 7)
				SetLast = "10";
		}
		else
		{
			SetLast = "5";
		}

		intMinutes = SetLast;
	}

	if (parseInt(intMinutes) == 60)
	{
		intMinutes = 0;
		intHours += 1;
	}
	if (parseInt(intHours) == 24)
	{
		intHours = 0;
	}

  if (intHours == 0) {
     hours = "12";
     ap = "AM";
  } 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;
  } 

	if (InclSecs)
	  timeString = hours + ":" + minutes + ":" + seconds + " " + ap;
	else
	  timeString = hours + ":" + minutes + " " + ap;
	
	if (InclDate)
		timeString = createToday(InclSecs) + " " + timeString;

	return timeString;
}

function getCurrentTime(InclSecs, InclDate)
{
  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 = "AM";
//     ap = "Midnight";
  } else if (intHours < 12) { 
     hours = intHours;
     ap = "AM";
  } else if (intHours == 12) {
     hours = "12";
     ap = "PM";
//     ap = "Noon";
  } 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;
  } 

	if (InclSecs)
	  timeString = hours + ":" + minutes + ":" + seconds + " " + ap;
	else
	  timeString = hours + ":" + minutes + " " + ap;
	
	if (InclDate)
		timeString = createToday(InclSecs) + " " + timeString;
	
	return timeString;
}

function tick() {

	if (typeof document.all.DigitalClock == "object")
	{
	  document.all.DigitalClock.innerHTML = getCurrentTime(true);

	  window.setTimeout("tick();", 995);
	}
}

	window.onload = tick;

function createToday(InclLeadingZero)
{
  var get_Date = new Date();

  var crt_Day = get_Date.getDate();
  var crt_Month = get_Date.getMonth() + 1;
  var crt_Year = get_Date.getFullYear();

  if (crt_Day < 10 && InclLeadingZero)
  	crt_Day = "0" + crt_Day;
  if (crt_Month < 10 && InclLeadingZero)
  	return "0" + crt_Month + "/" + crt_Day + "/" + crt_Year;
  else
  	return crt_Month + "/" + crt_Day + "/" + crt_Year;
}
// stop hiding -->
