创建ajax对象的方法
if(window.ActiveXObject)
{
try{
ajaxObj=new ActiveXObject('Msxml2.XMLHTTP');
}catch(e){}
if(ajaxObj==null)
try{
ajaxObj=new ActiveXObject('Microsoft.XMLHTTP');
}catch(e){}
}else {
ajaxObj=new XMLHttpRequest()
}
if(window.ActiveXObject)
{
try{
ajaxObj=new ActiveXObject('Msxml2.XMLHTTP');
}catch(e){}
if(ajaxObj==null)
try{
ajaxObj=new ActiveXObject('Microsoft.XMLHTTP');
}catch(e){}
}else {
ajaxObj=new XMLHttpRequest()
}