//自定义AJAX引擎 
var http_request=false; 

//初始化XMLHttpRequest对象 
//浏览器的UI就是通过该对象与Ajax引擎打交道 
function initXMLHttpRequest(){ 

if(window.XMLHttpRequest)
{ 
//Mozilla浏览器 
http_request=new XMLHttpRequest(); 

	if(http_request.overrideMineType){ 
//防止某些版本的Mozilla浏览器处理没有Mine Type信息的 
//内容出错. 
		http_request.overrideMineType("text/xml"); 
	} 
} 
else if(window.ActiveXObject){ 
//IE浏览器 
		try{ 
//IE6或更高版本 
			http_request=new ActiveXObject("Msxml2.XMLHTTP"); 
		}catch(e){ 
//IE5.x 

			http_request=new ActiveXObject("Microsoft.XMLHTTP"); 

		} 

} 
} 

