// JavaScript Document
function $(id){
	var tempObj = document.getElementById(id)
	if(tempObj){
		return tempObj;
	}
	return false;
}

function addEvent(elm, evType, fn, useCapture){
	if (elm.addEventListener){
		elm.addEventListener(evType, fn, useCapture);
		return true;
	} else if (elm.attachEvent) {
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	} else {
		elm['on' + evType] = fn;
	}
	}
	
function sameHeight(){
	var boxLeft = $('content_left');
	var boxRight = $('content_right');
	if(boxLeft.offsetHeight > boxRight.offsetHeight){
		boxRight.style.height = boxLeft.offsetHeight - 20 + 'px';
	}else{
		boxLeft.style.height  = boxRight.offsetHeight + 20 + 'px';
	}
}

addEvent(window,'load',sameHeight,false);
