

	
	function showMilitaryTime() {
/*		if (document.theForm.showMilitary[1].checked) {
			return true
		}
		return false
*/      return true;		
	}
	
	function showTheHours(theHour) {
		if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
			return (theHour)
		}
		if (theHour == 0) {
			return (12)
		}
		return (theHour-12) 
	}
	
	function showZeroFilled(inValue) {
		if (inValue > 9) {
			return ":" + inValue
		}
		return ":0" + inValue
	}
	
	function showAmPm() {
		if (showMilitaryTime()) {
			return ("")
		}
		if (now.getHours() < 12) {
			return (" am")
		}
		return (" pm")
	}
	
	function showTheTime(year,month,date,hours,minutes,seconds) {
		now = new Date(year,month,date,hours,minutes,seconds);
		//seconds++;
		//alert(year);
		
		document.getElementById('showTime').innerText = showTheHours(now.getHours()) +  showZeroFilled(now.getMinutes()) + showZeroFilled(now.getSeconds()) + showAmPm()
		year2=year;
		month2=month;
		date2=date;
		hours2=hours;
		minutes2=minutes;
		seconds2=seconds+1;
		setTimeout("showTheTime(year2,month2,date2,hours2,minutes2,seconds2)",1000)
	}
	
	