Hi, all -- I program in perl but never warmed up to Javascript. Therefore, I'm stumped about:<br><br>How do I control a form element when I'm naming the element dynamically? My page has eleven separate, similar forms. One, for example, is Engineering. I want to tell Javascript to call function "smartform('Engineering')" and thereby control elements in form named Engineering.<br><br>Thus, I'd want smartform to control form elements like:<br><br>document.Engineering.resp_Engineering.checked<br>document.Engineering.resp_Engineering_accepted[1].checked<br>document.Engineering.resp_Engineering_approved[1].checked<br><br>For another form on the same page, of course, I'd want to call smartform() and control elements like:<br><br>document.Finance.resp_Finance.checked<br><br>Ways I have tried to accomplish this include:<br><br>1)<br>function smartform(origval) {<br> var val1 = "resp_" + origval + "_accepted";<br> document.Engineering.val1[1].checked = true ...<br><br>... this fails because val1 is interpreted literally!<br><br><br>2)<br>function smartform(origval) {<br> var pending = "document." + origval + ".resp_" + origval + ".checked";<br> pending = false; ...<br><br>... this fails because false is literally assigned to the val pending, instead of resetting the form element.<br><br><br>Can anyone suggest a way to get a document.form.element statement to interpret a variable, instead of treating it like a string?<br><br>Any ideas are much appreciated!<br><br>