// JavaScript Document

var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
<!-- timeValue += ((seconds < 10) ? ":0" : ":") + seconds; -->
timeValue += (hours >= 12) ? "pm" : "am";
var clockElement = document.getElementById('myClock');
clockElement.innerHTML = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}

function GetDay(nDay)
{
	var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
	                     "Thursday","Friday","Saturday");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new Array("January","February","March","April","May","June",
	                       "July","August","September","October","November","December");
	return Months[nMonth] 	  	 
}

function DateString()
{
	var Today = new Date();
	var suffix = "th";
	switch (Today.getDate())
	{
		case 1:
		case 21:
		case 31: 
			suffix = "st"; break;
		case 2:
		case 22:
			suffix = "nd"; break;
		case 3:
		case 23:
			suffix = "rd"; break;
	};

	<!-- var strDate = GetDay(Today.getDay()) + " " + GetMonth(Today.getMonth());-->
	var strDate = GetMonth(Today.getMonth());
	<!-- strDate += " "+ Today.getDate() + suffix + ", " + Today.getFullYear();-->
	strDate += " "+ Today.getDate() + ", " + Today.getFullYear();
	var dateElement = document.getElementById('myDate');
	dateElement.innerHTML = strDate;
}