// JavaScript Document
<!-- Begin
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) ? " p.m." : " a.m."

var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
curr_month++;
var curr_year = d.getFullYear();
switch(curr_month) {
	case 1:
		format_month = "January";
		break;
	case 2:
		format_month = "February";
		break;
	case 3:
		format_month = "March";
		break;
	case 4:
		format_month = "April";
		break;
	case 5:
		foramt_month = "May";
		break;
	case 6:
		format_month = "June";
		break;
	case 7:
		format_month = "July";
		break;
	case 8:
		format_month = "August";
		break;
	case 9:
		format_month = "September";
		break;
	case 10:
		format_month = "October";
		break;
	case 11:
		format_month = "November";
		break;
	case 12:
		format_month = "December";
		break;
}

//document.write(format_month + " " + curr_date + ", " + curr_year + " " + curr_hour + ":" + format_min + " " + a_p);

var currentTimeSpan = document.getElementById("time");
currentTimeSpan.innerHTML = format_month + " " + curr_date + ", " + curr_year + " " + timeValue;



//document.clock.face.value = timeValue;




timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function  displayTime() {
stopclock();
showtime();
}
