﻿function cacher(id) {
$("#formulaire").slideUp(500, function() {
$("#formulaire").empty();
	page = "/comm.php?id="+id;
	$.ajax({
		url: ""+page,
		cache: false,
		success: function(html){
				
				$("#formulaire").append(html);
				$("#formulaire").slideDown(1000);
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert(textStatus);
		}
	})
})
}

function afficher(id) {
$("#commentaire").slideUp(500, function() {
$("#commentaire").empty();
	page = "/add_com.php?id="+id;
	$.ajax({
		url: ""+page,
		cache: false,
		success: function(html){
				
				$("#commentaire").append(html);
				$("#commentaire").slideDown(1000);
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert(textStatus);
		}
	})
})
}
