// Appel AJAX au script PHP qui genere le calendrier en fonction de la date passee en parametre.
function get_calendar(txt_date)
{
	if (typeof txt_date == 'undefined') txt_date = "";

	var parameters = {"date":txt_date};
	var baseHref = document.getElementsByTagName("base")[0].href;
	
	$.post(baseHref + "req_get_calendar.php", parameters, function(data)
	{  
		if (!data.error)
		{
			$("#agenda_municipale").html(data.html);
		}
		else
		{
			$("#agenda_municipale").html(data.error);
		}
	}, 'json');
}
