/* COPYRIGHT NOTICE 
** This notice must stay intact for legal use.  
** This software is part of RE Designs Web Solutions, software applications
** by RE designs, and is provided "AS IS", without a warranty of any kind.  
** Copyright RE Designs, All rights reserved.                                 
** Use of any kind of part or all of this software or modification of this    
** software requires a license from RE Designs. Use or modification of        
** this software without a license constitutes Software Piracy and will       
** result in legal action from RE Designs.                                    
**            http://www.redesigns.org      web@redesigns.org                 
**                                                                            
**             Copyright RE Designs, All rights reserved.                
*/

 function LTrim(strText)
{
	while (strText.substring(0,1) == ' ')
			strText = strText.substring(1, strText.length);
	return strText;
} 

function RTrim(strText)
{
	while (strText.substring(strText.length-1,strText.length) == ' ')
			strText = strText.substring(0, strText.length-1);
	return strText;
}

function Trim(strText)
{
	return RTrim(LTrim(strText));
}
