title: with (window) {} doesn't work for new pop-up window in IE
body: <p>I open a window, and want to perform some calculation on some condition.
  Problem is in IE,  only first call of <code>test</code> (from <code>ready</code>) is performed from new window, 
  but subsequent calls of <code>test</code> (set with setTimeout) are executed in parent window and not for new window (i.e. <code>win</code>).</p>
  
  <p>It works fine in FF.</p>
  
  <p>illustrating code (this code is in parent window):</p>
  
  <pre><code>var win = window.open(some_url, window_name, argument_string);
  
  with (win) {
      function test() {
          alreadyrunflag += 1;
          if (alreadyrunflag &lt; 10) {
              window.setTimeout(function() { test(); }, 500);
          }else { 
              //perform calculation
          }
      }
  
      jQuery(win.document).ready(function() {
          alreadyrunflag = 0
          test();          
      });
  }
  </code></pre>