function get_objTop(thisobj){
    if(typeof(thisobj)!='object') thisobj=document.getElementById(thisobj);
    if (thisobj.offsetParent==document.body) return thisobj.offsetTop;
    else return thisobj.offsetTop + get_objTop(thisobj.offsetParent) - thisobj.scrollTop;
}

function get_objLeft(thisobj){
    if(typeof(thisobj)!='object') thisobj=document.getElementById(thisobj);
    if (thisobj.offsetParent==document.body) return thisobj.offsetLeft;
    else return thisobj.offsetLeft + get_objLeft(thisobj.offsetParent) - thisobj.scrollLeft;
}
