//Forum
function Emoticon(texte) {
var txtarea=document.Forum.Forum_message;
texte = ' ' + texte + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
	var caretPos = txtarea.caretPos;
	caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + texte + ' ' : caretPos.text + texte;
	txtarea.focus();
}
else
{
	txtarea.value  += texte;
	txtarea.focus();
}
}

// Insert at Claret position. Code from http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130
function StoreCaret(textEl) {
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

function ValidationUnique()
{
	document.getElementById("DivValidation").innerHTML='<strong>En cours de soumission...</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}