Code:
oText = oForm.elements["text_element_name"]; OR
oText = oForm.elements[index];
The above code is correct (obviously!)

However, is this possible?

Code:
$page = "text_element_name";
oText = oForm.elements[$page];
It seems to work in IE (shock, horror) but not in FF or Chrome.

I think FF and Chrome are reading it as

Code:
$page = "text_element_name";
oText = oForm.elements["$page"]; // note the invert commas around $page
which is NOT what I want.

Any ideas?