Note: document.getElementById(fieldName).value doesn't work in Firefox
You are probably confused by what is basically a bug in IE. If IE does not find an element with the given id it will look for an element with a name that matches the given id. Other browsers implement the getElementById method correctly.
- Brent