//Secondary Custom Code - Start
  function JSTrim(sString) 
  { 
  	  var sReturnString = new String("" + sString); 

  	  for (var i=0; i<sReturnString.length; i++) 
  	  { 
  			if ( sReturnString.charAt(i) != " " ) 
  				  break; 
  	  } 

  	  if ( i > 0 ) 
  			sReturnString = sReturnString.slice(i, sReturnString.length) 

  	  for (var i=sReturnString.length-1; i>=0; i -= 1) 
  	  { 
  			if ( sReturnString.charAt(i) != " " ) 
  				  break; 
  	  } 

  	  if ( i > 0 ) 
  			sReturnString = sReturnString.slice(0, i+1) 

  	  return sReturnString; 
  }
//Secondary Custom Code - End