		function showPosting()
		{
			$('comment_feedback').innerHTML = "";
			document.getElementById("posting").style.display = "block";
			$('comment_listing').innerHTML = "";
		}

		function hidePosting()
		{
			$('comment_feedback').innerHTML = "";
			document.getElementById("posting").style.display = "none";
			document.getElementById("reply_posting").style.display = "none";
			$('comment_listing').innerHTML = "";
		}

		function showReply(parentPostId)
		{
			$('comment_feedback').innerHTML = "";
			$('comment_listing').innerHTML = "";
			document.getElementById("reply_posting").style.display = "block";
			$("parent_reply").value=parentPostId;
		}

		function addComment()
		{
			$('comment_feedback').innerHTML = "";
			new Ajax.Updater('comment_feedback', 'php/ajax.php', {
			  parameters: { 
				pseudo: $F('pseudo'),
				message: $F('message'), 
				action: $F('action'), 
				balade_id: $F('balade_id')
			  },
			  insertion: Insertion.Bottom
			});
			hidePosting();
		}

		function addReply()
		{
			new Ajax.Updater('comment_feedback', 'php/ajax.php', {
			  parameters: { 
				pseudo: $F('pseudo_reply'),
				message: $F('message_reply'), 
				action: $F('action_reply'), 
				balade_id: $F('balade_id_reply'), 
				parent: $F('parent_reply')
			  },
			  insertion: Insertion.Bottom
			});
			hidePosting()
		}


		function showComments()
		{
			$('comment_feedback').innerHTML = "";
			document.getElementById("posting").style.display = "none";
			document.getElementById("reply_posting").style.display = "none";
			$('comment_listing').innerHTML = "";
			new Ajax.Updater('comment_listing', 'php/ajax.php', {
			  parameters: { 
				action: 'listComments', 
				balade_id: $F("balade_id")
			  },
			  insertion: Insertion.Bottom
			});
		}

