simple java script job
<p>I need a very simple Javascript on a html page, that will do the following..</p>

<p>Display a text like:</p>

<pre><code>This is a string of text and can be long
</code></pre>

<p>then if you mark some of the text with your mouse, the selected text should be inserted and automatically updated into a text field</p>

<p>How can i do it?</p>
