why is javascript onmouseover funtions is getting called on page load?
<p>I have a html page with a link and onMouseOver of that link im calling
<code>return escape(showToolTip())</code></p>

<pre><code>    function showToolTip(){
alert(document.getElementById('toggleFlag'));
        var text;
        alert(document.getElementById('toggleFlag').value);
        if(document.getElementById('toggleFlag').value == false){
            text = 'hide';
            alert('hide');
        }else{
            text = 'show';      
            alert('show');
        }
</code></pre>

<p>This function is getting called on page load and when I mouse over I get show. When I mouse out and mouseover again it shows up as 'show' but never calls the function.</p>

<p>Where am I doing wrong?</p>
