Hey all.

I have an .asp page in which a form is created by Server-Side VBScript.

In the form I have a set of checkboxes named:

checkbox0
checkbox1
.
.
.
checkboxN

(N can range from about 4 to 10 depending on the creation script)


I need to use JavaScript to verify the form input.

How do I refer to these checkboxes in a for loop?

Is that possible?

eg:

for (i = 0; i < N; i++) {
window.alert(document.form.<B>(checkbox + i)</B>.value)
}


This is a big problem for me right now...