Parsing a var from Javascript

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a small Javascript applet that users can start from within a html
I'd like to adapt the script in a way it invokes a php counter script that
keeps track of the number of times the applet has been run.
Also I'd like the script to parse some numerical and string vars to a PHP
The script has a reset() function in which I like to embed the necessary
lines to invoke/parse to PHP script.

How should I roughly go about this ?

Site Timeline