function FormUtils() {

	//Sets the action on page and submits form.
	this.submitForm = function(action, formId) {
		document.getElementById(formId).action = action;
		document.getElementById(formId).submit();
	}

	//Displays the "Searching..." image (actually a div, which has to be present on the page)
	this.searching = function() {
		try {
			document.getElementById('searching').style.display = 'block';
		} catch(ex) {
			//Ignore...since all pages might not have "Searching..." div
		}
	}

	//Invokes the callback function (with specified action/form) when User hits ENTER in the given field
	this.invokeCallbackWhenUserPressesEnter = function(e, action, formId, callbackFunction) {
		var keycode;
		if (window.event) {
			keycode = window.event.keyCode;
		}
		else if (e) keycode = e.which;
		else return true;
		if (keycode == 13) {
			callbackFunction(action, formId);
			return false;
		}
		return true;
	}
}