// JavaScript Document
// -----------------------------------------------------------------------------------------------------------------------//

//----------------------prueba_promos---//
function contactoSuper()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Comentarios/contacto.php?keepThis=true&TB_iframe=true&height=400&width=600');
}

function contactM()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Comentarios/contacto.php?keepThis=true&TB_iframe=true&height=450&width=600');
}

function popChat()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Comentarios/pushchat.html?keepThis=true&TB_iframe=true&height=300&width=400');
}

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

function haiti()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Haiti/haiti.php?keepThis=true&TB_iframe=true&height=410&width=610');
}


function Liquidacion()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Liquidacion/Liquidacion.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function dia14Feb()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/14Febrero/index.html?keepThis=true&TB_iframe=true&height=410&width=470');
}

function FO()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/FO/index.html?keepThis=true&TB_iframe=true&height=435&width=760');
}

// -----------------------------------------------------------------------------------------------------------------------//
function asempresarial()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/info.php?keepThis=true&TB_iframe=true&height=260&width=360');
}

function FlipNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo00.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function VegaNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo01.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function TreoNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo02.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function MifiNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo03.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function HuaweiNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo04.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function MotohintNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo08.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function Q9cNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo07.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function BBFlipNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo09.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function N3606Navidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo05.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function VE20Navidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promo06.php?keepThis=true&TB_iframe=true&height=430&width=640');
}

function palm_pre()
{
	TB_show('titulo','http://www.iusacell.com.mx/Palm_Pre/index.php?keepThis=true&TB_iframe=true&height=337&width=710');
}

function preciosNew()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/precios.php?keepThis=true&TB_iframe=true&height=455&width=710');
}
//-------------------------------------------------------------- PROMOS NUEVAS --------------------------------------------//
function z6m()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/z6/z6.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function motohint()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/motohint/motohint.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function moto()
{
	TB_show('titulo','http://www.iusacell.com.mx/promos_revision/moto.php?keepThis=true&TB_iframe=true&height=410&width=610');
}

function aguinaldo()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/aguinaldo/aguinaldo.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function volado()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Volado/volado.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function sphone()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Sphone/sphone.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function mms()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/MMS/mms.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function prepago_recargas()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Prepago_recargas/prepago_recargas.html?keepThis=true&TB_iframe=true&height=405&width=465');
}

function tarjeta_gratis()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Tarjeta_Gratis/TarjetaGratis.html?keepThis=true&TB_iframe=true&height=405&width=465');
}

function UbiNegocios()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Ubicacel/ubicacel01.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function UbiEmpresas()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Ubicacel/ubicacel00.php?keepThis=true&TB_iframe=true&height=410&width=470');
}

function PromoNavidad()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Navidad/promoNavidad.php?keepThis=true&TB_iframe=true&height=410&width=470');
}
//-------------------------------------------------------------- PROMOS BAM --------------------------------------------//

function b_router()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM/promo_router.php?keepThis=true&TB_iframe=true&height=365&width=815');
}

function b_bbmifi()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM/promo_bbmifi.php?keepThis=true&TB_iframe=true&height=365&width=815');
}

function b_netbook()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM/promo_netbook.php?keepThis=true&TB_iframe=true&height=365&width=815');
}

//funcion tarjeta_gratis();

//-------------------------------------------------------------- PROMOS PREPAGO --------------------------------------------//

//FUNCION prepago_recargas();

//-------------------------------------------------------------- PROMOS PLANES DE RENTA --------------------------------------------//

//FUNCION z6m()

//FUNCION motohint()

function masivo_storm()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/masivo_storm/index.php?keepThis=true&TB_iframe=true&height=410&width=610');
}
	
function masivo_treo()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/masivo_treo/index.php?keepThis=true&TB_iframe=true&height=410&width=610');
}

function masivo_q9()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/masivo_q9/index.php?keepThis=true&TB_iframe=true&height=410&width=610');
}

