<!-- Ajout de smileys au commentaires
function emoticon(text) {
	var txtarea = document.msg.commentaire;
	text = ' ' + text + ' ';
	if (txtarea.createTextRange && txtarea.caretPos) {
		var caretPos = txtarea.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		txtarea.focus();
	} else {
		txtarea.value  += text;
		txtarea.focus();
	}
}
function message_onkeypress() {
	
	if (document.msg.commentaire.value.length > 399) {document.msg.commentaire.value = document.msg.commentaire.value.substring(0,399)};
	document.msg.compteur.value = 399 - document.msg.commentaire.value.length; 
}
//-->
