
// Class XMLHttp  
	XMLHttp.prototype.getRequest = function(){
		var handler;
		var http;
		try{  
			// Firefox, Opera 8.0+, Safari  
			http = new XMLHttpRequest(); 
			return http;	
		}catch (e){  
			// Internet Explorer  
			try{
				http = new ActiveXObject("Msxml2.XMLHTTP"); 
				return http;				
			}catch(e){    
				try{      
					http=new ActiveXObject("Microsoft.XMLHTTP"); 
					return http;					
				}catch (e){      
					alert("Your browser does not support AJAX!");      
					return false;      
				}    
			}  
		}  
	}
	XMLHttp.prototype.get = function(url,handler){
		this.handler=handler;
		var wrapper=this;
		this.http.onreadystatechange=function(){
				if(wrapper.http.readyState==4){
					var x=wrapper.http.responseXML.documentElement;
					wrapper.handler(x); 
					wrapper.handler=null;
				}
			}
		this.http.open("GET",url,true);
		this.http.send(null);
	}

	XMLHttp.prototype.http = null;
	XMLHttp.prototype.handler = null;
	function XMLHttp() {
		this.http = this.getRequest();
	}
	
// Class ajax  
	function ajax() {
	}
	ajax.prototype.load = function(url,handler){				
		var http = new XMLHttp();
		http.handler = handler;
		http.get(url,handler);
	}

