title: Trouble calling functions after a Document.write()
body: <p>I'm having a problem getting a function to call when I click a button.  The code I'm using is shown below, and has worked on other pages, which is why I'm confused.  Could it be because this code is part of a new page written over the old using Document.write(NewPage), where new page is essentially a php document returned from an ajax post?</p>
  
  <pre><code>&lt;div class="abSpec" id="intro" style="display: block; text-align: center;"&gt; 
      &lt;p&gt;Some text&lt;/p&gt;
      &lt;input type="button" name="proceed" id="proceed" value="Proceed"/&gt;
  &lt;/div&gt;
  &lt;script&gt;
  $(function(){
      $("#proceed").click(function(){
          document.getElementById('intro').style.display="none";
      }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I don't like asking a debug question, but I've tried everything I can think of.</p>
  
  <p>Thanks.</p>