//creates a date and time stamp for use in the rates pages
function getRefreshTime() {
	var currentTime = new Date()
	var hours = currentTime.getHours()
	var am_pm = "AM"
	if(hours > 11) { am_pm = "PM"}
	//adjust from 24 hour time to 12 hour time
	if (hours   > 12) { hours = hours - 12; }
	if (hours   == 0) { hours = 12;        }
	var minutes = currentTime.getMinutes()
		//add a zero before minues 1-9 for display purposes	
		if (minutes < 10)
		minutes = "0" + minutes
	var year = currentTime.getYear()
	var stYear = String(year).substring(2) //makes it a 2 digit date instead of 4
	var month = currentTime.getMonth() + 1
	var day = currentTime.getDate()
	
	//returns the name of the current day, calculated from the day number
	var dayNumber = currentTime.getDay()
	var dayName = new Array(7);
	dayName[0]  = "Sunday";
	dayName[1]  = "Monday";
	dayName[2]  = "Tuesday";
	dayName[3]  = "Wednesday";
	dayName[4]  = "Thursday";
	dayName[5]  = "Friday";
	dayName[6]  = "Saturday";
	var dayOfWeek   = dayName[dayNumber];

	//begin the process of writing the data out to the page
	document.write(dayOfWeek + ", ")
	document.write(month + "/" + day + "/" + stYear + " ")
	document.write(hours + ":" + minutes + " ")
	document.write(am_pm)

}

