I want to simplify this code. I want to set everything inside a form of 100 input boxes to zero without making 100 lines of code. What would be the best approach.

I have tried this...
for (a=0; a<=100; a=a+1){ qtr1("pr"[a].value=0}

I have also tried this....
for (a=0; a<=100; a=a+1){ qtr1("pr"+a).value=0}



qtr1.pr1.value=0;
qtr1.pr2.value=0;
qtr1.pr3.value=0;
qtr1.pr4.value=0;
qtr1.pr5.value=0;

I am not sure what I am doing wrong.

Thank you in advance for your reply. I appreciate your time.