Possible Duplicate:
Best Practice: Access form elements by HTML id or name attribute?
The forms on my site all have "id" attributes as follows...f0,f1,f2..., and this is how I access them. My understanding is that Javascript creates an aray that hold the forms and I can access them this was as well.
By id:
var a='f0';
var c=document.forms[a].elements;
By array index:
var c=document.forms[0].elements;
By name:
var a='f0';
var c=document.forms[a].elements;
Which way is better, I just picked by id as a starting point.