function toggleNode(nodeName)
{
	var switchChar;
	var node = document.getElementById(nodeName);
	with (node.style)
	{
		if (visibility == "hidden")
		{
			height = "auto";
			visibility = "visible";
			switchChar = "-";
		}
		else
		{
			height = "0px";
			visibility = "hidden";
			switchChar = "+";
		}
	}

	var nodeSwitch = document.getElementById("x" + nodeName);
	nodeSwitch.innerHTML = switchChar;
}

function printRaceDetail(printURL)
{
	window.open(printURL, '_blank', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
}

function viewRace(raceURL)
{
	window.open(raceURL, '_self'); 
}

function hiliteRow(raceName)
{
	var row = document.getElementById(raceName);

	with (row)
	{
		style.color = "#4040ff";
		style.cursor = "hand";
		style.textDecoration = "underline";
	}
}

function unhiliteRow(raceName)
{
	var row = document.getElementById(raceName);

	with (row)
	{
		style.color = "black";
		style.cursor = "auto";
		style.textDecoration = "none";
	}
}

