	var http_request = false;
	var tmpobj='';
	var tmpcat=0;
	function send_request(senddata,strobj,strcat) {//初始化、指定处理函数、发送请求的函数
		LoadBar(1,0);
		http_request = false;
		tmpobj = strobj;
		tmpcat = strcat;
		tmpSynchronous = true;
		if (tmpcat=="0"){
			tmpSynchronous = false;
		}
		//开始初始化XMLHttpRequest对象
		if(window.XMLHttpRequest) { //Mozilla 浏览器
			http_request = new XMLHttpRequest();
			if (http_request.overrideMimeType) {//设置MiME类别
				http_request.overrideMimeType("text/xml");
			}
		}
		else if (window.ActiveXObject) { // IE浏览器
			try {
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}
		if (!http_request) { // 异常，创建对象实例失败
			window.alert("不能创建XMLHttpRequest对象实例.");
			return false;
		}
		tmpurl="/ajax.asp" + senddata;
		// 确定发送请求的方式和URL以及是否同步执行下段代码
		http_request.open("GET", tmpurl, tmpSynchronous);
		http_request.send(null);
		http_request.onreadystatechange = processRequest;
		if (tmpcat=="1"){
		
		}else{
		  LoadBar(0,0);
      LoadBar(0,1);
      return processRequest();
    }
	}
	// 处理返回信息的函数
    function processRequest() {
    	  //alert(http_request.readyState+";"+tmpobj+";"+tmpcat+"");
      //try{
    	  if (http_request.readyState == 1) { // 判断对象状态
    	  	if (tmpcat=="1"){
    	  	  document.getElementById(tmpobj).innerHTML = "<span align='center'><img src='/images/ajaxloading.gif' width=16 height=16>正在读取数据...</span>";
    	    }
    	  }
    	  else if (http_request.readyState == 2) { // 判断对象状态
    	  	if (tmpcat=="1"){
    	  	  document.getElementById(tmpobj).innerHTML = "<span align='center'><img src='/images/ajaxloading.gif' width=16 height=16>读取数据完毕...</span>";
    	  	}
    	  }
    	  else if (http_request.readyState == 3) { // 判断对象状态
    	  	if (tmpcat=="1"){
    	  	  document.getElementById(tmpobj).innerHTML = "<span align='center'><img src='/images/ajaxloading.gif' width=16 height=16>正在加载数据...</span>";
    	  	}
    	  }
        else if (http_request.readyState == 4) { // 判断对象状态
            if (http_request.status == 200) { // 信息已经成功返回，开始处理信息
                if (tmpcat=="1"){
                  document.getElementById(tmpobj).innerHTML = http_request.responseText;
                }else{
                  return http_request.responseText;
                }
            } else { //页面不正常
                //alert("您所请求的页面有异常。");
                if (tmpcat=="1"){
                	document.getElementById(tmpobj).innerHTML = "<span align='center'>您所请求的页面有异常。</span>";
                }else{
                  return false;
                }
            }
            LoadBar(0,0);
            LoadBar(0,1);
        }
        else {
        	if (tmpcat=="1"){
    	  	  document.getElementById(tmpobj).innerHTML = "<span align='center'><img src='/images/ajaxloading.gif' width=16 height=16>正在读取数据...</span>";
    	    }
        }
        
      //}
		  //catch(e)
		  //{}
    }
