function getData(obj,id) {
	$.get('includes/ajax.getdata.php?id='+escape(id) , function(data) {obj.openInfoWindowHtml(data); } );
}


function filtraTipo (tipologia) {
	/*
	o = $('filtro_'+tipologia);
	for (i=0; i<markersArr.length; i++)
	{
		if (markersArr[i].tipo==tipologia) if (o.checked)
			{
				markersArr[i].marker.show()
			} else {
				markersArr[i].marker.closeInfoWindow();
				markersArr[i].marker.hide()
			}
	}
	$$('[rel="tipo' + tipologia + '"]').each(
		function(e) {
			if (o.checked) e.style.display = ''; else e.style.display = 'none';
		}
	);
	*/


}

function fixQuebec(s) {
	return s.replace(/%uFFFD/,"%e9");
}


function vaiProvincia() {
	
	var a = document.URL.split('?');
	var p = $("#filtroProvincia option:selected");
	document.location.href = a[0] + '?provincia=' + fixQuebec( escape( p.val() ) );
}


function vaiCitta() {
	var a = document.URL.split('?');
	var p = $("#filtroProvincia option:selected");
	var c = $("#filtroCitta option:selected");
	document.location.href = a[0] + '?provincia=' + fixQuebec( escape( p.val() ) ) + '&citta=' + fixQuebec( escape( c.val() ) );
}

