ops...non funziona.

Devo fare il resize di un div(id Content) in base all'altezza della finestra:

codice:
window.onload = function() {
    if ((document.body != null) && (windowHeight() != null))
    {
        document.all.Content.style.height = (windowHeight()-50) + 'px';
    }                
}

function windowHeight()
{
    if (window.innerHeight != null)
        return window.innerHeight;
    if (document.body.clientHeight != null)
        return document.body.clientHeight;
    return null;     
}
Cosa sbaglio?