I've got an onclick event that sets a variable. I then want to parse this variable to a function.

The function is defined like so:

```
function priceset(obj, options) 

```

My question is how do I parse a variable (The variable is called productprice) to the function and then use it within the function?