// JavaScript Document


<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var clockID = 0;
function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();
	var dat_hour = tDate.getHours()
	var dat_min = tDate.getMinutes()
	var dat_sec = tDate.getSeconds()
		
	if (dat_hour > 11) 
		{ 
			dat_ampm = " pm"
		}
	else
		{
			dat_ampm = " am"
		}		
	if(dat_hour > 12)
		{
		dat_hour = dat_hour - 12 
		}
	var dat_check = dat_hour +2;
	if(dat_check == 2)
		{
		dat_hour = 12;
		}
	
  /*document.theClock.theTime.value = "" 
                                   + dat_hour + ":" 
                                   + showFilled(tDate.getMinutes()) + ":" 
                                   + showFilled(tDate.getSeconds()) + dat_ampm;*/
								   
	
	
	
	
	
	/*var timegmt = date.toGMTString();
	// split the GMT string at spaces
	time_string = timegmt.split(' ');

	// assign variables
	week = time_string[0];
	day = time_string[1];
	mon = time_string[2];
	year = time_string[3];
	hms = time_string[4];
	
	var hour = hms_string[0] - 0;
	var min = hms_string[1];

   
   */
   clockID = setTimeout("UpdateClock()", 1000);
}

function StartClock() {
   //clockID = setTimeout("UpdateClock()", 500);
   //UpdateClock();
   
}

function KillClock() {
   //if(clockID) {
      //clearTimeout(clockID);
      //clockID  = 0;
   //}
}

//-->


