<!-- // Activate cloak for old browsers

/*------------------------------------------------------------------------+
 Function Name: lTrim

   Description: Remove any leading spaces.

       Returns: String without leading spaces.

 --------------------------------------------------------------------------
                             A r g u m e n t s
 --------------------------------------------------------------------------
 Name               I/O  Description
 ================== ===  ==================================================
 szToTrim            I   The string to trim.
+------------------------------------------------------------------------*/
function lTrim(szToTrim)
  {
  var nChar;

  // Find the first nonspace character from the left
  for (nChar = 0; nChar < szToTrim.length; nChar++)
    {
    if (szToTrim.charAt(nChar) != ' ')
      break;
    }
  return (szToTrim.substr(nChar));
  }

/*------------------------------------------------------------------------+
 Function Name: rTrim

   Description: Remove any trailing spaces.

       Returns: String without trailing spaces.

 --------------------------------------------------------------------------
                             A r g u m e n t s
 --------------------------------------------------------------------------
 Name               I/O  Description
 ================== ===  ==================================================
 szToTrim            I   The string to trim.
+------------------------------------------------------------------------*/
function rTrim(szToTrim)
  {
  var nChar;

  // Find the first nonspace character from the right
  for (nChar = szToTrim.length - 1; nChar > -1; nChar--)
    {
    if (szToTrim.charAt(nChar) != ' ')
      break;
    }
  return (szToTrim.substring(0, nChar + 1));
  }

/*------------------------------------------------------------------------+
 Function Name: trim

   Description: Remove any leading or trailing spaces.

       Returns: String without leading or trailing spaces.

 --------------------------------------------------------------------------
                             A r g u m e n t s
 --------------------------------------------------------------------------
 Name               I/O  Description
 ================== ===  ==================================================
 szToTrim            I   The string to trim.
+------------------------------------------------------------------------*/
function trim(szToTrim)
  {
  var szTemp;

  // Trim the left and then the right
  szTemp = lTrim(szToTrim);
  return rTrim(szTemp);
  }

// Deactivate cloak -->
