Switch active page

Description: Switch the active page.
Assumptions: An optional 'myPage' page type script parameter.

#Pick one of the following Page reference options:
#myPage = Application.Document.Pages[0]            #Page index method
#myPage = Application.Document.ActivePageReference #Active page method
#myPage as a page type script parameter            #Script parameter method

#Switch the visible page
Application.Document.ActivePageReference = myPage