Passing parameters to onchange doesnt use the parameters at runtime
<p>Hello I am using function</p>

<pre><code>function prepareRadios(radioGroupName) {
  var radios = document.getElementsByName(radioGroupName);
  for( i = 0; i &lt; radios.length; i++ ) {
    document.getElementById(radios[i].id).onchange = function() {
      radioUpdated(radioGroupName, radios[i].id); 
    };
  }
}
</code></pre>

<p>the problem is, that the onchange event fires with quote (radioGroupName, radios[i].id) instead of having those values put into it with my function</p>

<p>I need to pass the VALUES of them, not the names of the vars</p>

<p>What am I doing wrong?</p>
