function GetxmlHttpObject(handler)
{ 
　var objxmlHttp = null;
　if (!window.xmlHttpRequest)
　{
　　// Microsoft
　　objxmlHttp = GetMSxmlHttp();
　　if (objxmlHttp != null)
　　{
　　　objxmlHttp.onreadystatechange = handler;
　　}
　} 
　else
　{
　　// Mozilla | Netscape | Safari
　　objxmlHttp = new xmlHttpRequest();
　　if (objxmlHttp != null)
　　{
　　　objxmlHttp.onload = handler;
　　　objxmlHttp.onerror = handler;
　　}
　} 
　return objxmlHttp; 
} 

function GetMSxmlHttp()
{
　var xmlHttp = null;
　var clsids = ["Msxml2.xmlHTTP.6.0","Msxml2.xmlHTTP.5.0","Msxml2.xmlHTTP.4.0","Msxml2.xmlHTTP.3.0", 
"Msxml2.xmlHTTP.2.6","Microsoft.xmlHTTP.1.0", 
"Microsoft.xmlHTTP.1","Microsoft.xmlHTTP"];
　for(var i=0; i<clsids.length && xmlHttp == null; i++) {
　　xmlHttp = CreatexmlHttp(clsids[i]);
　}
　return xmlHttp;
}

function CreatexmlHttp(clsid) {
　var xmlHttp = null;
　try {
　　xmlHttp = new ActiveXObject(clsid);
　　lastclsid = clsid;
　　return xmlHttp;
　}
　catch(e) {}
}

function SendxmlHttpRequest(xmlhttp, url) { 
　xmlhttp.open('GET', url, true); 
　xmlhttp.send(null); 
  
} 
