title: focus doesn't work in IE
body: <p>i have the following function   </p>
  
  <pre><code> function change() 
   {
         var input = document.getElementById('pas');
         var input2 = input.cloneNode(false);
         input2.type = 'password';
         input.parentNode.replaceChild(input2,input);
         input2.focus();
    }
  </code></pre>
  
  <p>but <code>focus()</code>  doesn't work in ie7, so what can i do!
  i want to have the cursor inside of input!</p>
  
  <p>thanks </p>
  
  <h2>update</h2>
  
  <p>great solution, thanks, but now it doesn't work in opera:(</p>