if(window.XMLHttpRequest && !(window.ActiveXObject)){
try{
xmlhttp=new XMLHttpRequest();
} catch(err){
xmlhttp=false;
}
}else if (window.ActiveXObject){
isIE=true;
try{
xmlhttp= new ActiveXObject("Msxml12.XMLHTTP");
}catch(err){
try{
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
} catch(err){
xmlhttp = false;
}
}
}
if(xmlhttp!=null){
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){
if(xmlhttp.status==200){
var doc=xmlhttp.responseText;
xmlDom=new ActiveXObject("Microsoft.XMLDOM")
xmlDom.loadXML(doc)
resultFix(xmlDom);
}else{
alert("网络或服务失败");
}
}
};
xmlhttp.open("POST", URL, false);
xmlhttp.setRequestHeader("Content-type", "text/xml;charset=utf-8");
xmlhttp.send(param);
}else{
alert("你的浏览器不支持XMLHttpRequest.");
}