title: calling a function on jQuery model dialog close
body: <p>I have a small problem related to the jQuery modal dialog box. The scenario is such:</p>
  
  <p>I have to call a function when i exit or close the dialog box by pressing the cross[x] button on the top right.</p>