I have a button:
Continue
Your best option for archieving what you really want is using eval(), like this:
eval("var " + currForm.attr('id');
Check this link ->
Dynamic Variables in Javascript