function floatBill(htmlId,sx,sy,delay,step)
{
    if(!sx)
    {
        sx=50;
    }
    if(!sy)
    {   
        sy=60;
    }
    if(!delay)
    {
        delay=10;
    }
    if(!step)
    {   
        step=1;
    }
    htmlObj=document.getElementById(htmlId);    
    htmlObj.style.position='absolute';
    htmlObj.floatBillFunction=floatBillFunction;
    htmlObj.sx = sx;
    htmlObj.sy = sy;
    htmlObj.xin = true;
    htmlObj.yin = true;
    htmlObj.step = step;
    htmlObj.delay = delay;
    
    var funStr='document.getElementById("'+htmlId+'").floatBillFunction();';
    
    htmlObj.itl = window.setInterval(funStr,htmlObj.delay);
    htmlObj.onmouseover=function()
    {
        window.clearInterval(this.itl);
    }
    htmlObj.onmouseout=function()
    {
        this.itl=window.setInterval('document.getElementById("'+this.id+'").floatBillFunction()', this.delay);
    }           
}
function floatBillFunction()
{
    var L=T=0;
    var R= document.body.clientWidth-this.offsetWidth; 
    var B = document.body.clientHeight-this.offsetHeight;
    this.style.left = this.sx + document.body.scrollLeft; 
    this.style.top = this.sy + document.body.scrollTop;
    this.sx += this.step*(this.xin?1:-1); 
    if (this.sx < L) 
    { 
        this.xin = true; 
        this.sx = L;
    }
    if (this.sx > R)
    { 
        this.xin = false; 
        this.sx = R;
    } 
    this.sy += this.step*(this.yin?1:-1);
    if (this.sy < T) 
    { 
        this.yin = true; 
        this.sy = T;
    } 
    if (this.sy > B) 
    { 
        this.yin = false;
        this.sy = B;
    } 
}
