Call external doc level javascript in a pdf doc

Can someone help me with the following?
My problem:
I have a button that has to open a pdf doc. (in acrobat and not in a explorer window).
I know that in Acrobat I can have a document level javascript…
but how do I call this javascript from flash?