// Scripts written by Steven Kohus
// Copyright (C) 2005

function FormatDate(myDate)
{
	//Converts a date in the format of "1/1/2000" to "January 1, 2000"
	var myMonth=new  Array("January","February","March","April","May","June","July","August","September","October","November","December");
	var newDate = new Date(myDate);
	var Msg = myMonth[newDate.getMonth()]+" "+newDate.getDate()+", "+newDate.getYear();
	return Msg;
}

function goToFeedback()
{
	// Redirects the user to the feedback form.
	window.location="feedback.aspx";
}

function insertGreeting()
{
	// Inserts a greeting based on the time from the user's locality.
	dtToday = new Date();
	dtNow = dtToday.getTime();
	dtToday.setTime(dtNow);
	dtHour = dtToday.getHours();
	
	if (dtHour > 18) display = "Evening";
	else if (dtHour > 12) display = "Afternoon";
	else display = "Morning";

	document.write("Good " + display + "!");
}

function color(imgid)
{
	document.getElementById(imgid).style.filter=false;
}
function gray(imgid)
{
	document.getElementById(imgid).style.filter="invert()";
}