Line with problem.
wrapElement.style.height = windowHeight + "px";
Function:
function setWrap()
{
if (document.getElementById)
{
var windowHeight = getWindowHeight();
if (windowHeight > 0)
{
var wrapElement = document.getElementById("container");
wrapElement.style.height = windowHeight + "px";
}
}
}