Uncaught TypeError : Cannot read property 'style' of nullsetWrap
<p>Line with problem.</p>

<pre><code>wrapElement.style.height = windowHeight + "px";
</code></pre>

<p>Function:</p>

<pre><code>function setWrap() 
{
    if (document.getElementById) 
    {
        var windowHeight = getWindowHeight();
        if (windowHeight &gt; 0) 
        {
            var wrapElement = document.getElementById("container");
            wrapElement.style.height = windowHeight + "px";
        }

    }
}
</code></pre>