function	hacerMenuNivel2() {
            var id_categoria			=	document.getElementById("id_categoria").value;
            var oXmlHttp				=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/hacerMenuTipoProductos.php?id_categoria=" + id_categoria, true);
            oXmlHttp.onreadystatechange =	function () {
				if (oXmlHttp.readyState ==	4) {
					if (oXmlHttp.status ==	200) {
						mostrarMenu2(oXmlHttp.responseText);
						}
				else	{
						mostrarMenu2("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	mostrarMenu2(sText) {
			var divCustomerInfo = document.getElementById("menuNivel2");
			divCustomerInfo.innerHTML	= "";
			divCustomerInfo.innerHTML = sText;
			}
		
function hacerMenuNivel3() {
            var id_categoria			=	document.getElementById("id_categoria").value;
            var id_tipo_producto		=	document.getElementById("id_tipo_producto").value;
            var oXmlHttp				=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/hacerMenuFabricantes.php?id_categoria=" + id_categoria+"&id_tipo_producto="+id_tipo_producto, true);
            oXmlHttp.onreadystatechange =	function () {
                if (oXmlHttp.readyState ==	4) {
                    if (oXmlHttp.status ==	200) {
                        mostrarMenu3(oXmlHttp.responseText);
                    }
				else {
                       mostrarMenu3("Ha ocurrido un error: " + oXmlHttp.statusText);
                    }
                }            
            };
            oXmlHttp.send(null); 
        }
        
function	mostrarMenu3(sText) {
			var divCustomerInfo			=	document.getElementById("menuNivel3");
			divCustomerInfo.innerHTML	=	"";
			divCustomerInfo.innerHTML	=	sText;
			}
			
function	hacerMenuNivel4() {
            var id_categoria			=	document.getElementById("id_categoria").value;
            var id_tipo_producto		=	document.getElementById("id_tipo_producto").value;
            var id_fabricante			=	document.getElementById("id_fabricante").value;
            var oXmlHttp				=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/hacerMenuModelos.php?id_categoria=" + id_categoria+"&id_tipo_producto="+id_tipo_producto+"&id_fabricante="+id_fabricante, true);
            oXmlHttp.onreadystatechange =	function () {
			if (oXmlHttp.readyState ==	4) {
				if (oXmlHttp.status ==	200) {
					mostrarMenu4(oXmlHttp.responseText);
					}
			else	{
				mostrarMenu4("Ha ocurrido un error: " + oXmlHttp.statusText);
				}
                }            
            };
            oXmlHttp.send(null);
			}
        
function	mostrarMenu4(sText) {
			var divCustomerInfo			= document.getElementById("menuNivel4");
			divCustomerInfo.innerHTML	= "";
			divCustomerInfo.innerHTML	= sText;
			}
			
function	mostrarProductosModelo() {
            var id_categoria			=	document.getElementById("id_categoria").value;
            var id_tipo_producto		=	document.getElementById("id_tipo_producto").value;
            var id_fabricante			=	document.getElementById("id_fabricante").value;
            var id_modelo				=	document.getElementById("id_modelo").value;
            var oXmlHttp				=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/hacerMenuModelos.php?id_tipo_producto=" + id_tipo_producto+"&id_fabricante="+id_fabricante+"&id_modelo="+id_modelo, true);
            oXmlHttp.onreadystatechange =	function () {
			if (oXmlHttp.readyState ==	4) {
				if (oXmlHttp.status ==	200) {
				document.location.href='listar-productos.php?idarea=14&lang=es&id_categoria='+id_categoria+'&id_tipo_producto='+id_tipo_producto+'&id_fabricante='+id_fabricante+'&id_modelo='+id_modelo;
				mostrarMenu4(oXmlHttp.responseText);
					}
			else	{
				mostrarMenu5("Ha ocurrido un error: " + oXmlHttp.statusText);
				}
                }            
            };
            oXmlHttp.send(null);
			}
			
function	buscarModelosProducto() {
            var id_producto				=	document.getElementById("id_producto").value;
            var oXmlHttp				=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "../../modulos/PA/mostrarModelos.php?id_producto="+id_producto, true);
            oXmlHttp.onreadystatechange =	function () {
			if (oXmlHttp.readyState ==	4) {
				if (oXmlHttp.status ==	200) {
					mostrarModelosProducto(oXmlHttp.responseText);
					}
			else	{
				mostrarModelosProducto("Ha ocurrido un error: " + oXmlHttp.statusText);
				}
                }            
            };
            oXmlHttp.send(null);
			}
        
function	mostrarModelosProducto(sText) {
			var divCustomerInfo			= document.getElementById("mostrarModelosProducto");
			divCustomerInfo.innerHTML	= sText;
			}


function	mostrarCuerpoPedido(id_pedido, id_estado_linea_pedido, id_linea_venta) {
          //  var id_pedido					=	document.getElementById("id_pedido").value;
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "../../modulos/PA/cambiarEstadoLineaVenta.php?id_pedido="+id_pedido+"&id_estado_linea_pedido="+id_estado_linea_pedido+"&id_linea_venta="+id_linea_venta, true);
            oXmlHttp.onreadystatechange 	=	function () {
			if (oXmlHttp.readyState 		==	4) {
				if (oXmlHttp.status 		==	200) {
					mostrarLineasPedido(oXmlHttp.responseText);
					}
			else	{
				mostrarLineasPedido("Ha ocurrido un error: " + oXmlHttp.statusText);
				}
                }            
            };
            oXmlHttp.send(null);
			}
        
function	mostrarLineasPedido(sText) {
			var divCustomerInfo				=	document.getElementById("mostrarLineasPedido");
			divCustomerInfo.innerHTML		=	sText;
			}
			
function	hacerMenuPaquetes(id_proyecto) {
          /*  var id_proyecto					=	document.getElementById("id_proyecto").value;*/
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "../../modulos/PA/hacerMenuPaquetes.php?id_proyecto=" + id_proyecto, true);
            oXmlHttp.onreadystatechange 	=	function () {
				if (oXmlHttp.readyState 	==	4) {
					if (oXmlHttp.status 	==	200) {
						mostrarMenuPaquetes(oXmlHttp.responseText);
						}
				else	{
						mostrarMenuPaquetes("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	mostrarMenuPaquetes(sText) {
			var divCustomerInfo 			=	document.getElementById("menuPaquetes");
			divCustomerInfo.innerHTML		=	"";
			divCustomerInfo.innerHTML 		=	sText;
			}
			
function	hacerMenuTareas() {
            var id_paquete					=	document.getElementById("id_paquete").value;
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "../../modulos/PA/hacerMenuTareas.php?id_paquete=" + id_paquete, true);
            oXmlHttp.onreadystatechange 	=	function () {
				if (oXmlHttp.readyState 	==	4) {
					if (oXmlHttp.status 	==	200) {
						mostrarMenuTareas(oXmlHttp.responseText);
						}
				else	{
						mostrarMenuTareas("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	mostrarMenuTareas(sText) {
			var divCustomerInfo 			=	document.getElementById("menuTareas");
			divCustomerInfo.innerHTML		=	"";
			divCustomerInfo.innerHTML 		=	sText;
			}
			
function	hacerInteractividad(id_interactividad) {
           //	var id_interactividad			=	document.getElementById("id_interactividad").value;
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/interactividad.php?cambioEstadoVentana=" + id_interactividad, true);
            oXmlHttp.onreadystatechange 	=	function () {
				if (oXmlHttp.readyState 	==	4) {
					if (oXmlHttp.status 	==	200) {
						mostrarInteractividad(oXmlHttp.responseText);
						}
				else	{
						mostrarInteractividad("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	mostrarInteractividad(sText) {
			//document.getElementById("ventanaInteractiva").style.visibility = "hidden";
			var divCustomerInfo 			=	document.getElementById("ventanaInteractiva");
			divCustomerInfo.innerHTML		=	"";
			divCustomerInfo.innerHTML 		=	sText;
			}


function	comprobarEventoIncompatible(id_evento) {
           //	var id_interactividad			=	document.getElementById("id_interactividad").value;
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/PA/comprobarEventoIncompatible.php?id_evento=" + id_evento, true);
            oXmlHttp.onreadystatechange 	=	function () {
				if (oXmlHttp.readyState 	==	4) {
					if (oXmlHttp.status 	==	200) {
						mostrarIncompatibilidad(oXmlHttp.responseText);
						}
				else	{
						mostrarIncompatibilidad("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	hacerMenuEventos(sText) {
			//document.getElementById("ventanaInteractiva").style.visibility = "hidden";
			var divCustomerInfo 			=	document.getElementById("ventanaIncompatibilidad");
			divCustomerInfo.innerHTML		=	"";
			divCustomerInfo.innerHTML 		=	sText;
			}
			
function	hacerMenuEventos() {
          	var id_grupo_evento				=	document.getElementById("id_grupo_evento").value;
            var oXmlHttp					=	zXmlHttp.createRequest();
            oXmlHttp.open("get", "modulos/IRD/IRD_mostrarEventosGrupo.php?id_grupo_evento=" + id_grupo_evento, true);
            oXmlHttp.onreadystatechange 	=	function () {
				if (oXmlHttp.readyState 	==	4) {
					if (oXmlHttp.status 	==	200) {
						mostrarEventosGrupo(oXmlHttp.responseText);
						}
				else	{
						mostrarEventosGrupo("Ha ocurrido un error: " + oXmlHttp.statusText);
						}
					}            
				};
            oXmlHttp.send(null); 
        	}
        
function	mostrarEventosGrupo(sText) {
			var divCustomerInfo 			=	document.getElementById("ventanaEventosGrupo");
			divCustomerInfo.innerHTML		=	"";
			divCustomerInfo.innerHTML 		=	sText;
			}


		