//-------------------------------------------------------------- PROMOS CONCURSOS 3G --------------------------------------------//

//FUNCION aguinaldo();

//FUNCION gijoe();

//FUNCION wolverine();

function descarga_contenido()
{
TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/DescargaContenidos/descarga_contenidos.html?keepThis=true&TB_iframe=true&height=410&width=470');
}

//-------------------------------------------------------------- PROMOS ROAMING --------------------------------------------//

function roaming_intl()
{
TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Roaming_Internacional/roaming_internacional.html?keepThis=true&TB_iframe=true&height=410&width=475');
}
	
function datos_3G()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Datos3G/datos_3G.html?keepThis=true&TB_iframe=true&height=410&width=475');
}
	
function roaming_rek2()
{
	TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/RoamingRek2/roaming_rek2.html?keepThis=true&TB_iframe=true&height=410&width=470');
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////FUNCIONES DE PELOS


	function mifi_C()
	{
		TB_show('titulo','http://www.iusacell.com.mx/Mifi_Contact/mfContact.php?keepThis=true&TB_iframe=true&height=490&width=810');
	}
	
	function mi_flip()
	{
		TB_show('titulo','http://www.iusacell.com.mx/promos_revision/flip.php?keepThis=true&TB_iframe=true&height=337&width=710');
	}
	
	function torneo2009()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/3G/Iusagol/popups/popup_iusagol_equipos.html?keepThis=true&TB_iframe=true&height=570&width=410');
	}

	function sugerencias()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/ITESM/dudas.php?keepThis=true&TB_iframe=true&height=400&width=400');
	}

	function mi_contacto()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/AC/contacto.php?keepThis=true&TB_iframe=true&height=230&width=420');
	}

    function Monarcas()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Monarcas/monarcas.html?keepThis=true&TB_iframe=true&height=410&width=610');
	}

    function storm()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Storm/Storm.html?keepThis=true&TB_iframe=true&height=410&width=470');
	}

	function palmpro()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Palm_Pro/PalmPro.html?keepThis=true&TB_iframe=true&height=410&width=470');
	}

	function treo_gratis()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/PalmTreo_Gratis/PalmTreoGratis.html?keepThis=true&TB_iframe=true&height=410&width=470');
	}	
	
	function potter()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Potter/harrypotter.html?keepThis=true&TB_iframe=true&height=410&width=470');
	}	

	function elite_personal()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Plan_ElitePersonal/PalmElitePersonal.html?keepThis=true&TB_iframe=true&height=405&width=465');
	}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////LA SUPER #$%$#%% Cobertura

	function cobertura()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Cobertura/index.php?keepThis=true&TB_iframe=true&height=490&width=805');
	}

	function cobertura_e()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Cobertura/index_e.php?keepThis=true&TB_iframe=true&height=490&width=805');
	}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function BAM300()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM300/index.php?keepThis=true&TB_iframe=true&height=405&width=465');	
	}

function EliteP()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Elite_Personal/index.php?keepThis=true&TB_iframe=true&height=405&width=465');	
	}

function Renapo()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Renapo/index.php?keepThis=true&TB_iframe=true&height=405&width=465');		
	}

function TAire()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/TAire/index.php?keepThis=true&TB_iframe=true&height=405&width=655');		
	}
	
function TAireF()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/TAire/indexF.php?keepThis=true&TB_iframe=true&height=405&width=655');		
	}	

function bam_total()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM_Total/index.html?keepThis=true&TB_iframe=true&height=410&width=610');	
	}
	
function bam_liverpool()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Liverpool/popup_liverpool.html?keepThis=true&TB_iframe=true&height=410&width=610');
	}
	
function prepago_350()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Prepago_BAM_350/prepago_bam_350.html?keepThis=true&TB_iframe=true&height=310&width=465');
	}
	
function bam_gratis()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM_Gratis/banner_bam_gratis.html?keepThis=true&TB_iframe=true&height=310&width=465');
	}
	
