A few questions for a simple script

I have a script i have created under OS9 and i have modify it so it could run under osx…

A few questions…

Is their a way under OSX to display a dialog with two text entry, instead of using two time the display dialog 2 times?

Is their a way under OSX for list view to set all first level of folder to be expanded?