var arrDay = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');var arrMonth = new Array('January','February','March','April','May','June','July','August','September','October','November','December');function outputToday() {	var datToday = new Date();	var theDay = datToday.getDay();	var theMonth = datToday.getMonth();	var theDate = datToday.getDate();	var theYear = datToday.getFullYear();	document.write(arrDay[theDay] + ", " + arrMonth[theMonth] + " " + theDate + ", " + theYear);}function outputNow() {	var datToday = new Date();	var theDay = datToday.getDay();	var theMonth = datToday.getMonth();	var theDate = datToday.getDate();	var theYear = datToday.getFullYear();	var ampm;	var theHour = datToday.getHours();	if (theHour > 0 && theHour < 10) {		theHour = '0' + theHour;		ampm = 'AM';	}	if (theHour == 12) {		ampm = 'PM';	}	if (theHour > 12 && theHour < 20) {		theHour = '0' + (theHour - 12);		ampm = 'PM';	}	if (theHour > 20) {		theHour = theHour - 12;		ampm = 'PM';	}	if (theHour == 0) {		theHour = 12;		ampm = 'AM';	}	var theMinute = datToday.getMinutes();	if (theMinute < 10) {		theMinute = '0' + theMinute;	}	document.write(arrDay[theDay] + ", " + arrMonth[theMonth] + " " + theDate + ", " + theYear + " " + theHour + ":" + theMinute + " " + ampm + " " + "EST");}function nextMonth() {	var datToday = new Date();	var theMonth = datToday.getMonth() + 1;	if (theMonth > arrMonth.length) {		theMonth = theMonth - 11;	}	document.write(arrMonth[theMonth]);}function outputFuture(theIncrement) {	var datToday = new Date();	var theMs = datToday.getTime();	var intMod = theIncrement * 24 * 60 * 60 * 1000;	var theModMs = theMs + intMod;	var datModDate = new Date(theModMs);	var theMonth = datModDate.getMonth();	theMonth++; // adjust for 0 default since this is numeric representation	if (theMonth < 10) {		theMonth = '0' + theMonth;	}	var theDate = datModDate.getDate();	if (theDate < 10) {		theDate = '0' + theDate;	}	var theYear = datModDate.getFullYear();	document.write(theMonth + '/' + theDate + '/' + theYear);}function getFuture(theTextField, theIncrement) {	var datToday = new Date();	var theMs = datToday.getTime();	var intMod = theIncrement * 24 * 60 * 60 * 1000;	var theModMs = theMs + intMod;	var datModDate = new Date(theModMs);	var theMonth = datModDate.getMonth();	theMonth++; // adjust for 0 default since this is numeric representation	if (theMonth < 10) {		theMonth = '0' + theMonth;	}	var theDate = datModDate.getDate();	if (theDate < 10) {		theDate = '0' + theDate;	}	var theYear = datModDate.getFullYear();	document.forms[0].elements[theTextField].value = theMonth + '/' + theDate + '/' + theYear;}function outputFullFuture(theIncrement) {	var datToday = new Date();	var theMs = datToday.getTime();	var intMod = theIncrement * 24 * 60 * 60 * 1000;	var theModMs = theMs + intMod;	var datModDate = new Date(theModMs);	var theDay = datModDate.getDay();	var theMonth = datModDate.getMonth();	var theDate = datModDate.getDate();	var theYear = datModDate.getFullYear();	document.write(arrDay[theDay] + ", " + arrMonth[theMonth] + " " + theDate + ", " + theYear);}