
	//_________________________________________________________________
			
	// Functionality to highlight and select a table row.
	var preEl;
	var originalBackgroundColor;
	var originalTextColor;

  	// Selects a table row and highlights it with gold background and maroon text.
	function selectTableRow(el) {

  		backColor = "gold";
  		textColor = "maroon";
  		if (typeof(preEl)!="undefined") {
  			preEl.style.backgroundColor=originalBackgroundColor;
  			try {
  				highlightTableRow(preEl,originalTextColor, originalBackgroundColor);
  			} catch(e){ ; }
  		}
  		originalBackgroundColor = el.style.backgroundColor;
  		originalTextColor = el.style.color;
  		el.style.backgroundColor = backColor;
  		try {
  			highlightTableRow(el,textColor,backColor);
  		} catch(e){ alert(e);}
  		preEl = el;
  	}
  	
	// Sets the text and background colors of the cells within the table
	// row to the specified values.
  	function highlightTableRow(a_obj,newColor, newBackColor){ 
  		for (i=0; i<a_obj.cells.length; i++) {
  			a_obj.cells[i].style.color = newColor;
		a_obj.cells[i].style.backgroundColor = newBackColor;
  		}
  	}
