function createXMLHttpRequest() 
{
    if (window.ActiveXObject) {
        http = new ActiveXObject("Microsoft.XMLHTTP");
	}
    else if (window.XMLHttpRequest) {
        http = new XMLHttpRequest();
	}
	
}
  createXMLHttpRequest() 
  
function AJAXGET(url,targetFunction)
{

		 http.open("GET", url, true);
		 http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 

		 http.onreadystatechange=function() {
			
		      if(http.readyState == 4) {
        		//if(http.status == 200) {
					if (targetFunction != null)
         			 	eval(targetFunction)
					//}
				
    		}

		}

	http.send(null);
	
}

function AJAXGET2(url,targetFunction, async)
{
		 http.open("GET", url, async);
		 http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 

		 http.onreadystatechange=function() {
			
		      if(http.readyState == 4) {
        		
					if (targetFunction != null)
         			 	eval(targetFunction)
    		}
		}

	http.send(null);
	
}

function AJAXPOST(url, qs, targetFunction)
{

		 http.open("POST", url, true);
		 http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 

		 http.onreadystatechange=function() {
			
		      if(http.readyState == 4) {
        	
					
         			 if (targetFunction != null)
         			 	eval(targetFunction)
					 
				
				
					
    				}
			}

	http.send(qs);
	
}