How can i dynamically Change onmouseover, onmouseout and onClick WITH parameters?
<p>I have an image:</p>

<pre><code>&lt;img id="reqPic" src="mark.png" /&gt;
</code></pre>

<p>I also have declared a flag earlier on in the page:</p>

<pre><code>&lt;script type="text/javascript"&gt;
 var isToolTipEnabled = true;
&lt;/script&gt;
</code></pre>

<p>I now want to be able to check the flag and if its true, assign the onmouseover and onmouseout events. However, the onmousover event has to be changed to another function called Tip('string') which takes in a string. I have seen other questions on here on how to change this but it I dont see how I can pass paramters to the new function I want to change to. </p>

<p>The onClick would be changed to something like this:</p>

<p>onClick="javascript:toggleHelp('reftypeHelp');";</p>

<p>Any help on this would be greatly appreciated.</p>

<p>Thanks!</p>
