
var xmlHttp = null;

function createXMLHttpRequest(){
   var xmlHttp;
   if(window.ActiveXObject)
   {
     xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
   }
   else if(window.XMLHttpRequest)
   {
     xmlHttp = new XMLHttpRequest();
   }
   return xmlHttp;
}

function ajaxSendInUnSynchronizeGet(url, callback) {
   	xmlHttp = createXMLHttpRequest();
   	xmlHttp.onreadystatechange = callback; 
   	xmlHttp.open("GET",url,true);
   	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   	var result = xmlHttp.send(null);
}

function ajaxSendInSynchronizeGet(url, callback) {
   	xmlHttp = createXMLHttpRequest();
   	xmlHttp.onreadystatechange = callback; 
   	xmlHttp.open("GET",url,false);
   	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   	var result = xmlHttp.send(null); 	
}

function ajaxSendInUnSynchronizePost(url, queryString, callback) {
   	xmlHttp = createXMLHttpRequest();
   	xmlHttp.onreadystatechange = callback; 
   	xmlHttp.open("POST",url,true);
   	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   	var result = xmlHttp.send(queryString);
}

function ajaxSendInSynchronizePost(url, queryString, callback) {
   	xmlHttp = createXMLHttpRequest();
   	xmlHttp.onreadystatechange = callback; 
   	xmlHttp.open("POST",url,false);
   	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
   	var result = xmlHttp.send(queryString); 	
}