function inset(btn)
{
btn.style.border="inset 3"
}

function outset(btn)
{
btn.style.border="outset 3"
}

function setClock()
{
	var weekday = new Array(7);
		weekday[0] = "Sunday";
		weekday[1] = "Monday";
		weekday[2] = "Tuesday";
		weekday[3] = "Wednesday";
		weekday[4] = "Thursday";
		weekday[5] = "Friday";
		weekday[6] = "Saturday";

	var month = new Array(12);
		month[0] = "January";
		month[1] = "February";
		month[2] = "March";
		month[3] = "April";
		month[4] = "May";
		month[5] = "June";
		month[6] = "July";
		month[7] = "August";
		month[8] = "September";
		month[9] = "October";
		month[10] = "November";
		month[11] = "December";

	var now = new Date();
	var y = now.getYear();
	var m = now.getMonth();
	var d = now.getDate();
	var day = now.getDay();
	var hour = now.getHours();
	var min = now.getMinutes();
	var sec = now.getSeconds();
	
	var display = weekday[day] + " " + d + " " + month[m] + " " + y + " ";
	display += ((hour > 12) ? hour - 12 : hour);
	display += ((min < 10) ? ":0" : ":") + min;
	display += ((sec < 10) ? ":0" : ":") + sec;
	display += ((hour >=12) ? " pm" : " am");
	
	document.clockdisplay.clock.value = display;
	setTimeout("setClock()",1000);
	
}