function createXMLHttpRequest1()
{
var ajax = null; 
if ( !ajax && typeof(XMLHttpRequest) != "undefined" )
{ajax=new XMLHttpRequest();
ajax.overrideMimeType('text/xml');
}	
else{ ajax=new ActiveXObject("Microsoft.XMLHTTP");	
}
return ajax;
}

function createXMLHttpRequest()
{

   var XMLHTTP = null;

    if(window.XMLHttpRequest){ //IE7, Mozilla ,Firefox 等浏览器内置该对象

    XMLHTTP = new XMLHttpRequest();

    }else if(window.ActiveXObject){ //IE6、IE5

    try{ XMLHTTP = new ActiveXObject("Msxml2.XMLHTTP");} catch (e){ ; }

    if( XMLHTTP == null) try { XMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");} catch (e){; }

    }

return XMLHTTP;
}



function RequestText(Url,QueryString,Method,O,xmlHttp)
{
if(Method.toLowerCase() == "get"){xmlHttp.open("GET",Url+QueryString,true);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");xmlHttp.send(null);}else{xmlHttp.open("POST",Url,true);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");xmlHttp.send(QueryString);}xmlHttp.onreadystatechange = new Function("returnText("+O+")");}


function $(n)
{
	return document.getElementById(n);
}
