function presentaProducto() {
    //Acabó de cargar el documento.
    if (req.readyState == 4)
        // Respuesta correcta.
          if (req.status == 200)
            document.getElementById('capaProducto').innerHTML = '<br><br><br><br><br><br>'+req.responseText;
        else alert("No se ha podido cargar el Producto:\n" + req.statusText);
}

function precargaProducto()
{
document.getElementById('capaProducto').innerHTML = '<br><br><br><br><br><br><center><table width=80% height=80%><tr><td align=center valign=top><img src="./images/Temporizador2.gif" border=0></td></tr></table></center>';
}

function cargaProducto(urlCarga) {
    if (window.XMLHttpRequest)
    {   
        precargaProducto();
        req = new XMLHttpRequest();
        req.onreadystatechange = presentaProducto;
        req.open("GET", urlCarga, true);
        req.send(null);
    }
    else
        if (window.ActiveXObject)
        {
            req = new ActiveXObject("Microsoft.XMLHTTP");
            if (req)
            {   
                precargaProducto();
                req.onreadystatechange = presentaProducto;
                req.open("GET", urlCarga, true);
                req.send();
            }
        }
}


