javascript not working after php include
<p>I am trying to apply javascript twice to a simple html textarea.  I have onfocus and autogrow (which is actually jquery).  It seems i can only get one or the other to work but never both at once.  </p>

<p>My script has an: </p>

<pre><code>&lt;?php
include 'header.php';
?&gt;
</code></pre>

<p>This seems to be the problem.  In both the header.php and the index.php (where the header is included)  I have loaded jquery.js.  when I remove this file from the header, autogrow works but not my onfocus event (which clears the default text).  Is there a way to include another file without the two effecting each other.  I cant provide the code because it too long.</p>

<p>This is my onfocus code:</p>

<pre><code>&lt;script type='text/javascript'&gt;
    function addEvents(id) {
var field = document.getElementById(id);
field.onfocus = function () {
    if (this.value == "Answer this problem...") {
        this.value = "";
    } 
};
field.onblur = function () {
    if (this.value == "") {
        this.value = "Answer this problem...";
    } 
};
</code></pre>

<p>}
addEvents("answerbox");
        </p>
