no you cant do this at all, you need to think like this:
document.theFormName.theFieldName.value
you can pass theFormName and theFieldName when you call
JS function and yes you do use the equivalent of ....Element[4] but only inside
JS loops. Im not really sure what else to say