You can use the 'app.alert()' as a dcoument levle script. See the following tutorials by Thom Parker for more detailed information.
[url=http://www.acrobatusers.com/tutorials/2006/popup_windows_part1]The Alert Box: Part 1 of 5 on Popup Windows[/url]
[url=http://www.acrobatusers.com/tutorials/2006/where_js_goes]So where does JavaScript live in Acrobat?[/url] to see how to access the doucment level JavaScript.
[url=http://www.acrobatusers.com/tutorials/2006/popup_windows_part1]The Alert Box: Part 1 of 5 on Popup Windows[/url]
[url=http://www.acrobatusers.com/tutorials/2006/where_js_goes]So where does JavaScript live in Acrobat?[/url] to see how to access the doucment level JavaScript.
[url=http://www.acrobatusers.com/tutorials/2007/07/js_document_scripts]Entering Document Scripts]Entering Document Scripts[/url]
George Kaiser