<!--
// -----------------------------------------------------------------
// Function    : setSelection
// Language    : JavaScript
// Description : Sets a given drop-down selection list to a given
//               value provided that value exists in the drop list.
// Copyright   : (C) 2004 Floating Point Technology
// -----------------------------------------------------------------
function setSelection( selectionObject, stringValue )
{
  var lowerStringValue = stringValue.toLowerCase();
  var optionList = selectionObject.options;
  var i = optionList.length;
  while ( i-- > 0 )
  {
    if ( optionList[ i ].value.toLowerCase() == lowerStringValue )
    {
      selectionObject.selectedIndex = i;
      return true;
    }
  }
  return false;
}
//-->
