// $Id: trim_function.js,v 1.2 2007/09/18 07:23:40 chetan Exp $ 
function trim(str)
{
	return str.replace(/^(\s+)?(\S*)(\s+)?$/, '$2');
}
