ecco la funzione che ti servirebbe:

codice:
function testo(mytxt) {
 document.myform.S1.value=mytxt;
}
il tutto diventerebbe:

codice:
<form method="POST" action="#" name="myform"> 


testo1
 
testo2
 
testo3</p> 


<textarea rows="2" name="S1" cols="20"></textarea></p> 


<input type="submit" value="Invia" name="B1"></p> 
</form>
ciao