


function confirmCancel(returnURL) { 
if (confirm("Are you sure you want to cancel post?\n\nPress \'OK\' to cancel post\n\nPress \'Cancel\' to continue with post")) 
{self.location.href=returnURL;}} 
	//alert('Posting not functional');
	//-->

	//function smiley(ximage){
		//document.postform.post.value=document.postform.post.value + ximage;
	//}


   function smiley(ximage) {
   		if (document.postform.post.createTextRange && document.postform.post.caretPos) {
   			var caretPos = document.postform.post.caretPos;
   			caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? ximage + ' ' : ximage;
   			document.postform.post.focus();
   		} else {
   			document.postform.post.value+=ximage;
   			document.postform.post.focus();
   		}
   }
   function storeCaret(ftext) {
	if (ftext.createTextRange) {
		ftext.caretPos = document.selection.createRange().duplicate();
	}
}

function getText() {
	if (document.PostTopic.Message.createTextRange && document.PostTopic.Message.caretPos) {
		return document.PostTopic.Message.caretPos.text;
	} else {
		return '';
	}
}
