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;
}
function cargarCotizador(idProducto)
{
   header_label_cotizador = document.getElementById('header_label_cotizador');

       ajax=objetoAjax();
       ajax.open("POST", "acciones_comunes.php",true);
       ajax.onreadystatechange=function() {
           if (ajax.readyState==4) {
               header_label_cotizador.innerHTML = ajax.responseText;
           }
       }
       ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
       ajax.send("action=actdes_producto&idProducto="+idProducto);
}

