Detect if a JQuery dialog box is open
<p>I am using a JQuery dialog field. If it is open, I want to do one thing. If it is closed, I want to do another. My question is, how do I detect if a JQuery dialog box is open or not?</p>

<p>Thank you,</p>
