<!-- // Activate cloak for old browsers

/*-------------------------------------------------------------------------+
 Function Name: isNum

   Description: Check the control's value to make sure it is a number.

       Returns: true if the value is okay, false if not.
 --------------------------------------------------------------------------
                             A r g u m e n t s
 --------------------------------------------------------------------------
 Name               I/O  Description
 ================== ===  ==================================================
 oControl            I   The control to examine.
 szControlName       I   The display name of the control.
 fHideAlert          I   True to hide alert; false, null, or leave out to
                          show alert.
+-------------------------------------------------------------------------*/
function isNum(oControl, szControlName, fHideAlert)
  {
  // Remove any leading or trailing spaces
  oControl.value = trim(oControl.value);
  var szCheck = oControl.value;

  if (szCheck.length < 1)
    {
    // No entry
    if (! fHideAlert)
      {
      alert("Please enter a number in the '" + szControlName + "' field.");
      oControl.focus();
      }
    return(false);
    }
  else if (isNaN(szCheck))
    {
    // Not a number
    if (! fHideAlert)
      {
      alert("Please enter only numeric characters in the '" + szControlName + "' field.");
      oControl.focus();
      }
    return(false);
    }
  return(true);
  }

// Deactivate cloak -->

