﻿function getPosition() {
    var top    = document.documentElement.scrollTop;
    var left   = document.documentElement.scrollLeft;
    var height = document.documentElement.clientHeight;
    var width  = document.documentElement.clientWidth;
    
    return {top:top,left:left,height:height,width:width};
}

function QuickPostion(objID)
{
    var obj = document.getElementById(objID);

    window.onscroll = function (){
        var Position   = getPosition();
            obj.style.top  = (Position.top) + 80  +"px";
            //obj.style.right = "2px";
    };
}
