function trim(obj) {
	obj.value = obj.value.replace(/^\s+/g, ''); 
	obj.value = obj.value.replace(/\s+$/g, ''); 
}
