theDate = function(){

	var currentTime = new Date();
	var month = currentTime.getMonth();
	var day = currentTime.getDate();
	var year = currentTime.getFullYear();
	var hours = currentTime.getHours();
	var minutes = currentTime.getMinutes();
	
	var month_name=new Array(12);
		month_name[0]="January"
		month_name[1]="February"
		month_name[2]="March"
		month_name[3]="April"
		month_name[4]="May"
		month_name[5]="June"
		month_name[6]="July"
		month_name[7]="August"
		month_name[8]="September"
		month_name[9]="October"
		month_name[10]="November"
		month_name[11]="December"
												
	if (minutes < 10){
		minutes = "0" + minutes;
	}
	
	var dn="pm"
	if (hours<12) dn="am";
	if (hours>12) hours=hours-12;
	if (hours==0) hours=12;
						
	return month_name[month]+ " " +day+ ", " +year+ ", "+hours+ ":" +minutes+""+dn;
}