Need help with a QuarkXPress Passport script

I am new to scripting and having trouble getting the “record” to work in Quark.
I want to make a script to move to the next page and a script to move to the provious page. Can anyone help?

Dan Gordon

This works in QXP 6.

tell application "QuarkXPress Passport"
	tell document 1
		set currentPage to the page number of current page
		set nextPage to (currentPage + 1)
		set previousPage to (currentPage - 1)
		show page nextPage
		show page previousPage
	end tell
end tell