title: How do I write my own confirm dialog in javascript?
body: <p>I want to write something that acts just like confirm() in javascript, but I want to write it myself so I can skin the dialog box.  In having trouble thinking through how I would basically force the javascript thread to wait until the user responds and then return true or false.</p>