
function loadSelectOptions(oSelect, sItemsToLoad)
{
  var iCount;
  var aItemsToLoad;
  var aValues;

  oSelect.options.length = 0;
  if (sItemsToLoad.length > 0)
  {
    oSelect.disabled = true;
    aItemsToLoad = sItemsToLoad.split(",");
    for (iCount = 0; iCount < aItemsToLoad.length; iCount++)
    {
      aValues = aItemsToLoad[iCount].split("|");
      oSelect.options[oSelect.options.length] = new Option(decode(aValues[1]), aValues[0], aValues[2] == "1", aValues[2] == "1");
    }
    oSelect.disabled = false;
  }
}

