Util = new Object();

Util.trim = function(str) {
	if (str==null) return null;
	return str.replace(/^\s+|\s+$/g, "");
};
window.trim = Util.trim; // todo: refactor references to window.trim to Util.trim
