function GetDay(nDay)
{
	var Days = new Array("Sun","Mon","Tue","Wed","Thur","Fri","Sat");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new
Array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"
);
	return Months[nMonth] 	  	 
}

function GetHour(nHour,nSeconds)
{
	if (nHour>12)
		{ nHour-=12
		return nHour+":" + nSeconds + "pm"}
		else
		{ return nHour+":" +nSeconds +"am"}
}
	

function DateString()
{
	var Today = new Date();
	var suffix = "th";
	switch (Today.getDate())
	{
		case 1:
		case 21:
		case 31: 
			suffix = "st"; break;
		case 2:
		case 22:
			suffix = "nd"; break;
		case 3:
		case 23:
			suffix = "rd"; break;
	};

	var strDate = GetHour(Today.getHours(),Today.getMinutes()) + " CT, ";
	strDate += GetDay(Today.getDay()) + " " + GetMonth(Today.getMonth())  + " " +
Today.getDate();
	
	return strDate
}

function ShowHelp (topic) {
	var w = window.open("<%=path%>Help/help"+topic+".jsp","Help","width=600,height=600,toolbar=no,menubar=yes,scrollbars=yes");
	w.focus();
}
