function getAbsolutePos(el) {
	var SL = 0, ST = 0; 
	var is_div = /^div$/i.test(el.tagName);
	if (is_div && el.scrollLeft) SL = el.scrollLeft; 
	if (is_div && el.scrollTop) ST = el.scrollTop;
	var r = { x: el.offsetLeft - SL, y: el.offsetTop - ST };
	if (el.offsetParent) { 
		var tmp = this.getAbsolutePos(el.offsetParent); 
		r.x += tmp.x; 
		r.y += tmp.y; 
	}
	return r;
};

function leave_comment(){
	var ca = document.getElementById('comment_area').style;
	if(ca.display==''){
		ca.display='none';	
		return false;
	} 

	ca.position = 'absolute';
	ca.left = '10%';
	ca.width = '80%';
	ca.display='';

	if(document.documentElement && document.documentElement.scrollTop){
		ca.top= document.documentElement.scrollTop + 'px';
	}else if(window.scrollY){
		ca.top = (window.scrollY + 10) + 'px';
	}else if (document.body){
		ca.top = (document.body.scrollTop + 10) + 'px';
	}
	return false;
}
