Yes. Use this code:
if (app.alert("OK?",2,1)!=1) this.closeDoc(true);
Works like a charm senor! Thank you...as usual! I wish I had 1/10th of your knowledge with this code! I'm working on it though!