It is of utter importance that you style your code before posting it. If you don't know how please learn and use my GS2 Style in the mean time: http://fp4.ca/gs2beautifier
Sounds like you want to create a 'confirm' dialog window. You need to use waitfor to accomplish that. I explain in my guide below: