function ajax_get_html(url, object_name, url_params, metodo){  
	var xmlHttp;

	try{    // Firefox, Opera 8.0+, Safari    
		xmlHttp=new XMLHttpRequest();    
	}catch (e){    // Internet Explorer    
		try{      
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
		}catch (e){      
			try{        
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        
			}catch (e){        
				alert("Your browser does not support AJAX!");        
				return false;        
			}      
		}    
	}

	if ( object_name != '' ){
	    xmlHttp.onreadystatechange=function(){
									if(xmlHttp.readyState==4){
										if (document.all){
											document.all[object_name].innerHTML=xmlHttp.responseText;
										}else{
											document.getElementById(object_name).innerHTML=xmlHttp.responseText;
										}
							        }
	
									}
	}

	try{
	    if(metodo=='POST'){
	    	xmlHttp.open("POST",url,true);
	    	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlHttp.setRequestHeader("Content-length", url_params.length);
			xmlHttp.setRequestHeader("Connection", "close");
		    xmlHttp.send(url_params);  
	    }else{
		    xmlHttp.open("GET",url+"?"+url_params,true);
		    xmlHttp.send(null);  
		}
	}catch(e){
		alert(e);
	}
}