// JavaScript Document

function do_ajax_xml(txUrl, method, datos, funcion){
	$.ajax({
		url: txUrl,
		type: method,
		data: datos,
		datatype: "xml",
		success: function(xml, status){
			eval(funcion);
		},
		error: function(ob, tipo, txError){
			alert('depuracion error controlado en ajax: '+ob+"  "+tipo+"  "+txError+"  "+txUrl+"  "+method+"  "+datos);
		//	$(".divContenido").html(ob);
		}
	}
	);	
}
function do_ajax_php_html(txUrl, method, datos,where,  funcion){
	$.ajax({
		url: txUrl,
		type: method,
		data: datos,
		datatype: "html",
		success: function(data){
			$(where).html(data);
			eval(funcion);
		}
	});
}

