$(document).ready(function() {

	$("#trovapunti").ajaxForm(onFormSubmitted);
	$("#trovapunti-provincia").ajaxForm(onFormSubmitted);
	$("#trova-agenti").ajaxForm(onFormSubmittedAgenti);
	$(".submit").throbber({ image: "../images/throbber.gif"})

});

function onFormSubmitted(htmlText)
{
	$("#results").html(htmlText);
}

function onFormSubmittedAgenti(htmlText)
{
	$("#results-agente").html(htmlText);
}