var today = new Date();
var theWeekDay = today.getDay() + 1;
var theMonth = today.getMonth() + 1;
var theDay = today.getDate();
var theYear = today.getFullYear();
var theHours = today.getHours();
var theampm = "A.M.";
if (theHours>=12) {theampm = "P.M."};
if (theHours>=13) {theHours=theHours-12}; 
if (theHours==0) {theHours=12};
var theMins = today.getMinutes();
if (theMins < 10) {theMins = "0" + theMins};
var theSecs = today.getSeconds();
if (theSecs < 10) {theSecs = "0" + theSecs};

if (theWeekDay == 1) {theWeekDay = "Sunday"; }
if (theWeekDay == 2) {theWeekDay = "Monday"; }
if (theWeekDay == 3) {theWeekDay = "Tuesday"; }
if (theWeekDay == 4) {theWeekDay = "Wednesday"; }
if (theWeekDay == 5) {theWeekDay = "Thursday"; }
if (theWeekDay == 6) {theWeekDay = "Friday"; }
if (theWeekDay == 7) {theWeekDay = "Saturday"; }

if (theMonth == 1) {theMonth = "January"; }
if (theMonth == 2) {theMonth = "February"; }
if (theMonth == 3) {theMonth = "March"; }
if (theMonth == 4) {theMonth = "April"; }
if (theMonth == 5) {theMonth = "May"; }
if (theMonth == 6) {theMonth = "June"; }
if (theMonth == 7) {theMonth = "July"; }
if (theMonth == 8) {theMonth = "August"; }
if (theMonth == 9) {theMonth = "September"; }
if (theMonth == 10) {theMonth = "October"; }
if (theMonth == 11) {theMonth = "November"; }
if (theMonth == 12) {theMonth = "December"; }
	
var days = new Array(8);
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date(document.lastModified);
var wday = days[dateObj.getDay() + 1];
var lmonth = months[dateObj.getMonth() + 1];
var date = dateObj.getDate();
var fyear = dateObj.getFullYear();
var Hours = dateObj.getHours();
var ampm = "A.M.";
if (Hours>=12) {ampm = "P.M."};
if (Hours>=13) {Hours-=12}; 
if (Hours==0) {Hours=12};
var Mins = dateObj.getMinutes();
if (Mins < 10) {Mins = "0" + Mins};
var Secs = dateObj.getSeconds();
if (Secs < 10) {Secs = "0" + Secs};
function copyWrite() {
document.write("<div align=center> <br> Today is " + theWeekDay + "<br>" +theMonth + " " + theDay + ", " + theYear  + "<br> " + theHours + ":" + theMins + ":" + theSecs + " " + theampm + "<br> Copyright &copy; 1999 - " + theYear + "<br> AASR Valley of Cleveland <br> Last modified on " + wday + "<br>" + lmonth + " " + date + ", " + fyear + "<br> " + Hours + ":" + Mins + ":" + Secs + " " + ampm + "</div>");
}


