function sx_cemo_insert(commArea, emoj) {
	var insStr,selStr,selStart,selEnd;

	insStr = '[[' + emoj + ']]';
	if (document.selection) {
		commArea.focus();
		selStr = document.selection.createRange();
		selStr.text = insStr;
	} else if (commArea.selectionStart || commArea.selectionStart == '0') {
		selStart = commArea.selectionStart;
		selEnd = commArea.selectionEnd;
		commArea.value = commArea.value.substring(0, selStart)+ insStr + commArea.value.substring(selEnd, commArea.value.length);
	} else {
		commArea.value += insStr;
	}
}
function sx_bemo_insert(commArea, emoj) {
	var insStr,selStr,selStart,selEnd;

	insStr = emoj;
	if (document.selection) {
		commArea.focus();
		selStr = document.selection.createRange();
		selStr.text = insStr;
	} else if (commArea.selectionStart || commArea.selectionStart == '0') {
		selStart = commArea.selectionStart;
		selEnd = commArea.selectionEnd;
		commArea.value = commArea.value.substring(0, selStart)+ insStr + commArea.value.substring(selEnd, commArea.value.length);
	} else {
		commArea.value += insStr;
	}
}
