/**
  * Affiche le fomulaire d'édition.
  * 
  * @param post_id id du post à éditer.
  */
function displayQuickEdit(post_id) 
{
	// Masquage du bouton d'édition rapide.
	var add_post = document.getElementById("quick_edit_" + post_id);
	if (document.all) { add_post.setAttribute("className","display_none"); }
	add_post.setAttribute("class","display_none");
	
	// Masquage du texte du message.
	var add_post = document.getElementById("p" + post_id + "_text");
	if (document.all) { add_post.setAttribute("className","display_none"); }
	add_post.setAttribute("class","display_none");
	
	// Démasquage du bouton d'édition rapide.
	var remove_post = document.getElementById("cancel_quick_edit_" + post_id);
	if (document.all) { remove_post.setAttribute("className","display_inline"); }
	remove_post.setAttribute("class","display_inline");
	
	// Démasquage du formulaire d'édition.
	var remove_post = document.getElementById("p" + post_id + "_edit");
	if (document.all) { remove_post.setAttribute("className","display_block"); }
	remove_post.setAttribute("class","display_block");
}

/**
  * Masque le fomulaire d'édition.
  * 
  * @param post_id id du post à éditer.
  */
function hideQuickEdit(post_id) 
{
	// Démasquage du bouton d'édition rapide.
	var add_post = document.getElementById("quick_edit_" + post_id);
	if (document.all) { add_post.setAttribute("className","display_inline"); }
	add_post.setAttribute("class","display_inline");
	
	// Démasquage du texte du message.
	var add_post = document.getElementById("p" + post_id + "_text");
	if (document.all) { add_post.setAttribute("className","display_block"); }
	add_post.setAttribute("class","display_block");
	
	// Masquage du bouton d'édition rapide.
	var remove_post = document.getElementById("cancel_quick_edit_" + post_id);
	if (document.all) { remove_post.setAttribute("className","display_none"); }
	remove_post.setAttribute("class","display_none");
	
	// Masquage du formulaire d'édition.
	var remove_post = document.getElementById("p" + post_id + "_edit");
	if (document.all) { remove_post.setAttribute("className","display_none"); }
	remove_post.setAttribute("class","display_none");
}
