Try Googling textRange.
<script type="text/javascript">
<!--
// elementId: 'TextArea1', etc...
// wordSelection: 0 = first word, 1 = second word, etc...
function textAreaSetSelection(elementId, wordSelection)
{
var elementRef = document.getElementById(elementId);
var textRange = elementRef.createTextRange();
textRange.moveStart('word', wordSelection);
// The second parameter in moveEnd needs to be a minus value to only hilite one word...
textRange.moveEnd("word", -10);
textRange.select();
}
// -->
</script>
NC...