function elem(id) {
    if (document.getElementById != null) {
        return document.getElementById(id);
    }
    if (document.all != null) {
        return document.all[id];
    }
    if (document.layers != null) {
        return document.layers[id];
    }
    return null;
}

function height(id) {
    var e = elem(id);
    if (e) {
        return parseInt(e.offsetHeight);
    }
    return 0;
}

function windowHeight() {
    var height = 0;
    if( typeof( window.innerHeight ) == 'number' ) {
	//Non-IE
	height = window.innerHeight;
    } else if( document.documentElement && document.documentElement.clientHeight ) {
	//IE 6+ in 'standards compliant mode'
	height = document.documentElement.clientHeight;
    } else if( document.body && document.body.clientHeight ) {
	//IE 4 compatible
	height = document.body.clientHeight;     }
    return parseInt(height);
}

function stretchPage() {


	var practiceBodyGroup = elem("practiceBodyGroup");
	var practiceList = elem("practiceList");

	
	if (height("practiceList") <= height("practiceBodyGroup") ) {
//		alert("list shorter than body");
		practiceBodyGroup.style.height = (height("practiceBodyGroup")+10) + 'px';
	}

	if (height("practiceBodyGroup") <= height("practiceList") ) {
//		alert("body shorter than list");
//		practiceBodyGroup.style.height = (height("practiceList")+30) + 'px';
		practiceBodyGroup.style.height = (height("practiceList")+30) + 'px';
	}

	//change origH value after stretch
	origH = document.getElementById('practiceBodyGroup').offsetHeight;


}
