Hey everyone! I have a simple question to ask. On the following code, what is the proper way to insert a variable at the place specified.


function test (somevariable) {

if (document.forms[0].somevariable.checked)
{
statements;
}
}


In that code, JavaScript doesn't treat SOMEVARIABLE as a variable. Ideas on what's wrong?