_selobj = document.selection.createRange();
selText= _selobj.text
selText.text="[font color=red]"+selText+"[/font]";