How do I set the value of a certain part of a form using javascript?

Thanks
Jim