function BOX_show(e)
{ //显示
    if (!window.XMLHttpRequest)
	{
		if(document.getElementById("DivLstFromNodes") !=null && document.getElementById("DivLstToNodes") !=null)
		{
		    document.getElementById("DivLstFromNodes").style.visibility = "hidden";
            document.getElementById("DivLstToNodes").style.visibility = "hidden";
        }
	}
    if(document.getElementById(e) == null)
    {
        return;
    }
    BOX_layout(e);
}
function BOX_layout(e)
{ //调整位置
    var a = document.getElementById(e);
    if (document.getElementById('BOX_overlay')==null)
    { //判断是否新建遮掩层
        var overlay = document.createElement("div");
        overlay.setAttribute('id','BOX_overlay');
        a.parentNode.appendChild(overlay);
    }
    //取客户端左上坐标，宽，高
    var scrollLeft = (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
    var scrollTop = (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
    var clientWidth;
    var clientHeight;
    if (window.opera) {
        clientWidth = document.documentElement.clientWidth;
        clientHeight = document.documentElement.clientHeight;
    } else {
        clientWidth = document.body.clientWidth;
        clientHeight = document.body.clientHeight;
    }
    var bo = document.getElementById('BOX_overlay');
    bo.style.left = scrollLeft+'px';
    bo.style.top = scrollTop+'px';
    bo.style.width = clientWidth+'px';
    bo.style.height = clientHeight+'px';
    bo.style.display="";
    //Popup窗口定位
    a.style.position = 'absolute';
    a.style.zIndex=101;
    a.style.display="";
    a.style.left = scrollLeft+((clientWidth-a.offsetWidth)/2)+'px';
    a.style.top = scrollTop+((clientHeight-a.offsetHeight)/2)+'px';
}