function setheight() {
    // get the arguments and their number
    var args = setheight.arguments;
    var numberofargs = args.length;

    // traverse the array with arguments, get the height of each TAG and add it in the "ar_hgs" array
    var heightarray = new Array();
    for (var i = 0; i < numberofargs; i++) {
        heightarray[i] = document.getElementById(args[i]).clientHeight;
    }

    // get the largest number (max height) in the "ar_hgs" array
    var maxheight = Math.max.apply(null, heightarray);

    // set max height to all tags in arguments
    for (var i = 0; i < numberofargs; i++) {
        document.getElementById(args[i]).style.height = maxheight + 'px';
    }
}

function increaseheight(inner, outer) {
    document.getElementById(outer).style.height = document.getElementById(inner).style.height;
    setheight('contentleft', 'contentarea', 'contentright');
}
