
function GetXmlHttpObject(url, handler, id, strSend) { 
	// Get appropriate Object
	var objXmlHttp=null;
	try {
		// Non-IE/IE>=7
		objXmlHttp = new XMLHttpRequest();            
   		}catch(e){
  	        try {
  	        	objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
     		}catch(e){
              	try{
              		objXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
           		}catch(e){
           			// Can't have this situation, really bad for client
           			// TODO : gracefully Switch to Non-AJAX Mode
           			alert("error opening XMLHTTP");
           		}
           	}
       	}
       
	objXmlHttp.onreadystatechange=function(){
		if (objXmlHttp.readyState==4 || objXmlHttp.readyState=="complete"){
       		handler(objXmlHttp, id);
		}
	}

    		//objXmlHttp.preserveWhiteSpace = true;
    		//objXmlHttp.open("POST",url,true)
    		//objXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
	objXmlHttp.open("GET",url,true);
    objXmlHttp.send(null);
} 


function GetXmlHttpObject1(url, handler, id, strSend) { 
	// Get appropriate Object
	var objXmlHttp=null;
	try {
		// Non-IE/IE>=7
		objXmlHttp = new XMLHttpRequest();            
   		}catch(e){
  	        try {
  	        	objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
     		}catch(e){
              	try{
              		objXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
           		}catch(e){
           			// Can't have this situation, really bad for client
           			// TODO : gracefully Switch to Non-AJAX Mode
           			alert("error opening XMLHTTP");
           		}
           	}
       	}
       
	objXmlHttp.onreadystatechange=function(){
		if (objXmlHttp.readyState==4 || objXmlHttp.readyState=="complete"){
       		handler(objXmlHttp, id);
		}
	}

    		
	objXmlHttp.open("GET",url,true)
	objXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
    objXmlHttp.send(strSend);
}

function GetXmlHttpObject2(url, handler, id, strSend, async) { 
	// Get appropriate Object
	var objXmlHttp=null;
	try {
		// Non-IE/IE>=7
		objXmlHttp = new XMLHttpRequest();            
	} catch(e) {
		try {
			objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(e) {
			try {
				objXmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e) {
				// Can't have this situation, really bad for client
				// TODO : gracefully Switch to Non-AJAX Mode
				alert("error opening XMLHTTP");
			}
		}
	}
	objXmlHttp.open("GET", url, async);
	objXmlHttp.send(null);
	return objXmlHttp;
}