function printArticle( artUrl ){
    behind = window.open(artUrl ,'printwin','height=620,width=590,status=yes,toolbar=yes,directories=no,menubar=no,location=no,resizable=no,scrollbars=yes');
}

function getAbsolutePos(el){
	for (var lx=0,ly=0;el!=null;
		lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
	return {x:lx,y:ly}
}

function getRealPos(el) {

    var retObj = new Object();

    // Get left and top coords.
    retObj.x = el.offsetLeft;
    retObj.y = el.offsetTop;
    tempEl = el.offsetParent;
    while (tempEl != null) {
        retObj.x += tempEl.offsetLeft;
        retObj.y += tempEl.offsetTop;
        tempEl = tempEl.offsetParent;
    }
  
    // Get bottom and right positions...
    retObj.width = el.offsetWidth;
    retObj.height = el.offsetHeight;
  
    return retObj;
}



