// JavaScript Document
  var d = document;

  function getHeight(){
		// set the heights
    var box = new Array("c1","c2"); //list of DIV ids
		var h = 0;
		for(x=0;x<box.length;x++){
			if( d.getElementById(box[x]) ){
				div = d.getElementById(box[x]);
				// unset height and scrollHeight
				div.style.height = "auto";
				div.style.scrollHeight = "auto";
				// determine the tallest div
				test_h = div.offsetHeight;
				if( test_h > h ){
					h = test_h;
				}
			}
    }
		// set the height of all divs to the tallest
    for(x=0;x<box.length;x++){
			if( d.getElementById(box[x]) ){
				div = d.getElementById(box[x]);
				div.style.height = h +"px"; 
				div.style.scrollHeight = h +"px";
			}
		}
  }

window.onload = function() {
	getHeight();
	// set left margin on footer
	d.getElementById("footer").style.margin = "0";
}

window.onresize = function() {
	getHeight();
}