<!-- // Activate cloak for old browsers

/*-------------------------------------------------------------------------+
 Procedure Name: getSelected

    Description: Get the selected value or text of an option in a select.

        Returns: The selected value or text, null if nothing is selected.
+--------------------------------------------------------------------------+
|                             A r g u m e n t s                            |
+--------------------------------------------------------------------------+
 Name               I/O  Description
 ================== ===  ==================================================
 optThis             I   The option to examine.
 fText               I   Whether to get the text or value. true for the
                          text; false, null, or leave out for the value.
+-------------------------------------------------------------------------*/
function getSelected(optThis, fText)
  {
  var iOption;
  var szSelValue = null;

  // Loop through each option
  for (iOption = 0; iOption < optThis.options.length; iOption++)
    {
    // Find out if this option is selected
    if (optThis.options[iOption].selected)
      {
      // Save the value and display text in the return variables
      if (fText)
        szSelValue = optThis.options[iOption].text;
      else
        szSelValue = optThis.options[iOption].value;

      break;
      }
    }
  return(szSelValue);
  } // GetSelected

// Deactivate cloak -->
