There doesn't seem to be any way to access the vars or params objects in javascript events, or even the reportContext object.
If there are accepted answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.