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 colHeights() {

	var col1 = elem("col1");
	var col2 = elem("col2");
	var col3 = elem("col3");

//	var col4 = elem("col4");
//	var col5 = elem("col5");
//	var col6 = elem("col6");


	var maxHeight = height("col1");
//	var maxHeight2 = height("col4");

	if(height("col1") <= height("col2")) {
		maxHeight = height("col2");
	}
	if(maxHeight <= height("col3")) {
		maxHeight = height("col3");
	}
/*
	if(height("col4") <= height("col5")) {
		maxHeight2 = height("col5");
	}
	if(maxHeight <= height("col6")) {
		maxHeight2 = height("col6");
	}
*/
	
	col1.style.height = maxHeight + 'px';
	col2.style.height = maxHeight + 'px';
	col3.style.height = maxHeight + 'px';
/*
	col4.style.height = maxHeight2 + 'px';
	col5.style.height = maxHeight2 + 'px';
	col6.style.height = maxHeight2 + 'px';
*/
}

