function submitComment() {
	$('#comment-waiting').show(); $('#comment-form').hide(); $('#comment-error').hide();
	$.post( $('#commentform').attr('action'), $('#commentform').serialize(), function (data) {
		$('#comment-waiting').hide(); if (data != 'done') setCommentError(data); else $('#comment-done').show();
	}).error(function(data) {
		$('#comment-waiting').hide(); $('#comment-form').show(); alert('Erreur HTTP: '+req.statusText+'.\nEssayez une autre fois plus tard.');
	});
}

function setCommentError(text) {
	$('#comment-error').html(text);
	$('#comment-error').show();
	$('#comment-form').show();
}
