Ver originalif (ajax.readyState==4){if (ajax.status==200){document.getElementById("divRegistrar").innerHTML = ajax.responseText;}}