function updateCal(anno,mese,giorno,filtro)
{
  // nomeFile viene valorizzato nell'header e contiene il nome del file in corso
  var source = '/ajax.php?mode=calendario&anno='+anno+'&mese='+mese+'&giorno='+giorno+'&filtro='+filtro;
  // Aggiorno la select corrente
  new Ajax.Updater($('calendario'),source,
  {
    asynchronous:true,
    onComplete :function(transport) { addTooltipCal(); }
  });
}
function addTooltipCal()
{
  $$('.off').each(function(td)
  {
		new ToolTip.Ajax(td,'/ajax.php?mode=offerte&id='+td.id);
	});
}

//if(FastInit)
//	FastInit.addOnLoad(addTooltipCal);
//else
	Event.observe(window, 'load', addTooltipCal);
