var LoadData = function(datos, content, path, metodo){
	activelink = "";
	
	if(metodo=="" || metodo ==null)
		metodo = "get";
	
	if(content== null || content=="")
		content = "Content";
		
	path = (path == "" || path == null) ? "" : path;
		
	new Request({
		method: metodo,
		url: path + 'Web/LoadData.php',
		
		onSuccess: function(texto){
			$('Loading_ALL').style.display = 'none';
			$('Loading').style.display = 'none';
			if(texto.indexOf('|')!=-1){
				data = texto.split("|");
				$(content).innerHTML = data[0];
				eval(data[1]);					
			}
			else{
				$(content).innerHTML = texto;
			}
		},
		onRequest: function(){
        		$('Loading_ALL').style.display = 'inline';
				$('Loading').style.display = 'inline';
		},
		onFailure: function(){
				$('Loading_ALL').style.display = 'none';
				$('Loading').style.display = 'none';
            	alert("No se pudo completar la peticion, intente de nuevo. Si el problema persiste verifique su conexion a internet o pongase en contacto con el administrador.");
        }
		
    }).send(datos + "&dif=" + Math.random()*50000);
}