

function affichecalendar(mois,annee,cat){
new Ajax.Updater('calendar', '/xhttp.php?xhttp=1&form=calendar&cat='+cat+'&datem='+mois+'&datey='+annee, {asynchronous:true,  onFailure: function(){},onComplete:function(){
  load = 'calendar';
	load = document.getElementById(load);
	new Effect.Appear(load, {duration: 0.5});
		}});
}

function affichecalendartoggle(mois,annee,cat){
new Ajax.Updater('calendarajax', '/xhttp.php?xhttp=1&form=calendarajax&cat='+cat+'&datem='+mois+'&datey='+annee, {asynchronous:true,  onFailure: function(){},onComplete:function(){
  load = 'calendarajax';
	load = document.getElementById(load);
	new Effect.toggle(load,'slide', {duration: 0.5});
		}});
}

function affichecalendarajax(mois,annee,cat){
new Ajax.Updater('calendarajax', '/xhttp.php?xhttp=1&form=calendarajax&cat='+cat+'&datem='+mois+'&datey='+annee, {asynchronous:true,  onFailure: function(){},onComplete:function(){
  load = 'calendarajax';
	load = document.getElementById(load);
	new Effect.Appear(load, {duration: 0.5});
		}});
}
