
	
		function highlightResultsRow(item) {
		item.style.backgroundColor = 'rgb(152,104,567)';
		item.style.color = 'rgb(255,255,255)';
		item.style.cursor = 'pointer';	
	}
	function unhighlightResultsRow(item) {
		item.style.backgroundColor = 'rgb(255,255,255)';
		item.style.color = 'rgb(0,0,0)';
	}	
	
	
	function resultsURL(ID) {
		location.href = "/ranking/results.php?race_id=" + ID;
	}	
	
	function athletesURL(ID) {
		location.href = "/ranking/athletes.php?paddler_id=" + ID;
	}
	
	function locationURL(ID) {
		location.href = "/ranking/calendar.php?race_id=" + ID;
	}

	
	function highlightInput(object) {
		
		object.style.borderColor='rgb(246,134,32)';
		object.style.borderStyle='solid';
		object.style.borderWidth='1px';
		object.style.color='navy';
	}
	
	function unhighlightInput(object) {
		
		if (object.value) {
			object.style.color='navy';
		}
		object.style.borderColor='#BBB';
		object.style.borderWidth='1px';	
	}
	
	function checkUncheckAll(theElement) {
     var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
      if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
	  theForm[z].checked = theElement.checked;
	  }
     }
    }
	
	
	
	
	
	