var oCover=null;
//window.onload=function()
function load_url(mm,mm1,mm2)
{
  oCover=new Xcover('gray',30); 
  var infoBox=document.getElementById('addrBox');
  if(document.getElementById('allsites'))
  {
  	 var actNode=document.getElementById('allsites');
     actNode.onclick=function()
	 {
	 	showAllSet();
     }
   }
   //alert(window.location.hostname);
   //alert(window.location.host);

 function showAllSet()
 {
	//var host_name = window.location.host;
	oCover.show();
	infoBox.style.display='block';
	infoBox.style.left=document.documentElement.clientWidth/2-infoBox.offsetWidth/2+"px";
	infoBox.style.top='100px';
	infoBox.innerHTML="<img src='" + mm + "images_pub/loading.gif' />";
	loadFile();
  }
  function loadFile()
  {
	//var host_name = window.location.host;
	var sAjax=new AJAXRequest();
	var xCheck=false;
	sAjax.url = mm+mm1+mm2+"&";
	//  注意最后加上&,不加的话，接受到的最后参数有问题
	//alert(mm+mm1+mm2);
	sAjax.method='GET';
	sAjax.content=Math.random()+"";
	setTimeout(function(){
		if(!xCheck){
		   closeBt("addrBox");
		}
	},10000);
	sAjax.callback=function(o){
		xCheck=true;
		if(document.readyState=="complete"){
			infoBox.innerHTML=o.responseText;
		}
		else{
		  setTimeout(function(){
			infoBox.innerHTML=o.responseText;
		  },500)
		}
	}
	sAjax.send();
  }

}
   function closeBt(str)
   {
	document.getElementById(str).style.display='none';
	setTimeout(function()
	{
	 oCover.hidden();
	},500)
  }
