function trim(strA) {
	//
	// VERSION: 1.0
	//
	// NAME: Trim
	//
	// DESCRIPTION: Removes leading and trailing blanks and carriage returns from a string.
	// 
	
	
	while ((strA.charCodeAt(0) == 13 && strA.charCodeAt(1) == 10) || (strA.charCodeAt(strA.length-2) == 13 && strA.charCodeAt(strA.length-1) == 10) || (strA.substring(0,1) == " ") || (strA.substring(strA.length-1,strA.length) == " ")) {
		// Remove carriage return
		while (strA.charCodeAt(0) == 13 && strA.charCodeAt(1) == 10) strA = strA.substring(2);
		while (strA.charCodeAt(strA.length-2) == 13 && strA.charCodeAt(strA.length-1) == 10) strA = strA.substring(0,strA.length-2);
		
		// Remove spaces
		while (strA.substring(0,1) == " ") strA = strA.substring(1);
		while (strA.substring(strA.length-1,strA.length) == " ") strA = strA.substring(0,strA.length-1);
	}
	
	return strA;
}


