function ticktock() {
	var now = new Date();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds();
	var day = now.getDate();
	var year = now.getYear();
	var td="AM";

	if (hours>12) {
	  td="PM";
	  hours = hours-12;
	}
	if (hours==0) {hours = 12}
	if (minutes<=9) {minutes = "0"+minutes}
	if (seconds<=9) {seconds = "0"+seconds}
	if (day <= 9) {day = "0"+day}

	month = now.getMonth();
	  if (month == 0) month='January';
	  if (month == 1) month='Febuary';
	  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';

	var timestring = hours+":"+minutes+":"+seconds+" "+td;
	var datestring = month+" "+day+", "+year;
	timedatenow = "You Visited On:<br>"+datestring+"<br>"+timestring;
	clocknow.innerHTML = timedatenow
}
function loadclock() {if (document.all) setInterval("ticktock()",1000)}
window.onload=loadclock;