I'm building a return HTML page, generated from within my Vb app. I want to create say a random number if fields. For reference purpose I have a Form name of 'test'. I am creating some hidden fields called 'rec_#' rec_1,rec_2 and so on. Also on this page I'm generating the JavaScript with the HTML, I want to reference these hidden fields from within the JavaScript section of my code. How do I reference the field names, by using a for statment? I can do it in vb but not in JavaScript.

whg