<!-- // Activate cloak for old browsers

/*-------------------------------------------------------------------------+
 Procedure Name: getChecked

    Description: Get the checked value of an group of check boxes or
                 radio buttons.

        Returns: The checked value.
+--------------------------------------------------------------------------+
|                             A r g u m e n t s                            |
+--------------------------------------------------------------------------+
 Name               I/O  Description
 ================== ===  ==================================================
 oControl            I   The checkboxes or radios to examine.
+-------------------------------------------------------------------------*/
function getChecked(oControl)
  {
  var vCheckedValue = new Array(1);

  // Check to see if there is only one item or an array of items
  if (oControl.length == null)
    {
    if (oControl.checked)
      vCheckedValue[0] = oControl.value;
    else
      vCheckedValue[0] = null;
    }
  else
    {
    var iControl, nPush;
    var nChecked = 0;

    // Set an initial return
    vCheckedValue[0] = null;

    // Loop through each item
    for (iControl = 0; iControl < oControl.length; iControl++)
      {
      // Find out if this item is checked
      if (oControl[iControl].checked)
        {
        // Exit loop for radio controls as only one can be selected anyway
        if (oControl[iControl].type == "radio")
          {
          vCheckedValue[0] = oControl[iControl].value;
          break;
          }
        else
          {
          if (nChecked == 0)
            vCheckedValue[nChecked] = oControl[iControl].value;
          else
            {
            // Array.push is not recognized in JScript < 5.5
            if (document.all == null)
              vCheckedValue.push(oControl[iControl].value);
            else
              vCheckedValue = vCheckedValue.concat(oControl[iControl].value);
            }
          }
        nChecked += 1;
        }
      }
    }
  return(vCheckedValue);
  }

// Deactivate cloak -->

