// This script library is Copyright (c) 2005 John Hoffman, and is
// provided under license to Rainbow Valley CHC. Use by any other
// party for any purpose whatsoever is strictly forbidden.

function TabHovHL(p_obj,p_Color)
{
  while (p_obj.tagName.toUpperCase()!='TD' && p_obj!=null)
  {
    p_obj=(document.all?p_obj.parentElement:p_obj.parentNode);
  }
  if (p_obj)
  {
    if(p_Color==null)
    {
      p_obj.bgColor=p_obj.id;
    }
    else
    {
      p_obj.bgColor=p_Color;
    }
  }
}
