Hey there...
I have the simple wee function below which simply inserts a new number into a text field in a form.
It works great in every browser I test in (ie5/5.5/6 win, ie5.2 mac, Op7, moz1.4)
except safari 1.0

now it works in safari 1.0 but it updates the wrong text field (what would be elements[10] for all the other browsers).

Does anyone know of a solution for this?

Code:
function updateCode(newCode) {
 		document.forms[0].elements[9].value = newCode;
 
 		}
I sadly cannot use IDs due to the backend using BEA weblogic, which SUCKS! (ok, it may be good at many things but is certainly a pain in MY ***)

To be honest at this point I would even consider a safari sniffer code as there is supposed to be an update to weblogic due to come out before we move from beta to release and I could correct the script (take out the sniffer and safari code) before we actually launch.

the structure of the form so far is
form
checkbox
checkbox
checkbox
checkbox
hidden
radio group, radio1
radio2
select
text box (target)

...


any ideas?