function hl(trow) {trow.bgColor = 'lightgreen';
} 
function unhl(trow) {trow.bgColor = 'white';
} 


function writeContents() {
document.write("<table border=1 cellpadding=3 cellspacing=0 align=right width=150><tr>");
document.write("<td bgcolor=ddeeee><font face=arial,helvetica><center><b>Sign up your<BR> team today!</B><BR>Race day is<BR> August 8.</font><BR><font face=arial,helvetica size=-1>");
document.write("<BR><A HREF='/application.html'>Entry Form</a><BR><A HREF='http://homepage.bci.net/greatrace/signup.html'>Enter On Line</a></font></center></td></tr></table>");
}

function sideBar(ev)  {
}

function menBott(yr) {
document.write("<TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD><td colspan=7><small><center><b>"+yr+" - </b>");
}

function menTop() {
document.write("<td colspan=5><font size=-1><CENTER><B>Look through results from over the years</B></CENTER></td><TD><font color=ddeeee>-</font>&nbsp;</TD><TD>&nbsp;</TD></tr><TR><TD>&nbsp;</TD>");
}

function rowBr() {
document.write("<TD>&nbsp;</TD></TR><TR><TD>&nbsp;</TD>");
}
targVal=new Array('res','10k','bike','canoe','grlong','5k','sbike','scanoe','grshrt')
resVal=new Array("Q",'10k','Long Bike','Long Canoe','Long Teams','5k','Short Bike','Short Canoe','Short Teams');
        function go(yrnum){ 
	var yn2=yrnum.substring(2,4)
	var yrInd='document.grselect.gr'+yn2+'.selectedIndex'
	var fname=targVal[eval(yrInd)]
	if (eval(yrInd)!=0){var parstring='parent.location.href = "../res'+yn2+'/'+fname+yn2+'.htm"';}  
	else {var parstring='parent.location.href = "../res'+yn2+'/'+yrnum+'res.htm"';}
	eval(parstring)
}

function selRes(i) {
yn=i.toString();ynd2=yn.substring(2,4);ynd4="'"+yn+"'";resVal[0]=yn
	if (i<1995) {var ti=4}
	else {var ti=8}
document.write('<td><select name="gr'+ynd2+'" size=1 onchange="go('+ynd4+')">');
for (var k=0;k<=ti;k++) {document.write('<OPTION VALUE="">'+resVal[k]);}
document.write('</select></td>');
}

function constMenu(nyear,pos) {
for (var j=2009;j>=1988;j--) {
if (j!=nyear){selRes(j);
	if (pos=="S") {document.write("</TR><TR>");}
	else {	if (j==2003) {if (nyear<2003) {rowBr()}}
		if (j==2002) {if (nyear>2002) {rowBr()}}
		if (j==1996) {if (nyear<1996) {rowBr()}}
		if (j==1995) {if (nyear>1995) {rowBr()}}

	     }
}}}
