function new_comment (page) {
	HTTPRequest ('controler/comment.php?action=new&page='+page, "GET", null, document.getElementById('commentaire_edit'));
}

function edit_comment (id) {
	HTTPRequest ('controler/comment.php?action=edit&id='+id, "GET", null, document.getElementById('commentaire_edit'));
}

function delete_comment (id) {
	if (confirm("Voulez-vous vraiment supprimer ce commentaire ?"))
		window.location ='controler/comment.php?action=delete&id='+id;
}

function view_all_comments () {
	
}

function close_zone_comment () {
	document.getElementById('commentaire_edit').innerHTML = '';
}

function masque_commentaires () {
	document.getElementById('commentaires').style.display = 'none';
}

function affiche_commentaires () {
	document.getElementById('zone_commentaires').style.display = 'block';
}