function newWindow()
{
	helpWindow = window.open("","helpWin","width=330,height=250")
}

function gotosite(site) {
	if (site != "") {
		self.location=site;
	}
}

function goToPage(dci) {
	var value = dci.options[dci.selectedIndex].value;
	
	if (value == "Off")  {
		alert("Please make a selection.");
		return false;
	}
	window.top.location.href ="http://www.ahnell.com/scffl2002/" + value;
}

function showTheHours(theHour)
{
	if (theHour > 0 && theHour < 13)
	{
		return (theHour)	
	}
	if (theHour == 0)
	{
		return (12)
	}
	return (theHour-12)
}

function showZeroFilled(inValue)
{
	if (inValue > 9)
	{
		return ":" + inValue
	}
	return ":0" + inValue
}

function showAmPm(inValue)
{
	if(inValue < 12)
	{
		return (" AM")
	}
	return (" PM")
}

function showDate()
{
	var d = new Date()
	var month = d.getMonth() + 1
	var printedDate = month + "/" + d.getDate() + "/" + d.getFullYear()
	var printedTime = showTheHours(d.getHours()) + showZeroFilled(d.getMinutes()) + 	showAmPm(d.getHours())
	document.write(printedDate + "<BR>" + printedTime)
}

