function getWindowInnerHeight() {
        if (typeof(window.innerHeight) == "number") {
                return window.innerHeight;
        } else if (document.documentElement && document.documentElement.clientHeight) {
                return document.documentElement.clientHeight;
        } else if (document.body && document.body.clientHeight) {
                return document.body.clientHeight;
        } else {
                return 768;
        }
}

function init() {
	// Adjust the height of the inner border so that the edges will extend to the bottom of the browser window.
	// No need to adjust the outer border height, as it will expand with the inner border.
	var innerBorder = document.getElementById("innerBorder");
	if (innerBorder && getWindowInnerHeight() > innerBorder.offsetHeight) {
		innerBorder.style.height = getWindowInnerHeight() + "px";
	}
}
