Javascript question

Hi,
Im trying to make a script work with vars i send with the html.
In this example naam = 4 and naam2 = s_sQuestion4
Problem is this aint working at all it gives me undefined parameters. Im pretty sure i have forgotten something so please help me out.

  • Thanks
    Dlate

Javascript:

function textfieldCheck(naam, naam2) {
	if (document.form.naam2[naam].checked == 1) {
	document.form.s_sQuestion4_text.disabled = false 
	}
}

Html:


onClick=\"textfieldCheck('5','s_sQuestion4')