function createxmlhttp()
{
    xmlhttpobj = false;
    try{//创建对象，一个一个的试，哎，要是能统一标准都好。。
        xmlhttpobj = new XMLHttpRequest;
    }catch(e){
        try{
            xmlhttpobj=new ActiveXObject("MSXML2.XMLHTTP");
        }catch(e2){
            try{
                xmlhttpobj=new ActiveXObject("Microsoft.XMLHTTP");
            }catch(e3){
                xmlhttpobj = false;
            }
        }
    }
    return xmlhttpobj; 
}



//查询部门信息


function getsubsectorinfo(sectorid){
	
	 var X = createxmlhttp();
		 if(X){
			 show1();
			  X.onreadystatechange=function(){
			   if(X.readyState==4){
				if(X.status==200){
					//eval(X.responseText)
					var html = X.responseText;//获得返回值

					close();
					show3(html);

					}
					else{
						//GE('msg').innerHTML=X.statusText
						alert(X.statusText);
						}
			   }
			   else{
				   
				   //GE('msg').innerHTML="正在提交数据..."
				   close();
				   show1();
				   }

			  };
			X.open('get',"/getsubsectorinfo.asp?SectorId="+sectorid+"&number="+Math.random(),true);//get方法 加个随机数。
			X.send(null);
			
					}
		 else{

			 alert('浏览器不支持XMLHttpRequest');
		 }
		}

