Accessing HTML Form Fields from with in a Custom Java Script

Hi,

Is there a way to access access form fields from with in a custom script? Do we have to use Script Parameter or is there a notation that we can follow
something like

document.form.field

I tried browsing through the generated HTML, I see that myWebMethods prefixes a sequence number before the Id we assign in the developer like jsfwmp73580:formId.

The java managed bean for your view contains a special content provider that will resolve the client-side id for any control.