retrieving data from href

retrieving data from href

Hi,

I want to save parameters from a href into var.

> href="javascript:functionname(12,1);"

How can I access to the first and second digit (12 and 1) and save
into var digit_1 = | var digit_2 = as I have to pass them to another
function.

And how can I pass the parameters to another js function?

cheers
T.C.