// popup pour les passwords perdus
function popup(){
	window.open('./perte_password.php','','toolbar=no, status=no, scrollbars=yes, menubar=no, resizable=yes,width=400,height=300');
}

// emoticons (message de forum)
function emoticon(text) {
	text = ' ' + text + ' ';
	if (document.post.message.createTextRange && document.post.message.caretPos) {
		var caretPos = document.post.message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.post.message.focus();
	} else {
		document.post.message.value  += text;
		document.post.message.focus();
	}
}
