Dear,
Using javascript with PDF file is one of my work, I use Adobe Acrobat for this task.
For this job, the javascript will not run with Adobe Reader.
Please let me know if you want further information.
Regard.
Njaka.
http://www.freelancer.com/u/a6jack.html