var theSuffix = "th"
var theDate = new Date();
var ampm="";
var ampmhour="";

var NowTime = "";
var NowDay = "";
var NowDate = "";
var ShortDate = "";

	thehours = theDate.getHours();
	ampmhour  =  (thehours > 12) ? thehours - 12 : thehours;
	ampm =  (thehours >= 12) ? 'pm' : 'am';
	thetime = theDate.getMinutes();
	theminutes =  ((thetime < 10) ? ':0' : ':') + thetime;
NowTime = (ampmhour + theminutes + ampm + " ");

	theDay = theDate.getDay();
	theNum = theDate.getDate();
	theMonth = theDate.getMonth();
	theYear = theDate.getFullYear();
		var Days = new Array();
			Days[0] = 	'Sunday';
			Days[1] = 	'Monday';
			Days[2] = 	'Tuesday';
			Days[3] = 	'Wednesday';
			Days[4] = 	'Thursday';
			Days[5] = 	'Friday';
			Days[6] = 	'Saturday';
NowDay = (Days[theDay] + " ");

		var Months = new Array();
			Months[0] = 	'January';
			Months[1] = 	'February';
			Months[2] = 	'March';
			Months[3] = 	'April';
			Months[4] = 	'May';
			Months[5] = 	'June';
			Months[6] = 	'July';
			Months[7] = 	'August';
			Months[8] = 	'September';
			Months[9] = 	'October';
			Months[10] = 	'November';
			Months[11] = 	'December';

	if (theNum == '1' || theNum == '21' || theNum == '31') var theSuffix = 'st'
	else if (theNum == '2' || theNum == '22')  var theSuffix = 'nd'
	else if (theNum == '3' || theNum == '23')  var theSuffix = 'rd'

NowDate = (theNum +  theSuffix +  " " + Months[theMonth] + " " + theYear);

ShortDate =  (theNum +  "/" + (theMonth + 1) + "/" + theYear);