function trim(str) 
{ 
	alert(str);
	str = str.replace(/(^\s+)|(\s+$)/g, "")
	alert(str);
	return str; 
}


