Event.observe(window, 'load', initRamseyForms, false);

function initRamseyForms() {
	Event.observe('r-list-form', 'submit', function(event) {
	    $('r-list-form').request({
	        onFailure: function() {
	            $('r-list-form-result').update("sorry, error.");
	        },
	        onSuccess: function(t) {
	            $('r-list-form-result').update(t.responseText);
	        }
	    });
	    Event.stop(event); // stop the form from submitting
	});
}
