I like your use of functions to accomplish the same thing, makes it cleaner.
A few things I've learned from when I scripted mine above, if the user decides to close the window it will crash your script. I'd suggest looking at my code I attached above. Uses try/catch and allows the user to hit cancel as well. Also, feel the Show Menu(0), and Show Toolbar(0) makes a loading bar a little cleaner for the window.