javascript dude... javascript... look it up on google or something...
it goes a little something like this...
var val1=document.text_name1.value
var val2=document.text_name2.value
var val=val1=val2
document.textarea.value=val.value
get to know some of the properties of text fields and textarea's .. onlick, onchange .. and of course integrate the above idea into a function .. this way when a field changes (onchange) .. you call the function to set the textarea value....
i know you wanted to understand how to do this correct - and not the solution itself - correct?
you have been led to the water... it's up to you to drink or not...
http://buildacom.com