var MarginLeft = 0;   //浮动层离浏览器右侧的距离
var MarginTop = 95;     //浮动层离浏览器顶部的距离
var Width = 100;        //浮动层宽度
var Heigth= 280;        //浮动层高度

//设置浮动层宽、高
function Set(){
    document.getElementById("FloatDIV").style.width = Width;
    document.getElementById("FloatDIV").style.height = Heigth;
}

//实时设置浮动层的位置
function Move(){
    document.getElementById("FloatDIV").style.top = document.documentElement.scrollTop + MarginTop;
    document.getElementById("FloatDIV").style.left = document.documentElement.clientWidth - Width - MarginLeft;
    setTimeout("Move();",100);
}

Set();
Move();

//隐藏浮动窗口
function display(FloatDIV){
  var traget=document.getElementById(FloatDIV);
   if(traget.style.display==""){
			traget.style.display="none";
   }
}

