function objetoAjax(){
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
var contLin = 1;
function ver_orden(){
ajax=objetoAjax();
orden=document.resultado.num_orden.value;
ajax.open("GET", "busc_ord_res.php?orden="+orden);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
var valores = ajax.responseText;
if(valores){
var filas=valores.split("|");
if(document.all.tab_res.rows.length!=1){
var ultima = document.all.tab_res.rows.length;
for(var i=1;i<=ultima-1;i++){
document.all.tab_res.deleteRow(1);
}
aum_filas(filas,valores);
}
else aum_filas(filas,valores);
}
}
}
ajax.send(null);
}
function aum_filas(filas,valores){
var tr, td;
divResultado1 = document.getElementById('hist');
divResultado2 = document.getElementById('nom');
divResultado3 = document.getElementById('aps');
divResultado4 = document.getElementById('sexo');
divResultado5 = document.getElementById('edad');
for(var i=0; i
val = filas[i].split("/");
var Row = document.getElementById("tab_res").insertRow(-1);
var Cell = Row.insertCell(0);
Cell.innerHTML = "";
var Cell = Row.insertCell(1);
Cell.innerHTML = "";
var Cell = Row.insertCell(2);