Windows and buttons

How do I program a rectangualr button when clicked opens a new window. I guess onunloading the new window or receiving a new window to uonload a button like this page

The rectangular buttons show as someone clicks on link from the main page that loads in the treasure chest. So how would I create a flash program from the first window to onload the rectangular buttons that say go to step 1.Step 2 etc.