function class_ajax(url_send, param_send)
{
	this.url_send=url_send;
	this.main_ajax=function(){
		
		var url = this.url_send;
		http = false;
		
		if (window.XMLHttpRequest) //firefox y safari
		{ 
			http = new XMLHttpRequest();
			if (http.overrideMimeType) 
			{
				http.overrideMimeType('text/xml');
			}
		} 
		else if (window.ActiveXObject) // internet esplorer
		{ 
			try {
				http = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					http = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}
		http.onreadystatechange = function (){
			            if(http.readyState == 4)
						{
							 if (http.status == 200) {
							 	result_ajax = http.responseText;
								eval(param_send);
							}else{
								alert('connection failed');
							}
						}
					}
		http.open('GET',url , true);
		http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		http.send(null);
		
			
	}
	
}
