JavaScript error undefined object although object exist
<p>I have the following code</p>

<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div class="full-details-box" name="full_details_box" id="full-details-box"&gt;&lt;/div&gt;
        &lt;hr /&gt;
        &lt;script type='text/javascript'&gt;
        function show_3136(){
            document.full_details_box.style.display='block';
        }
        show_3136();
        &lt;/script&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I get the error: window.document.full_details_box is undefined</p>

<p>I get the error for the line:</p>

<pre><code>document.full_details_box.style.display='block';
</code></pre>

<p>But I do have a <code>&lt;div&gt;</code> element with the name <code>full_details_box</code>, so why the error? </p>
