title: Close javascript popup by clicking anywhere
body: <p>I am super novice and need a quick advice. I have installed a javascript based popup plugin on my wordpress site, witch opens automatically when somebody visits the site. To close the popup the user will have to click a cross X in the corner of the popup. </p>
  
  <p>I need to edit the plugin so that the user can click ANYWHERE, and the plugin will close. </p>
  
  <p>Here is the javascript code I found. any tips about this?</p>
  
  <pre><code>function open_lightbox(){
      //var closebut = (typeof(ujiPopups) !== 'undefined' &amp;&amp; ujiPopups != null &amp;&amp; ujiPopups.showclose &amp;&amp; ujiPopups.showclose == "true") ? true : false;
      jQuery("#popup").modal({
          onOpen: function (dialog) {
              dialog.overlay.fadeIn('fast');
              dialog.data.hide();
              dialog.container.show('fast', function () {
                  dialog.data.fadeIn('slow');  
              }); 
          },
          autoResize: false,
          autoPosition: true,
          escClose: false,
          zIndex: 999999,
          overlayClose: false
      });     
  }
  
  function popups_close(){
      jQuery.modal.close();
      jQuery("#popup").remove();
  }   
  </code></pre>