/*  trim() function 
	using regular expressions 
	version 1.1, 06 June 2002 
	compatible with Netscape 4+, IE 4+ 
	author: Mike Mertsock, mjm2@alfred.edu
*/

function trim( stuffToTrim ) {
	
	var thisString = new String( stuffToTrim.toString() );
	var whitespaceL = /^\s+/;
	var whitespaceR = /\s+$/;
	
	thisString = thisString.replace( whitespaceL, "" );
	thisString = thisString.replace( whitespaceR, "" );
	
	return thisString;
	
}