function DoCreateXmlHttpRequest()
{
var xmlHttpObj = null;
if (window.ActiveXObject)
{
try {
xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP") }
catch(e) {
try { xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP") }
catch(e2) { }
} }
else if (window.XMLHttpRequest) {
xmlHttpObj = new XMLHttpRequest(); }
return xmlHttpObj;
}
function DoXmlHttpGetStr(AUrl)
{
var xmlHttpObj = DoCreateXmlHttpRequest();
if (xmlHttpObj) {
xmlHttpObj.open("GET", AUrl, false);
xmlHttpObj.send("get");
return xmlHttpObj.responseText;
}
else { return ""; }
} ----转----