// clear the loan result divs before submitting a request
clearResultFields = function(){
	var result_divs = ($$('div#loans .results', 'div#total_results'));
	result_divs.each(function(result) { 
		Element.update(result, ""); 
	});
};

// bind clearing the result divs to the window.onload method
Event.observe(window, 'load', function(){
	Event.observe($("snowballform"), 'submit', clearResultFields);
} );