title: How to get the start and end points of selection in text area?
body: <p>I want to get the cursor start and end position of a selected range  in a text-field or text-area.</p>
  <p>I tried lot of functions in various forums, but when the last character of the selection is a new line character JavaScript ignore it in IE6.</p>
  <p>How do I get the start and end points of the selection?</p>