﻿function GetPageHeight()
{
    if (document.all) 
        alert('Document height = ' + document.body.offsetHeight);
    else if (document.layers)
        alert('Document height = ' + document.body.document.height);
}
