/* $Id: functions.js,v 1.11 2002/01/03 12:09:30 loic1 Exp $ */
/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
 function getObjectByName(objectName){
  if (document.getElementById)
   // DOM-compilant: NN6+, IE5+, Opera5+
   return document.getElementById(objectName)
  else if(document.all)
   // IE4
   return document.all (objectName)
  else if(document.layers)
   // Netscape 4
   //  this handles 'root' layers only
   // (that belongs to document itself, not to any other layer).
   return document.layers[objectName];
  else
  // other browsers - no way to get object
  return null;
 }

 function setPointer(theCell, theHref, theBGColor, thePointerColor)
 {
    Href=getObjectByName(theHref);
    theCell.style.backgroundColor = theBGColor;
    theCell.style.color = thePointerColor;
    Href.style.color = thePointerColor;
    return true;
 } // end of the 'setPointer()' function


