
function showDateTime()
{
var ticktock = new Date();
var month = ticktock.getMonth();
var date = ticktock.getDate();
var year = ticktock.getFullYear();
var hours = ticktock.getHours();
var minutes = ticktock.getMinutes();
var APM = "AM";

	if (month==0) month = "January";
	if (month==1) month = "February";
	if (month==2) month = "March";
	if (month==3) month = "April";
	if (month==4) month = "May";
	if (month==5) month = "June";
	if (month==6) month = "July";
	if (month==7) month = "August";
	if (month==8) month = "September";
	if (month==9) month = "October";
	if (month==10) month = "November";
	if (month==11) month = "December";
	if (hours > 11) APM = "PM";
	if (hours > 12) hours = hours - 12;
	if (hours==0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;

var localDisplayValue = month + " " + date + ", " + year + " | " + hours + ":" + minutes + " " + APM;

document.write(localDisplayValue);
}

function clocks()
{
var ticktock = new Date();
var month = ticktock.getMonth();
var date = ticktock.getDate();
var year = ticktock.getFullYear();
var hours = ticktock.getHours();
var minutes = ticktock.getMinutes();
var APM = "AM";

	if (month==0) month = "January";
	if (month==1) month = "February";
	if (month==2) month = "March";
	if (month==3) month = "April";
	if (month==4) month = "May";
	if (month==5) month = "June";
	if (month==6) month = "July";
	if (month==7) month = "August";
	if (month==8) month = "September";
	if (month==9) month = "October";
	if (month==10) month = "November";
	if (month==11) month = "December";
	if (hours > 11) APM = "PM";
	if (hours > 12) hours = hours - 12;
	if (hours==0) hours = 12;
	if (minutes <= 9) minutes = "0" + minutes;

var localDisplayValue = month + " " + date + ", " + year + " | " + hours + ":" + minutes + " " + APM;

document.clock.localFace.value = localDisplayValue;
setTimeout("clocks()", 1);
}
