function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
function openclosediv(id,flag)
{
     var d = document.getElementById(id);
     if (d.style.display=="none")
     {
         d.style.display="";
         flag.src="/image/mi.gif";
         flag.alt="收缩";
     }
     else
     {
         d.style.display="none";
         flag.src="/image/pl.gif";
         flag.alt="展开";
     }
}
function menudisplay(id)
{
     var d = document.getElementById(id);
     d.style.display = "";
}
function menuclose(id)
{
     var d=document.getElementById(id);
     d.style.display="none";
}
function makeArray() {
for (var i=0; i < arguments.length; i++)
  this[i] = arguments[i];
this.length = arguments.length;
}

function floatAD(id) {
var obj=document.getElementById(id)
var L=T=0
var R
var B
if (!document.all){
//    R= window.clientWidth-obj.clientWidth -20;
    R= document.body.clientWidth-obj.offsetWidth -20;
    B= document.body.clientHeight-obj.offsetHeight;
    obj.style.left = obj.px;
    obj.style.top = obj.py +document.body.scrollTop;
}
else
{
    R= document.body.clientWidth-obj.offsetWidth;
    B= document.body.clientHeight-obj.offsetHeight;
    obj.style.left = obj.px + document.body.scrollLeft;
    obj.style.top = obj.py + document.body.scrollTop;
}
if (obj.pd==0)
{
obj.px = obj.px + obj.pxin;
if (obj.px < L) { obj.pxin = 1; obj.px = L} 
if (obj.px > R){ obj.pxin = -1; obj.px = R} 
obj.py = obj.py + obj.pyin;
if (obj.py < T) { obj.pyin = 1; obj.py = T } 
if (obj.py > B) { obj.pyin = -1; obj.py = B } 
}
else if (obj.pd==1)
{
obj.px = 0;
obj.py = obj.py + obj.pyin;
if (obj.py < T) { obj.pyin = 1; obj.py = T } 
if (obj.py > B) { obj.pyin = -1; obj.py = B } 
}
else if (obj.pd==2)
{
obj.px = R;
obj.py = obj.py + obj.pyin;
if (obj.py < T) { obj.pyin = 1; obj.py = T } 
if (obj.py > B) { obj.pyin = -1; obj.py = B } 
}

}



var theElementID=""
function handleHttpResponse() {
  if (httpObject.readyState == 4) {
    // Split the comma delimited response into an array
    result = httpObject.responseText;
    document.getElementById(theElementID).innerHTML=result;
  }
}
function updateElement(id,url) {
  theElementID=id
  httpObject.open("GET", url,true);
  httpObject.onreadystatechange = handleHttpResponse;
  httpObject.send(null);
 }
function getHTTPObject() {
  var req;
    if(window.XMLHttpRequest) {
    	try {
			req = new XMLHttpRequest();
        } catch(e) {
			req = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req = false;
        	}
		}
    }
  return req;
}
var httpObject = getHTTPObject(); // We create the HTTP Object

