var defaultBgColor = "#F7F7F7";
var highlightBgColor = "#FFFFFF";
var selectBgColor = "#FFFFFF";
var oldBgColor = "#F7F7F7";
var selectedObj;
var selectedSubObj;

function highlight(thisObj)
{
return
  oldBgColor = thisObj.bgColor;
  thisObj.bgColor = highlightBgColor;
}

function unHighlight(thisObj)
{
return
  thisObj.bgColor = oldBgColor;
}

function selectOption(thisObj)
{
return
  if (selectedObj) selectedObj.bgColor = defaultBgColor;
  thisObj.bgColor = selectBgColor;
  oldBgColor = selectBgColor;
  selectedObj = thisObj;
}

function selectSubOption(thisObj)
{
  if (selectedSubObj) selectedSubObj.bgColor = defaultBgColor;
  thisObj.bgColor = selectBgColor;
  oldBgColor = selectBgColor;
  selectedSubObj = thisObj;
}