force function to use value of variable
<p>HELP on javascript
force function to use the value of variable and not the variable name</p>

<pre><code>var a = 12;
var b = 13;

element.setAttribute("onChange","calculate('a','b')");

calculate(x,y){

z = x + y;
alert(z)

}
</code></pre>

<p>how to pass value of variable to be use in function?</p>
