
function w_onmouseover(boton_activo,id_img)
{	


	if ( boton_activo != id_img)
	{
//		eval("img"+id_img + ".src = 'images/botob_0" + id_img +".gif'"); 
		eval("document.getElementById('img"+id_img +"').src = 'images/botob_0" + id_img +".gif'"); 
	}
//	document.getElementById('img2').src = 'images/botob_02.gif'
//	img2.src='images/botob_04.gif'	
}
function w_onmouseout(boton_activo,id_img)
{	
	if ( boton_activo != id_img)
	{
	
//		eval("img"+id_img + ".src = 'images/botoa_0" + id_img +".gif'"); 
		eval("document.getElementById('img"+id_img +"').src = 'images/botoa_0" + id_img +".gif'"); 
	}
}
function boton_activar(boton_activo , boton_activar,idx)
{	
	
//	eval("img"+boton_activo + ".src = 'images/botoa_0" + boton_activo +".gif'");
//	eval("img"+boton_activar + ".src = 'images/botob_0" + boton_activar +".gif'");
	
	eval("document.getElementById('img"+boton_activo +"').src = 'images/botoa_0" + boton_activo +".gif'"); 
	eval("document.getElementById('img"+boton_activar +"').src = 'images/botob_0" + boton_activar +".gif'"); 


	
	document.getElementById("boton_activo").value = boton_activar;
//	if (boton_activar == '4')
//	{
//		window.open("detfotos_paquete.php?i="+idx+"",target="ifra_descrip");
//	}
//	else
//	{
		window.open("ifra_decrip.php?op="+boton_activar+"&i="+idx+"",target="ifra_descrip");
//	}

	
//	eval("img"+id_img + ".src = 'images/botoa_0" + id_img +".gif'"); 

}

function w_onmouseover_hotel(boton_activo,id_img)
{	


	if ( boton_activo != id_img)
	{
//		eval("img"+id_img + ".src = 'images/botob_0" + id_img +".gif'"); 
		eval("document.getElementById('img"+id_img +"').src = 'images/botohotelb_0" + id_img +".gif'"); 
	}
//	document.getElementById('img2').src = 'images/botob_02.gif'
//	img2.src='images/botob_04.gif'	
}
function w_onmouseout_hotel(boton_activo,id_img)
{	
	if ( boton_activo != id_img)
	{
	
//		eval("img"+id_img + ".src = 'images/botoa_0" + id_img +".gif'"); 
		eval("document.getElementById('img"+id_img +"').src = 'images/botohotela_0" + id_img +".gif'"); 
	}
}


function boton_activar_hotel(boton_activo , boton_activar,idx)
{	
	
//	eval("img"+boton_activo + ".src = 'images/botoa_0" + boton_activo +".gif'");
//	eval("img"+boton_activar + ".src = 'images/botob_0" + boton_activar +".gif'");
	
	eval("document.getElementById('img"+boton_activo +"').src = 'images/botohotela_0" + boton_activo +".gif'"); 
	eval("document.getElementById('img"+boton_activar +"').src = 'images/botohotelb_0" + boton_activar +".gif'"); 


	
	document.getElementById("boton_activo").value = boton_activar;
	if (boton_activar == '4')
	{
		window.open("detvideos_youtube_hoteles.php?i="+idx+"",target="ifra_descrip");
	}
	else
	{
		window.open("ifra_decrip_hotel.php?op="+boton_activar+"&i="+idx+"",target="ifra_descrip");
	}

	
//	eval("img"+id_img + ".src = 'images/botoa_0" + id_img +".gif'"); 

}




function centrar_div (nombre,x,y)
{

	w_width = x;
	w_height = y;
	var Div=document.getElementById(nombre);
	Div.style.position= "absolute";
//	Div.style.width= w_width;
//	Div.style.height= w_height; 
	Div.style.display = "";
	var ypos = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
	Div.style.left = (screen.availWidth-w_width)/2 + 'px';
	Div.style.top = (screen.availHeight-w_height)/2 + ypos - 70 + 'px';
////// FIN CENTRAR
	document.getElementById(nombre).style.visibility="visible"; 
}

function ocultar_capa(nombre)
{	
	document.getElementById(nombre).style.visibility="hidden"; 
}



//------------------------------------------------------------------

// OPCIONES CATEGORIA

function mostrar_agregar_opccategoria(opc,idx,nombre)
{

	document.getElementById('opccategoria').value = opc;		
	if ( opc == 'modopccategoria')
	{
		document.getElementById('idxcategoria').value = idx;
		document.getElementById('nombrecategoria').value = nombre;
		document.getElementById('titulo_opccategoria').value = "Editar Categoria";
	}
	else
	{
		document.getElementById('idxcategoria').value = '';
		document.getElementById('nombrecategoria').value = '';
		document.getElementById('titulo_opccategoria').value = "Agregar Categoria";
	}		
	//---- CENTRAR
	centrar_div ('div_opccategoria', 258,232)	
	//---- FIN CENTRAR

}

