Problem with document.getElementById
<p>This works : </p>

<pre><code>
alert(document.getElementById("Container").nodeName);</code></pre>

<p>But this doesnt : </p>

<pre><code>
var CurParent = document.getElementById("Container");
alert(CurParent.nodeName);</code></pre>

<p>I am using IE7.
Why ? </p>
