﻿function trimField(theField){
	var initialValue = theField.value;
	theField.value = initialValue.replace(/^\s*/, "").replace(/\s*$/, "");
}