// JavaScript Document
// Original Javascript from nanaina.com designed by C. Taha.  Revised by Tanner Naeher, coyote6.com.

// Write the date function.
function write_date() {
	// Days of the Week.
	var day_names = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	// Months of the Year.
	var month_names = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	// Gets the Current Date.
	var now = new Date();
	// Creates the Date According to Users Computer's Time.
	var date_string = day_names[now.getDay()] + " - " + month_names[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear();
	// Writes the Date into the Element with the Date ID.
	document.getElementById("date").innerHTML = date_string;
}