function eliminar_registro_opccategoria(idx,nombre) {
	if (confirm("Delete : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opccategorias.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

// OPCIONES SUBCATEGORIA

function mostrar_agregar_opcsubcategoria(opc,idx,nombre,idxcategoria,gnombrecat)
{
	document.getElementById('opcsubcategoria').value = opc;
	document.getElementById('idxcategoriasubcategoria').value = idxcategoria;
		document.getElementById('gnombrecat').value = gnombrecat;
	if ( opc == 'modopcsubcategoria')
	{
		document.getElementById('idxsubcategoria').value = idx;
		document.getElementById('nombresubcategoria').value = nombre;
		document.getElementById('titulo_opcsubcategoria').value = "Editar Subcategoria";

	}
	else
	{
		document.getElementById('nombresubcategoria').value = '';
		document.getElementById('titulo_opcsubcategoria').value = "Agegar Subcategoria";
	}		
	//---- CENTRAR
	centrar_div ('div_opcsubcategoria', 258,232)	
	//---- FIN CENTRAR
}

function eliminar_registro_opcsubcategoria(idx,nombre,idxcategorias,gnombrecat) {
	if (confirm("Delete : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcsubcategorias.php?gidx='+idx+'&gidxcategorias='+idxcategorias+'&gnombrecat='+gnombrecat+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

// OPCIONES ESTADO



// OPCIONES CIUDAD


function eliminar_registro_opcciudad(idx,nombre,idxestado,gnombreestado) {
	if (confirm("Delete : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcciudad.php?gidx='+idx+'&gidxestado='+idxestado+'&gnombreestado='+gnombreestado+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

// ----------------------------------------------------------------------------------------------------------
//   OPCION ANUNCIO
// ----------------------------------------------------------------------------------------------------------

//function mostrar_capa_agregar_galeria(opc,idcat,idx,nombre,descripcion)
function mostrar_agregar_anuncio(opc,idcat,idx,nombre,descripcion)
{
	document.getElementById('opcgaleria').value = opc;
	document.getElementById('gidcat_galeria').value = idcat;

	if ( opc == 'modanuncio')
	{
		document.getElementById('idx').value = idx;
		document.getElementById('x1').value = nombre;
		document.getElementById('x2').value = descripcion;
		document.getElementById('subir').style.display="";
		document.getElementById('titulo_anuncio').value = "Editar Publicidad";
	}
	else
	{
		document.getElementById('x1').value = "";
		document.getElementById('x2').value = "http://";
		document.getElementById('subir').style.display="none"; 
		document.getElementById('titulo_anuncio').value = "Nueva Publicidad";
	}
//---- CENTRAR
	centrar_div ('agregarGaleria', 445,265)	
	//---- FIN CENTRAR
// CENTRAR
}

function eliminar_registro(gidcat,gidgal,nombre) {
	if (confirm("Delete : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_anuncios.php?gidcat='+gidcat+'&gidgal='+ gidgal+'&t=e');
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}
//funcion para continenentes
function mostrar_agregar_opccontinente(opc,idx,nombre)
{

	document.getElementById('opccontinente').value = opc;		
	if ( opc == 'modopccontinente')
	{
		document.getElementById('idxcontinente').value = idx;
		document.getElementById('nombrecontinente').value = nombre;
		document.getElementById('titulo_opccontinente').value = "Editar Continente";
	}
	else
	{
		document.getElementById('idxcontinente').value = '';
		document.getElementById('nombrecontinente').value = '';
		document.getElementById('titulo_opccontinente').value = "Agregar Continente";
	}		
	//---- CENTRAR
	centrar_div ('div_opccontinente', 258,232)	
	//---- FIN CENTRAR

}



//funcion para paises
function mostrar_agregar_opcpais(opc,idx,idxcontinentes,snregion,nombre)
{
	document.getElementById('opcpais').value = opc;		
	if ( opc == 'modopcpais')
	{
		document.getElementById('idxpais').value = idx;//se muestra en el boton aceptar de la capa de mantenimiento de tablas
		document.getElementById('cbocontinentes').value = idxcontinentes;
		document.getElementById('cbosnregion').value = snregion;
		document.getElementById('nombrepais').value = nombre;
		document.getElementById('div_region').style.display="none"; //muestra al div de region q no se visulaiza	
		document.getElementById('titulo_opcpais').value = "Editar Pais";
	}
	else
	{
		document.getElementById('idxpais').value = '';
		document.getElementById('cbosnregion').value = 0;
		document.getElementById('nombrepais').value = '';
		document.getElementById('div_region').style.display="block"; //no se muestra	
		document.getElementById('titulo_opcpais').value = "Agregar Pais";// se agrega el titulo en la  parte superior de la capa
	}		
	//---- CENTRAR LA CAPA O DIV
	centrar_div ('div_opcpais', 258,232)	
	//---- FIN CENTRAR

}
function eliminar_registro_opccontinente(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opccontinentes.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

function eliminar_registro_opcpais(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcpaises.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}


function eliminar_registro_opcciudaddis(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcciudad.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}




function eliminar_registro_opcestadodep(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcestado.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

//funcion para el estado

function mostrar_agregar_opcestado(opc,idx,idxcontinentes,idxpais,idxregiones,nombre)
{
	document.getElementById('opcestado').value = opc;		
	if ( opc == 'modopcestado')
	{
//		alert(idxregiones)
		document.getElementById('idxestado').value = idx;//se muestra en el boton aceptar de la capa de mantenimiento de tablas
		document.getElementById('cbopais').value = idxpais;
	//	alert("5")
	CargarContenido_mregiones("div_cboregion","inc_cboregion_solo.php?idx="+idxpais+"",idxregiones); //ajax para filtar el combo de editar pais
		
//		document.getElementById('cboregion').value = idxregiones;
		document.getElementById('nombreestado').value = nombre;
		document.getElementById('titulo_opcestado').value = "Editar Estado/Departamento";
	}
	else
	{
document.getElementById('idxestado').value = '';  // <input name="idxestado" type="hidden" id="idxestado" size="5" />
document.getElementById('nombreestado').value ='';//<input name="nombreestado" type="text" class="Estilo_caja_texto" id="nombreestado" size="45" />
document.getElementById('titulo_opcestado').value = "Agregar Estado/Departamento";// se agrega el titulo en la  parte superior de la capa de la pag opc estado.php
	}		
	//---- CENTRAR LA CAPA O DIV
	centrar_div ('div_opcestado', 258,232)	
	//---- FIN CENTRAR

}
function mostrar_agregar_opcciudad(opc,idx,idxcontinentes,idxpais,idxestadodep,nombre)
{
	document.getElementById('opcestado').value = opc;		
	if ( opc == 'modopcestado')
	{
//		alert(idxregiones)
		document.getElementById('idxestado').value = idx;//se muestra en el boton aceptar de la capa de mantenimiento de tablas
		document.getElementById('cbopais').value = idxpais;
	//	alert("5")
	CargarContenido_mestadodep("div_cboestadodep","inc_cboestadodep_solo.php?idx="+idxpais+"",idxestadodep); //ajax para filtar el combo de editar pais
		
//		document.getElementById('cboregion').value = idxregiones;
		document.getElementById('nombreestado').value = nombre;
		document.getElementById('titulo_opcestado').value = "Editar Ciudad/Distrito";
	}
	else
	{
document.getElementById('idxestado').value = '';  // <input name="idxestado" type="hidden" id="idxestado" size="5" />
document.getElementById('nombreestado').value ='';//<input name="nombreestado" type="text" class="Estilo_caja_texto" id="nombreestado" size="45" />
document.getElementById('titulo_opcestado').value = "Agregar Ciudad/Distrito";// se agrega el titulo en la  parte superior de la capa de la pag opc estado.php
	}		
	//---- CENTRAR LA CAPA O DIV
	centrar_div ('div_opcestado', 258,232)	
	//---- FIN CENTRAR

}

function eliminar_registro_opcestado(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcestado.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}


//funcion para actividades
function mostrar_agregar_opccactividades(opc,idx,nombre)
{

	document.getElementById('opccontinente').value = opc;		
	if ( opc == 'modopccontinente')
	{
		document.getElementById('idxcontinente').value = idx;
		document.getElementById('nombrecontinente').value = nombre;
		document.getElementById('titulo_opccontinente').value = "Editar Actividad";
	}
	else
	{
		document.getElementById('idxcontinente').value = '';
		document.getElementById('nombrecontinente').value = '';
		document.getElementById('titulo_opccontinente').value = "Agregar Actividad";
	}		
	//---- CENTRAR
	centrar_div ('div_opcactividades', 258,232)	
	//---- FIN CENTRAR
}

function eliminar_registro_opcactividades(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcactividades.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}


//funcion para DIAS
function mostrar_agregar_opccdias(opc,idx,nombre)
{

	document.getElementById('opccontinente').value = opc;		
	if ( opc == 'modopccontinente')
	{
		document.getElementById('idxcontinente').value = idx;
		document.getElementById('nombrecontinente').value = nombre;
		document.getElementById('titulo_opccontinente').value = "Editar Dia";
	}
	else
	{
		document.getElementById('idxcontinente').value = '';
		document.getElementById('nombrecontinente').value = '';
		document.getElementById('titulo_opccontinente').value = "Agregar Dia";
	}		
	//---- CENTRAR
	centrar_div ('div_opcdias', 258,232)	
	//---- FIN CENTRAR

}
function eliminar_registro_opcdias(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcdias.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}

//funcion para precios modelo
function mostrar_agregar_opcprecios(opc,idx,nombre,precioinicio,preciofinal)
{

	document.getElementById('opccontinente').value = opc;		
	if ( opc == 'modopccontinente')
	{
		document.getElementById('idxcontinente').value = idx;
		document.getElementById('nombrecontinente').value = nombre;  //nombrecontinente son los nombres de las cajas de texto del form div de precios 
		document.getElementById('precioinicio').value = precioinicio;//son los nombres de las variables para editar
		document.getElementById('preciofinal').value = preciofinal;
		document.getElementById('titulo_opccontinente').value = "Editar Precios";
	}
	else
	{
		document.getElementById('idxcontinente').value = '';
		document.getElementById('nombrecontinente').value = '';
		document.getElementById('precioinicio').value = '';
		document.getElementById('preciofinal').value = '';
		document.getElementById('titulo_opccontinente').value = "Agregar Precio";
	}		
	//---- CENTRAR
	centrar_div ('div_opcprecio', 258,232)	
	//---- FIN CENTRAR

}
function eliminar_registro_opcprecios(idx,nombre) {
	if (confirm("Esta Seguro de Eliminar el registro : "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_opcprecios.php?gidx='+idx+'&t=e');	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}



// ----------------------------------------------------------------------------------------------------------
//   OPTIMIZANDO
// ----------------------------------------------------------------------------------------------------------
// JavaScript Document
// -----------------------------------   AAAAAJJJJJAAAAAAXXXXXX ---------------------------
//ajax para el tiempo  de espera
function nuevoAjax(){ 
  var xmlhttp=false; 
  try { 
   // Creación del objeto ajax para  navegadores diferentes a Explorer 
   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
   // o bien 
   try { 
     // Creación del objet ajax para Explorer 
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { 
     xmlhttp = false; 
   } 
  } 

  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
   xmlhttp = new XMLHttpRequest(); 
  } 
  return xmlhttp; 
} 

function CargarContenido_ES_ANTIGUO_CON_UNO_SOLO(ubic,URL){ 

var contenedor; 
var mensaje='';

	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 

function CargarContenido_mestadodep(ubic,URL,idxestadodep){ 

var contenedor; 
var mensaje='';

	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
			
			document.getElementById('cboestadodep').value = idxestadodep;
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 





function CargarContenido_mregiones(ubic,URL,idxregiones){ 

var contenedor; 
var mensaje='';

	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
			
			document.getElementById('cboregion').value = idxregiones;
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 

function CargarContenido_UNICO(ubic,URL,ubic2,URL2,ubic3,URL3,ubic4,URL4,ubic5,URL5,ubic6,URL6,ubic7,URL7){ 

  
	var contenedor; 
	var mensaje='';
	
	mensaje="<table width='992' border='0' align='center' cellpadding='0' cellspacing='0'>  <tr>    <td width='15'><img src='img/spacer.gif' width='15' height='1' border='0' alt='' /></td>    <td width='959'><img src='img/spacer.gif' width='661' height='1' border='0' alt='' /></td>    <td width='15'><img src='img/spacer.gif' width='15' height='1' border='0' alt='' /></td>    <td width='3'><img src='img/spacer.gif' width='1' height='1' border='0' alt='' /></td>  </tr>  <tr>    <td><img name='mlwebsites_r1_c1' src='img/mlwebsites_r1_c1.jpg' width='15' height='16' border='0' id='mlwebsites_r1_c1' alt='' /></td>    <td background='img/mlwebsites_r1_c2.jpg'></td>    <td><img name='mlwebsites_r1_c3' src='img/mlwebsites_r1_c3.jpg' width='15' height='16' border='0' id='mlwebsites_r1_c3' alt='' /></td>    <td><img src='img/spacer.gif' width='1' height='16' border='0' alt='' /></td>  </tr>  <tr>    <td background='img/mlwebsites_r2_c1.jpg'></td>    <td height='750' valign='top' bgcolor='#FFFFFF'><table  border='0' cellpadding='5' cellspacing='5'>  <tr><td valign='top' bgcolor='#FFFFFF'><div align='left'><img src='images/loading.gif' width='40' height='40' /></div></td><td valign='top' bgcolor='#FFFFFF' class='Estilo1'><div align='left'>Loading<br />    Please wait ... </div></td></tr></table></td>    <td background='img/mlwebsites_r2_c3.jpg'></td>    <td><img src='img/spacer.gif' width='1' height='47' border='0' alt='' /></td>  </tr>  <tr>    <td><img name='mlwebsites_r3_c1' src='img/mlwebsites_r3_c1.jpg' width='15' height='16' border='0' id='mlwebsites_r3_c1' alt='' /></td>    <td background='img/mlwebsites_r3_c2.jpg'></td>    <td><img name='mlwebsites_r3_c3' src='img/mlwebsites_r3_c3.jpg' width='15' height='16' border='0' id='mlwebsites_r3_c3' alt='' /></td>    <td><img src='img/spacer.gif' width='1' height='16' border='0' alt='' /></td>  </tr></table>";	
	
	
	var ajax=nuevoAjax(); 
	
	//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
	//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		// esta bien es por la funcion
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;


			//var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//			document.location.href = '#dpaquete';
			
			

		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
}
function CargarContenido(ubic,URL,ubic2,URL2,ubic3,URL3,ubic4,URL4,ubic5,URL5,ubic6,URL6,ubic7,URL7){ 

//  alert(URL)
	var contenedor; 
	var mensaje='';
	
	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
	//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
	//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		// esta bien es por la funcion
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
//			tb_init ( 'a.thickbox, area.thickbox, input.thickbox'); 
				
			
			
			//-------------------------------------------------------------------------------------
			//----------------------------------------- INICIO DOS --------------------------------
			if (typeof ubic2 != "undefined" &&  ubic2 != '' )
			{
			
				ubic = ubic2;
				URL  = URL2;
			
				mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
				var ajax2=nuevoAjax(); 
				//	contenedor=document.getElementById('ventana');
				contenedor=document.getElementById(ubic);		
				//	mensaje='Cargando ...';		
				ajax2.open("GET",URL,true);	
				
				ajax2.onreadystatechange=function() { 
					// esta bien es por la funcion
					if (ajax2.readyState==1)	{
						contenedor.innerHTML=mensaje;
					}
					if (ajax2.readyState==4) { 
						contenedor.innerHTML = ajax2.responseText;
							
		//-------------------------------------------------------------------------------------
						//----------------------------------------- INICIO TRES --------------------------------
						
						if (typeof ubic3 != "undefined" &&  ubic3 != '' )
						{
						
							ubic = ubic3;
							URL  = URL3;
						
							mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
							var ajax3=nuevoAjax(); 
							//	contenedor=document.getElementById('ventana');
							contenedor=document.getElementById(ubic);		
							//	mensaje='Cargando ...';		
							ajax3.open("GET",URL,true);	
							
							ajax3.onreadystatechange=function() { 
								// esta bien es por la funcion
								if (ajax3.readyState==1)	{
									contenedor.innerHTML=mensaje;
								}
								if (ajax3.readyState==4) { 
									contenedor.innerHTML = ajax3.responseText;
										
									
									
									//-------------------------------------------------------------------------------------
									//----------------------------------------- INICIO CUATRO --------------------------------
									
									if (typeof ubic4 != "undefined" &&  ubic4 != '' )
									{
									
										ubic = ubic4;
										URL  = URL4;
									
										mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
										var ajax4=nuevoAjax(); 
										//	contenedor=document.getElementById('ventana');
										contenedor=document.getElementById(ubic);		
										//	mensaje='Cargando ...';		
										ajax4.open("GET",URL,true);	
										
										ajax4.onreadystatechange=function() { 
											// esta bien es por la funcion
											if (ajax4.readyState==1)	{
												contenedor.innerHTML=mensaje;
											}
											if (ajax4.readyState==4) { 
												contenedor.innerHTML = ajax4.responseText;
													
												
												
												//-------------------------------------------------------------------------------------
												//----------------------------------------- INICIO CINCO --------------------------------
												
												if (typeof ubic5 != "undefined" &&  ubic5 != '' )
												{
												
													ubic = ubic5;
													URL  = URL5;
												
													mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
													var ajax5=nuevoAjax(); 
													//	contenedor=document.getElementById('ventana');
													contenedor=document.getElementById(ubic);		
													//	mensaje='Cargando ...';		
													ajax5.open("GET",URL,true);	
													
													ajax5.onreadystatechange=function() { 
														// esta bien es por la funcion
														if (ajax4.readyState==1)	{
															contenedor.innerHTML=mensaje;
														}
														if (ajax5.readyState==4) { 
															contenedor.innerHTML = ajax5.responseText;
																
															
															
															//-------------------------------------------------------------------------------------
															//----------------------------------------- INICIO SEIS --------------------------------
															
												
															//----------------------------------------- FIN SEIS -----------------------------------
															//-------------------------------------------------------------------------------------
																
														} 
													} 
													ajax5.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
													ajax5.send(null)  
												}
									
												//----------------------------------------- FIN CINCO -----------------------------------
												//-------------------------------------------------------------------------------------
													
											} 
										} 
										ajax4.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
										ajax4.send(null)  
									}
						
									//----------------------------------------- FIN CUATRO -----------------------------------
									//-------------------------------------------------------------------------------------
										
								} 
							} 
							ajax3.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
							ajax3.send(null)  
						}
			
						//----------------------------------------- FIN TRES -----------------------------------
						//-------------------------------------------------------------------------------------
							
					} 
				} 
				ajax2.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
				ajax2.send(null)  
	

			
			}
			

			//----------------------------------------- FIN DOS -----------------------------------
			//-------------------------------------------------------------------------------------
				
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 


function CargarContenidoMotor(ubic,URL,ubic2,URL2,ubic3,URL3,ubic4,URL4,ubic5,URL5,ubic6,URL6,ubic7,URL7){ 

  
	var contenedor; 
	var mensaje='';
	
	mensaje="<table border='0'>  <tr><td><img src='images/loading.gif' width='15' height='15' /></td><td class='Estilo1'>Loading Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
	//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
	//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
		// esta bien es por la funcion
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
				
			
			
			//-------------------------------------------------------------------------------------
			//----------------------------------------- INICIO DOS --------------------------------
			if (typeof ubic2 != "undefined" &&  ubic2 != '' )
			{
			
				ubic = ubic2;
				URL  = URL2;
			
//				mensaje="Loading Please wait ...";
				var ajax2=nuevoAjax(); 
				//	contenedor=document.getElementById('ventana');
				contenedor=document.getElementById(ubic);		
				//	mensaje='Cargando ...';		
				ajax2.open("GET",URL,true);	
				
				ajax2.onreadystatechange=function() { 
					// esta bien es por la funcion
					if (ajax2.readyState==1)	{
						contenedor.innerHTML=mensaje;
					}
					if (ajax2.readyState==4) { 
						contenedor.innerHTML = ajax2.responseText;
							
		//-------------------------------------------------------------------------------------
						//----------------------------------------- INICIO TRES --------------------------------
						
						if (typeof ubic3 != "undefined" &&  ubic3 != '' )
						{
						
							ubic = ubic3;
							URL  = URL3;
						
//							mensaje="Loading Please wait ...";
							var ajax3=nuevoAjax(); 
							//	contenedor=document.getElementById('ventana');
							contenedor=document.getElementById(ubic);		
							//	mensaje='Cargando ...';		
							ajax3.open("GET",URL,true);	
							
							ajax3.onreadystatechange=function() { 
								// esta bien es por la funcion
								if (ajax3.readyState==1)	{
									contenedor.innerHTML=mensaje;
								}
								if (ajax3.readyState==4) { 
									contenedor.innerHTML = ajax3.responseText;
										
									
									
									//-------------------------------------------------------------------------------------
									//----------------------------------------- INICIO CUATRO --------------------------------
									
									if (typeof ubic4 != "undefined" &&  ubic4 != '' )
									{
									
										ubic = ubic4;
										URL  = URL4;
									
//										mensaje="Loading Please wait ...";
										var ajax4=nuevoAjax(); 
										//	contenedor=document.getElementById('ventana');
										contenedor=document.getElementById(ubic);		
										//	mensaje='Cargando ...';		
										ajax4.open("GET",URL,true);	
										
										ajax4.onreadystatechange=function() { 
											// esta bien es por la funcion
											if (ajax4.readyState==1)	{
												contenedor.innerHTML=mensaje;
											}
											if (ajax4.readyState==4) { 
												contenedor.innerHTML = ajax4.responseText;
													
												
												
												//-------------------------------------------------------------------------------------
												//----------------------------------------- INICIO CINCO --------------------------------
												
												if (typeof ubic5 != "undefined" &&  ubic5 != '' )
												{
												
													ubic = ubic5;
													URL  = URL5;
												
//													mensaje="Loading Please wait ...";
													var ajax5=nuevoAjax(); 
													//	contenedor=document.getElementById('ventana');
													contenedor=document.getElementById(ubic);		
													//	mensaje='Cargando ...';		
													ajax5.open("GET",URL,true);	
													
													ajax5.onreadystatechange=function() { 
														// esta bien es por la funcion
														if (ajax4.readyState==1)	{
															contenedor.innerHTML=mensaje;
														}
														if (ajax5.readyState==4) { 
															contenedor.innerHTML = ajax5.responseText;
																
															
															
															//-------------------------------------------------------------------------------------
															//----------------------------------------- INICIO SEIS --------------------------------
															
												
															//----------------------------------------- FIN SEIS -----------------------------------
															//-------------------------------------------------------------------------------------
																
														} 
													} 
													ajax5.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
													ajax5.send(null)  
												}
									
												//----------------------------------------- FIN CINCO -----------------------------------
												//-------------------------------------------------------------------------------------
													
											} 
										} 
										ajax4.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
										ajax4.send(null)  
									}
						
									//----------------------------------------- FIN CUATRO -----------------------------------
									//-------------------------------------------------------------------------------------
										
								} 
							} 
							ajax3.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
							ajax3.send(null)  
						}
			
						//----------------------------------------- FIN TRES -----------------------------------
						//-------------------------------------------------------------------------------------
							
					} 
				} 
				ajax2.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
				ajax2.send(null)  
	

			
			}
			

			//----------------------------------------- FIN DOS -----------------------------------
			//-------------------------------------------------------------------------------------
				
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 

function CargarContenidoContadordd(ubic,URL,ubic2,URL2,ubic3,URL3,ubic4,URL4,ubic5,URL5,ubic6,URL6,ubic7,URL7){ 

	var contenedor; 
	var mensaje='';

	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
	//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
	//	mensaje='Cargando ...';		
	ajax.open("GET",URL,true);	
	
	ajax.onreadystatechange=function() { 
	if (ajax.readyState==1)	{
		contenedor.innerHTML=mensaje;
	}
	if (ajax.readyState==4) { 
		contenedor.innerHTML = ajax.responseText;

		//-------------------------------------------------------------------------------------
		//----------------------------------------- INICIO DOS --------------------------------

			if ( !empty(ubic2))
			{					
				var contenedor; 
				var mensaje='';
				ubic = ubic2;
				URL = URL2;
				
				
				mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
				var ajax=nuevoAjax(); 
				//	contenedor=document.getElementById('ventana');
				contenedor=document.getElementById(ubic);		
				//	mensaje='Cargando ...';		
				ajax.open("GET",URL,true);	
					
				ajax.onreadystatechange=function() { 
				if (ajax.readyState==1)	{
					contenedor.innerHTML=mensaje;
				}
				if (ajax.readyState==4) { 
					contenedor.innerHTML = ajax.responseText;
				
					//-------------------------------------------------------------------------------------
					//----------------------------------------- INICIO TRES -------------------------------
							
					//----------------------------------------- INICIO TRES -------------------------------
					//-------------------------------------------------------------------------------------
					} 
				} 
					ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
					ajax.send(null)  
			}				

			//----------------------------------------- FIN DOS -----------------------------------
			//-------------------------------------------------------------------------------------
			
		} 
	} 
	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.send(null)  
} 

function CargarContenido_pos(ubic,URL,valor){ 

var contenedor; 
var mensaje='';

	mensaje="<br><br><table width='179' border='0'><tr><td width='46'><img src='images/loading.gif' width='40' height='40' /></td><td width='123' class='Estilo1'>Loading<br />Please wait ... </td></tr></table>";
	var ajax=nuevoAjax(); 
//	contenedor=document.getElementById('ventana');
	contenedor=document.getElementById(ubic);		
//	mensaje='Cargando ...';		

	
	ajax.onreadystatechange=function() { 
		if (ajax.readyState==1)	{
			contenedor.innerHTML=mensaje;
		}
		if (ajax.readyState==4) { 
			contenedor.innerHTML = ajax.responseText;
		} 
	} 
	var params = "valor"+ valor ;
	ajax.open("POST",URL,true);	
	
//	ajax.setRequestHeader("If-Modified-Since","Sat,1 Jan 2000 00:00:00 GMT");
	ajax.setRequestHeader("Content-Type",   "application/x-www-form-urlencoded");
//	ajax.send(null)  
	ajax.send(params);
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function eliminar_registro_cliente(idx,nombre) {
	if (confirm("Delete : Cliente "+nombre+" ?")) 
	{ 
       CargarContenido('ventana','list_clientes.php?gidclientes='+idx+'&t=e');
//	   CargarContenido(1,URL+'?d='+id);
	   
	   //return true;  
	}
    else  
	{
   		return false; 
	}	
}




function cerrarPopup(pid)
   {
      document.getElementById(pid).style.visibility = 'hidden';      
   }
function abrirPopup(top,left)
               {
                  	document.getElementById("pdiv").style.left = left;
	          		document.getElementById("pdiv").style.top = top;
                  	document.getElementById("pdiv").style.visibility='';      
               }  
			   
function posicionXY(e){
// capture the mouse position
    var posx = 0;
    var posy = 0;
    if (!e) var e = window.event;
    if (e.pageX || e.pageY)
    {
        posx = e.pageX;
        posy = e.pageY;
    }
    else if (e.clientX || e.clientY)
    {
        posx = e.clientX;
        posy = e.clientY;
    }

//	document.getElementById('pos').innerHTML = 'Mouse position is: X='+posx+' Y='+posy;

	document.getElementById('pos').style.left = posx;
	document.getElementById('pos').style.top = posy;
}
function posicionXY2(){
// capture the mouse position
	document.valor_pantalla.valor_ancho.value = screen.width;
	document.valor_pantalla.valor_alto.value = screen.height;
//	document.getElementById('pos').innerHTML = 'Mouse position is: X='+posx+' Y='+posy;

//	document.getElementById('pos').style.left = posx;
//	document.getElementById('pos').style.top = posy;
}
function ocultar_capa(nombre)
{	
//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	document.getElementById(nombre).style.visibility="hidden"; 
//	document.getElementById('agregarGaleria').style.visibility="visible";

}

function ocultar_capa_agregar_galeria()
{	
//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	document.getElementById('agregarGaleria').style.visibility="hidden"; 
//	document.getElementById('agregarGaleria').style.visibility="visible";

}
function ocultar_capa_modificar_foto()
{	
//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	document.getElementById('modificarFoto').style.visibility="hidden"; 
	document.getElementById('subir').style.display="none"; 
//	document.getElementById('agregarGaleria').style.visibility="visible";

}


function mostrar_capa_agregar_cliente(opc,clieidx,cliecategoria,clieusuario,clieclave,clienombre,cliedescrip)
{
//	alert(opc)
	iz=(screen.width-445) / 2;
	de=(screen.height-400) / 2;

//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	document.getElementById('opcclie').value = opc;	
	document.getElementById('cliecategoria').value = cliecategoria;	


//	alert(document.getElementById('opcgaleria').value)
	if ( opc == 'modclientes')
	{
		document.getElementById('clieidx').value = clieidx;
		document.getElementById('clieusuario').value = clieusuario;
		document.getElementById('clieclave').value = clieclave;
		document.getElementById('clienombre').value = clienombre;
		document.getElementById('cliedescrip').value = cliedescrip;

		document.getElementById('subir_cliente').style.display=""; 
	}
	else
	{
		document.getElementById('clieidx').value = '';
		document.getElementById('clieusuario').value = '';
		document.getElementById('clieclave').value = '';
		document.getElementById('clienombre').value = '';
		document.getElementById('cliedescrip').value = "<?php echo date('F d Y'); ?>";

		document.getElementById('subir_cliente').style.display="none"; 
	}
		
	
//	document.getElementById('agregarGaleria').style.left = iz;
//	document.getElementById('agregarGaleria').style.top = de;


	document.getElementById('agregarCliente').style.visibility="visible"; 
//	document.getElementById('agregarGaleria').style.visibility="visible";

// CENTRAR
	w_width = 445;
	w_height = 400;
	var Div=document.getElementById('agregarCliente');
	Div.style.position= "absolute";
	Div.style.width= w_width;
	Div.style.height= w_height; 
	Div.style.display = "";
	var ypos = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
	Div.style.left = (screen.availWidth-w_width)/2 + 'px';
	Div.style.top = (screen.availHeight-w_height)/2 + ypos - 70 + 'px';
////// FIN CENTRAR
}


function ocultar_capa_agregar_foto()
{	
//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	document.getElementById('agregarfoto').style.visibility="hidden"; 
//	document.getElementById('agregarGaleria').style.visibility="visible";

}

function mostrar_capa_agregar_foto(opc,gidcat,gidclieGal,gdesidclieGal,gidgal, gdesidgal)
{
	iz=(screen.width-445) / 2;
	de=(screen.height-400) / 2;

//	document.getElementById('agregarGaleria').style.left = 400;
//	document.getElementById('agregarGaleria').style.top = 358;
	
//	document.getElementById('agregarFoto').style.left 	= iz;
//	document.getElementById('agregarFoto').style.top 	= de;
	document.getElementById('agregarFoto').style.visibility="visible"; 


	document.getElementById('opcfoto').value = opc;
	document.getElementById('gidcat').value = gidcat;	
	document.getElementById('gidclieFot').value = gidclieGal;	
	document.getElementById('gdesidclieFot').value = gdesidclieGal;		
	document.getElementById('gidgal').value = gidgal;	
	document.getElementById('gdesidgal').value = gdesidgal;	
	
	// CENTRAR
	w_width = 460;
	w_height = 350;
	var Div=document.getElementById('agregarFoto');
	Div.style.position= "absolute";
	Div.style.width= w_width;
	Div.style.height= w_height; 
	Div.style.display = "";
	var ypos = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
	Div.style.left = (screen.availWidth-w_width)/2 + 'px';
	Div.style.top = (screen.availHeight-w_height)/2 + ypos - 70 + 'px';
////// FIN CENTRAR

}

function activar_eliminar(eli,eli2) {  //reloads the window if Nav4 resized
	document.getElementById(eli).value = 0;	
	if (document.getElementById(eli2).checked == true){
		document.getElementById(eli).value = 1;	
	}
}

function seleccionar_todo(){ 
   for (i=0;i<document.frmfotos.elements.length;i++) 
      if(document.frmfotos.elements[i].type == "checkbox") 
         document.frmfotos.elements[i].checked=1 
} 
function deseleccionar_todo(){ 
   for (i=0;i<document.frmfotos.elements.length;i++) 
      if(document.frmfotos.elements[i].type == "checkbox") 
         document.frmfotos.elements[i].checked=0 
} 

function valor(){ 
alert(document.frmfotos.el534.checked)
} 

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



//funcion para validar form
function revisar_cajas(opc) {
missinginfo = "";
if (opc == '1')
{
	if (document.form.cbopaises.value == 0)
	
	{ missinginfo += "\n Seleccionar Pais";}
	
	if (document.form.cboestadodep.value == 0)
	
	{ missinginfo += "\n Selecionar Estado/Departamento";}
	
	if (document.form.cbociudaddis.value == 0)
	
	{ missinginfo += "\n Selecionar Ciudad/Distrito";}
}
if (document.form.txttitulo.value == "")

{ missinginfo += "\n Ingrese el titulo del paquete";}

if (document.form.txtpeqdescripcion.value == "")

{ missinginfo += "\n Ingrese la descripcion del paquete";}

if (document.form.cboduracion.value == 0)

{ missinginfo += "\n Seleccionar duracion del paquete";}

if (document.form.cboactividades.value == 0)

{ missinginfo += "\n Seleccionar actividad del paquete";}

if (document.form.txtprecio.value == "")

{ missinginfo += "\n Ingrese el precio del paquete";}


if (missinginfo != "")

{

missinginfo ="_____________________________\n" +

"Ingresar los datos faltantes:\n" +

missinginfo +

"\n_____________________________" +
"\n Intente de nuevo por favor";
alert(missinginfo);
return false;
}
else
return true;
}
//onclick="javascript:return revisar_cajas();" va en el boton

//--eliminar paquetes>
function eliminar_paquetes(idx,nombre) {
	if (confirm("Delete "+nombre+" ?")) 
	{ 
      window.open("elipaquete.php?i="+idx,target="_self");//paso la variable a otra pag

	}
    else  
	{
   		return false; 
	}	
}

//onclick="javascript:return revisar_cajas();" va en el boton

//--eliminar paquetes>
function eliminar_paquetes(idx,nombre) {
	if (confirm("Delete "+nombre+" ?")) 
	{ 
      window.open("elipaquete.php?i="+idx,target="_self");//paso la variable a otra pag

	}
    else  
	{
   		return false; 
	}	
}