function bam_pcmia()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/BAM_PCMCIA_399/promo_pcmcia_399.html?keepThis=true&TB_iframe=true&height=310&width=465');		
	}
	
function cBam()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Promociones/Conexion_Bam/popup_promo_conexionbam.html?keepThis=true&TB_iframe=true&height=310&width=465');
	}

function mi_promo()
	{
		TB_show('titulo','../../Promociones/Mi_Promo/mi_promo.html?keepThis=true&TB_iframe=true&height=410&width=470');
	}
	
function caes()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Atencion/caes.php?keepThis=true&TB_iframe=true&height=550&width=750');
	}
	
function comentarios()
	{
		TB_show('titulo','http://www.iusacell.com.mx/New_Site/Comentarios/contacto.php?keepThis=true&TB_iframe=true&height=450&width=600');
	}

function SitioTreo()
	{
		TB_show('titulo','http://www.iusacell.com.mx/promos_revision/palm.php?keepThis=true&TB_iframe=true&height=410&width=610');
	}
////////////////////////////////////////////// IUSACELL EMPRESARIAL

function tablaCero()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/tablas/tabla00.php?keepThis=true&TB_iframe=true&height=370&width=710');
	}

function tablaUno()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/tablas/tabla01.php?keepThis=true&TB_iframe=true&height=370&width=710');
	}

function tablaDos()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/tablas/tabla02.php?keepThis=true&TB_iframe=true&height=370&width=710');
	}

function tablaTres()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/tablas/tabla03.php?keepThis=true&TB_iframe=true&height=370&width=710');
	}

function tablaCuatro()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/tablas/tabla04.php?keepThis=true&TB_iframe=true&height=370&width=710');
	}

function SecEmp()
	{
		TB_show('titulo','http://www.iusacell.com.mx/OurSites/empresarial/contacto.html?keepThis=true&TB_iframe=true&height=400&width=300');	
	}
//////////////////////////////////////////////// MIFI

function mifi00()
	{
		TB_show('titulo','http://www.iusacell.com.mx/Mifi/mifi00.html?keepThis=true&TB_iframe=true&height=520&width=520');		
	}

function mifi01()
	{
		TB_show('titulo','http://www.iusacell.com.mx/Mifi/mifi01.html?keepThis=true&TB_iframe=true&height=520&width=520');		
	}

function mifi02()
	{
		TB_show('titulo','http://www.iusacell.com.mx/Mifi/mifi02.html?keepThis=true&TB_iframe=true&height=520&width=520');		
	}

//////////////////////////////////////////////FUNCION ESPECIAL

	function generaContenidoGlobal(str)
	{
		var cargador = document.getElementById('cargador');
		var ajax = Ajax();		
		
		switch(str)
		{
			case 'news':
				ajax.open('GET','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposnuevos.php',true);
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}
				}
				ajax.send(null);				
			break;
			case 'all':
				ajax.open('GET','http://www.iusacell.com.mx/New_Site/Equipos/php/equipostodos.php',true);
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}
				}
				ajax.send(null);			
			break;
			case 'Empresarial':
				ajax.open('GET','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposempresa.php',true);
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}
				}
				ajax.send(null);			
			break;			
			case 'Monarcas':
				ajax.open('GET','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmonarcas.php',true);
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}
				}
				ajax.send(null);			
			break;	
			case 'BlackBerry':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Compal':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Hisense':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Kyocera':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'LG':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Motorola':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Nokia':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Samsung':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;		
			case 'Sanyo':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;	
			case 'Techfaith':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;	
			case 'Palm':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;			
			case 'UTSTARCOM':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposmarca.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("Marca="+str);			
			break;
			case 'Television':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposcarac.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'MMS':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposcarac.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;			
			case 'Conexion_BAM':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'Ubicacel':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;	
			case 'UbicacelE':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposubicacel.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;	
			case 'Copiloto':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'Entrenador':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;			
			case 'Entertainment':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'Tienda':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'Correo':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
			case 'Juegos':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;	
			case 'EliteTec':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);
			break;		
			case 'IusagolWAP':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;
			case 'Iusagol3G':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;
			case 'Iusacam':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposaplicacion.php',true)
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}	
				}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("aplicacion="+str);			
			break;		
