When the "Push" button is clicked, it invokes the
Alloy.Globals.openWindow() function. This function is defined in the application's alloy.js file, and calls the
navWindow's openWindow() method, passing it a new window created from the
app/views/win.xml view. It also initializes a global counter variable named
ctr that's displayed by each window added to the navigation stack.