I have the need to place a variable into document.form.name (no idea what this is called). Just wondering if this is possible.

The scenario is i have a bunch of questions that are dynamically taken from a database. Each question has a number of radio buttons (which varies based on the question). The radio button group name is q plus a number that is sequentially incremented by 1 (i.e q1, q2, etc).

What im trying (unsuccessfully) to do is something similar:
checkRadio = function(numQuestions)

for (var i=0, i<=numquestions, i++)


Hope that makes sense.