// JavaScript Document

function emoticon(text) {
	text = ' ' + text + ' ';
	if (document.add.bericht.createTextRange && document.add.bericht.caretPos) {
		var caretPos = document.add.bericht.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.add.bericht.focus();
	} else {
	document.add.bericht.value  += text;
	document.add.bericht.focus();
	}
}
