//-----------------------------------------------------------------------//
function stripSpaces(sVal)                                               //
//-----------------------------------------------------------------------//
//          function name: stripSpaces()                                 //
//             created by: Dustin Brown                                  //
//             created on: 2/20/2001                                     //
//                purpose: removes all leading and traling spaces from   //
//                         'sVal'                                        //
//             parameters: sVal - the string to be stripped              //
//                returns: 'sVal' minus any leading and trailing spaces  //
// include files required: none                                          //
//-----------------------------------------------------------------------//
{
	sVal+="";
	
	//remove all leading spaces
	while(sVal.substring(0,1)==" ")
		sVal=sVal.substring(1);
	
	//remove all trailing spaces
	while(sVal.substring(sVal.length-1,sVal.length)==" ")
		sVal=sVal.substring(0,sVal.length-1);
	
	//return the stripped down string
	return sVal;
}
//End function stripSpaces()---------------------------------------------//