function showDiscussion(){
		document.getElementById('addComment').style.display = 'block';
		document.getElementById('addComment').focus();
	}
	function annulCom() {
		document.getElementById('commentaire_texte').value = '';
		document.getElementById('addComment').style.display = 'none';
	}
	function sendCom(ref_type_id,cont_id) {
		if (isBlank(document.getElementById('commentaire_texte').value)) {
			alert('Vous n\'avez pas saisi de commentaire');
			return;
		}
		
		xajax_call("envoyer_commentaire",ref_type_id,cont_id, document.getElementById('commentaire_texte').value);
		scroll(0,0);
	}
	function reloadAfterComment() {
		var urlReload = new String(escape(document.forms["fComment"].currPage.value));
		self.document.location = urlReload;
	}
	$().ready(function() {
		$('#filtre_comment').selectbox();
		$('li[@id^="filtre_comment"]').click(function() {
			var oLink=$(this)[0].getAttribute('id');
			var sLink=oLink.replace("filtre_comment_input_", "");
			var urlReload = new String(escape(document.forms["fComment"].currPage.value)); 
			if (sLink!="") {
				if (urlReload.indexOf('?') > -1) {
					var url_redirect = urlReload+'&ordrePg='+sLink;
				} else {
					var url_redirect = urlReload+'?ordrePg='+sLink;
				}
				window.location.href = url_redirect;
			}
		});
	});