var xmlhttp1 = false;
 // branch for native XMLHttpRequest object
 if(window.XMLHttpRequest) {
  try {
			xmlhttp1 = new XMLHttpRequest();
        } catch(e) {
			xmlhttp1 = false;
        }
 // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	xmlhttp1 = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		xmlhttp1 = false;
        	}
		}
    }


//second
var xmlhttp2 = false;
 // branch for native XMLHttpRequest object
 if(window.XMLHttpRequest) {
  try {
			xmlhttp2 = new XMLHttpRequest();
        } catch(e) {
			xmlhttp2 = false;
        }
 // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		xmlhttp2 = false;
        	}
		}
    }
