//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @package Starweb Webshop System
 * @version See version-file
 * @copyright Copyright (c) 2000 - 2008, Ehandelslogik i Lund AB
 * 
 * @author Ehandelslogik i Lund AB, org.no 556696-9019  (Starweb)
 *  Country: Sweden
 *  Homepage: www.starweb.se
 *  E-mail: support@starweb.se
 * 
 * License:
 * This program is not "free" software and restrictions apply!
 * This file as well as all other files containing the code to our software may ONLY be used and/or redistributed with written permission from us.
 * You'll find information regarding our conditions and pricing on our homepage. Contact us immediately if any of these conditions are not clear.
 */
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
 * @name Function: Trim String
 * @access public
 *
 * @param string sVal
 * 
 * @return string
 */
function TrimStr(sVal)
{
   if(sVal != '')
   {
      while(sVal.substring(0, 1) == ' ')
      { sVal = sVal.substring(1, sVal.length); }
      
      while(sVal.substring(sVal.length - 1, sVal.length) == ' ')
      { sVal = sVal.substring(0, sVal.length - 1); }
   }
   
   
   return sVal;
}