/* Seccion Navidad */
			case 'navidad':
				ajax.open('GET','http://www.iusacell.com.mx/New_Site/Equipos/php/equiposnavidad.php',true);
				ajax.onreadystatechange = function()
				{
					if(ajax.readyState==4)
					{
						cargador.innerHTML = ajax.responseText;
					}
				}
				ajax.send(null);			
			break;	
			default:
			break;
		}
	}
/////////////////////////////////////////////////////////////////////////////////////////////FUNCION PARA GENERAR LOS EQUIPOS DE CUALQUIER PARTE
	function generaEquipos(value,str)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('cargador');
		if(str=="Empresarial")
		{
			ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/caract_empresas.php',true);
		}
		else
		{
			ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/caract_equipos.php',true);
		}		
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value+"&donde="+str);
	}
	
	function generaCarac(value)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/detalles_equipos.php',true);
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value);		
	}
	
	function generaAplica(value)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/aplicaciones.php',true);
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value);			
	}

	function generaFuncion(value)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/funciones_equipos.php',true);
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value);			
	}
	
	function generaPrecios(value)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/personal.php',true);
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value);			
	}

	function generaPreciosE(value)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/empresarial.php',true);
		ajax.onreadystatechange = function()
			{
				if(ajax.readyState==4)
				{
					cargador.innerHTML = ajax.responseText;	
				}
			}
		ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		ajax.send("id="+value);			
	}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////FUNCION DE PELOS

	function pelos(value,otro)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		switch(value)
		{
			case 'Personal':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/personal.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);		
			break;
			case 'Control':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/control.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);	
			break;
			case 'Elite':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/elite.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);	
			break;
			case 'Frontera':			
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/frontera.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);
			break;
			case 'Prepago':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/aire.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);
			break;		////////////////////////////////////////////////////////////////////////////////////////////
			case 'Empresarial':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/empresarial.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);			
			break;
			case 'EmpresarialC':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/empresarialC.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);			
			break; /////////////////////////////////////////////////////////////////////////////////////////////
			default:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/personal.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+otro);				
			break;
		}
	}
/////////////////////////////////////////////////////////////////////////////////////////////////FUNCION DE MAS PELOS

	function ElitePersonal(value,value2)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		
		switch(value)
		{
			case 200:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_200.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);	
			break;
			case 300:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_300.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 500:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_500.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 700:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_700.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 1000:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_1000.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 2000:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsal_2000.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			default:
			break;
		}
	}
	
	function EliteControl(value,value2)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		switch(value)
		{
			case 200:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_200.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 300:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_300.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 500:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_500.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 700:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_700.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 1000: 
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_1000.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 2000:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_peronsalc_2000.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			default:
			break;
		}
	}
	
	function EliteRes(value,value2)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		
		switch(value)
		{
			case 100:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_100.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 500:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_500.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 1000:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_1000.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 1500:
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Elite/plan_elite_1500.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			default:
			break;
		}
	}
	
	function FronteraRes(str,value2)
	{
		var ajax = Ajax();
		var cargador = document.getElementById('detalles');
		switch(str)
		{
			case 'atm1':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera1.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);			
			break;
			case 'atm2':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera2.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 'atm3':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera3.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 'atm4':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera4.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 'atm5':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera5.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			case 'atmvip':
				ajax.open('POST','http://www.iusacell.com.mx/New_Site/Equipos/Frontera/ATMFrontera6.php',true);
				ajax.onreadystatechange = function()
					{
						if(ajax.readyState==4)
						{
							cargador.innerHTML = ajax.responseText;	
						}
					}
				ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
				ajax.send("id="+value2);				
			break;
			default:
			break;
		}
	}
//////////////////////////////////////////////////////////////////////////////