Why does nothing happen when I click on a link that calls this function?
<p>It's not a syntactic issue as best as I can tell (other JS function calls work just fine on the very same page).</p>

<p>The very first question it asks is if a particular DIV id has its display property set to "none" (it does), and, if so, it should set it to "block" (along with a few others things), but absolutely nothing happens. I wrote the function for a different site, and it was working just fine there, and now ... nothing. I'm pulling my hair out! Thanks in advance...</p>

<pre><code>        function showHideFooter(FooterLinkP,FooterLinkSPAN)
        {   
            var DIV = document.getElementById('FooterLinksContentDIV');
            var P = document.getElementById(FooterLinkP);
            var SPAN = document.getElementById(FooterLinkSPAN);

            if (DIV.style.display == 'none')
            {
                DIV.style.display = 'block';
                P.style.display = 'block';
                SPAN.style.border = '1px solid #606060;';
                SPAN.setAttribute('style','background: url("img/navlinkhoverbg.jpg")');
            }
            else if ((DIV.style.display == 'block') &amp;&amp; (SPAN.style.border !== 'transparent'))
            {
                P.style.display = 'none';
                DIV.style.display = 'none';
                SPAN.style.background = 'transparent';
                SPAN.style.border = 'transparent';
                SPAN.setAttribute('style','background:hover:url("img/navlinkhoverbg.jpg")');
                SPAN.setAttribute('style','border:hover: 1px solid #606060;');
            }
            else
            {
                var number = 1;

                var contentArray = new Array();
                contentArray[0] = '&lt;? echo METHODS::footerPopulator(1,'title');?&gt;';
                contentArray[1] = '&lt;? echo METHODS::footerPopulator(2,'title');?&gt;';         
                contentArray[2] = '&lt;? echo METHODS::footerPopulator(3,'title');?&gt;';
                contentArray[3] = '&lt;? echo METHODS::footerPopulator(4,'title');?&gt;';
                contentArray[4] = '&lt;? echo METHODS::footerPopulator(5,'title');?&gt;';
                contentArray[5] = '&lt;? echo METHODS::footerPopulator(6,'title');?&gt;';
                contentArray[6] = '&lt;? echo METHODS::footerPopulator(7,'title');?&gt;';
                contentArray[7] = '&lt;? echo METHODS::footerPopulator(8,'title');?&gt;';
                contentArray[8] = '&lt;? echo METHODS::footerPopulator(9,'title');?&gt;';

                for (section in contentArray)
                {
                    document.getElementById(contentArray[section]).style.display = 'none';

                    while (number &lt;= 9)
                    {
                        document.getElementById(number).style.background = 'transparent';
                        document.getElementById(number).style.border = 'transparent';
                        document.getElementById(number).setAttribute('style','background:hover:url("img/navlinkhoverbg.jpg")');
                        document.getElementById(number).setAttribute('style','border:hover: 1px solid #606060;');
                        number++;
                    }   
                }
                P.style.display = 'block';
                SPAN.style.border = '1px solid #606060;';
                SPAN.setAttribute('style','background:url("img/navlinkhoverbg.jpg")');
            }
        }
</code></pre>

<p><strong>UPDATE:</strong>  </p>

<pre><code>&lt;SPAN class="FooterLinkSPAN" id="1"&gt;
&lt;A href="#links" onclick="showHideFooter('&lt;? echo METHODS::footerPopulator(1,'title'); ?&gt;','1');" class="footerLinks"&gt;&lt;? echo METHODS::footerPopulator(1,'title');?&gt;&lt;/A&gt;
&lt;/SPAN&gt;
</code></pre>

<p>An alert placed in the if and else if statements yields nothing, but placed in the else statement pops up, so it's considering the first two chunks to be false ... but they're not. I don't get it. But you guys answer quick! This site is great!</p>
