

function emoticon(text)
{
	if (document.post.content.createTextRange && document.post.content.caretPos)
	{
		var caretPos = document.post.content.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.post.content.focus();
	}
	else if (document.post.content.selectionStart != undefined)
	{
		document.post.content.value = document.post.content.value.substring(0, document.post.content.selectionStart) + text + document.post.content.value.substring(document.post.content.selectionStart);
		document.post.content.focus();
	}
	else
	{
		document.post.content.value += text;
		document.post.content.focus();
	}
}




function cp(what)
{
	what.style.cursor='pointer';
}

