//-----------------------------------------------------------------------------------------
//
//  JavaScript Document
//
//  Utility script for adding and removing highlight colors.
//
//-----------------------------------------------------------------------------------------
function highlight(anElement) {
//-----------------------------------------------------------------------------------------
  // alert("Highlight");
  anElement.bgColor="#FFFFF0";              // change cell background color
  aCell = anElement.childNodes[0];          // set <a> element
  aCell.style.color="#000000";              // change text color
}
//-----------------------------------------------------------------------------------------
function restore(anElement) {
//-----------------------------------------------------------------------------------------
  // alert("Restore");
  anElement.bgColor="#000033";              // change cell background color
  aCell = anElement.childNodes[0];          // set <a> element
  aCell.style.color="#FFFFF0";              // change text color
}
//-----------------------------------------------------------------------------------------
function changeA(anElement,aColor) {
//-----------------------------------------------------------------------------------------
  anElement.style.color=aColor;
}
//-----------------------------------------------------------------------------------------
function changeColor(anElement,aColor) {
//-----------------------------------------------------------------------------------------
  //
  // http://www.webreference.com/programming/javascript/definitive/chap17/14.html
  //
  // Eventually update code to use the nextNode() function.
  //
  // if (document.createNodeIterator && document.createTreeWalker) {
  //   alert("Traversal options enabled.");
  // } else {
  //   alert("Opps.  Traversal API not supported yet.");
  // }
  //
  // alert("Check: " + anElement.name);
  // anElement.bgColor=aColor;
  // theParent = anElement.parentNode;
  // alert("Check: " + theParent.name);
  // aCell = theParent.childNodes[1];    Button 02
  // buttonCell = theParent.childNodes[0];    // button 01
  // alert("Button: " + buttonCell.name);
  // aCell = buttonCell.childNodes[0];
  // alert("Second: " + aCell.name);
  // aCell = anElement.childNodes[0];          // set <a> element
  // aCell.style.color="#000000";              // change text color
}
//-----------------------------------------------------------------------------------------
function changeC(anElement,aColor) {
//-----------------------------------------------------------------------------------------
  anElement.style.color=aColor;
}
//-----------------------------------------------------------------------------------------
//  End of applyHighlight function.
//