function showPostEditForm(postId)
{
	$('#post_message_'+postId).load('/forum/sujet/showPostEdit/'+postId, null, function(){
				$('#markitup-post-'+postId).markItUp(mySettings);	
			});
}

function editPost(postId, page)
{
	var data = $('#edit_post_'+postId).formSerialize();
	//alert($('#edit_post_'+postId));
	$.post('/forum/sujet/postEdit/'+postId+'/'+page, data, 
			function(resp){
				$('#post_message_'+postId).html(resp);
			});
}

function showTopicEditForm(topicId)
{
	$('#topic_message').load('/forum/sujet/showTopicEdit/'+topicId, null, function(){
				$('#markitup-topic').markItUp(mySettings);	
			});
}

function editTopic(postId)
{
	var data = $('#edit_topic').formSerialize();
	$.post('/forum/sujet/topicEdit/'+postId, data, 
			function(resp){
				$('#topic_message').html(resp);
			});

}

