function mostrarSelectorAnios(valorCombo)
{
	var packsPromo = ["1050mb", "1250mb", "1550mb", "1850mb"];  // Minúsculas
	var eureka = false;
	for (var i = 0; i < packsPromo.length && !eureka; i++)
		if (valorCombo.toLowerCase().indexOf(packsPromo[i]) != -1)
			eureka = true;
	if (eureka)
		document.getElementById('filaselanios').style.display = "block";
	else
		document.getElementById('filaselanios').style.display = "none";
}

function comprobar_telefono(numero,id){
	var theForm = document.contacto;
	if(!/^([0-9])*$/.test(numero))
	{		alert("El valor " + numero + " no corresponde a un número utilizado en números telefónicos. Por favor cámbielo. Gracias");
			document.getElementById(id).value="";
	}
}

function VF_Suscribir()
{
	var theForm = document.suscribir;
	var campo;
	if (document.getElementById('nombre').value=="")
	{ 	alert("Por favor ingrese su(s) Nombre(s) Completo(s) para poder identificarle. Gracias.");
		document.getElementById('nombre').focus();
		return false;
	}
	if (document.getElementById('email').value=="")
	{	alert("Por favor escriba correctamente su correo electrónico. Gracias.");
		document.getElementById('email').focus();
		return false;
	}
	else{ var s = document.getElementById('email').value;
			var filter=/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
			if (filter.test(s));
			else{ alert("Por favor ingrese una dirección de correo válida. Gracias.");
				document.getElementById('email').value="";
				document.getElementById('email').focus();
				return false;}
	}
	if (document.getElementById('empresa').value=="")
	{	alert("Por favor indíquenos el nombre de su empresa, organización o actividad principal. Gracias.");
		document.getElementById('empresa').focus();
		return false;
	}
	if (document.getElementById('rubro').value=="0")
	{	alert("Por favor indíquenos su rubro de negocios. Gracias.");
		document.getElementById('rubro').focus();
		return false;
	}
	if (document.getElementById('pais').value=="0")
	{	alert("Por favor indíquenos el País de su residencia. Gracias.");
		document.getElementById('pais').focus();
		return false;
	}
	if (document.getElementById('direccion').value=="")
	{	alert("Por favor ingrese su Dirección Completa. Gracias.");
		document.getElementById('direccion').focus();
		return false;
	}
	campo = document.getElementById('pais');
	if (campo.value == 'Perú' || campo.value == 'Per&uacute;')
	{
		campo = document.getElementById('ruc');
		if (trim(campo.value) != '' && (isNaN(parseInt(campo.value)) || campo.value.length != 11))
		{
			alert('Por favor ingrese correctamente su número de RUC (11 dígitos). Gracias.');
			campo.focus();
			return false;
		}
	}
	if (document.getElementById('telefono').value=="")
	{	alert("Por favor ingrese su teléfono fijo de contacto para poder comunicarnos con Usted. Gracias.");
		document.getElementById('telefono').focus();
		return false;
	}
	if (document.getElementById('dominio').value=="")
	{	alert("Por favor indíquenos el nombre de su dominio sin www ni http. Gracias.");
		document.getElementById('dominio').focus();
		return false;
	}
	if (document.getElementById('extension').value=="0")
	{	alert("Por favor seleccione la extensión de su dominio. Gracias.");
		document.getElementById('extension').focus();
		return false;
	}
	if (document.getElementById('estadodom').value=="0")
	{	alert("Por favor indíquenos el estado actual de su Dominio. Gracias.");
		document.getElementById('estadodom').focus();
		return false;
	}
	if (document.getElementById('cuenta').value=="0")
	{	alert("Por favor indíquenos la cuenta de HOSTING MKRED que desea suscribir. Gracias.");
		document.getElementById('cuenta').focus();
		return false;
	}
	if (document.getElementById('chat').value=="0")
	{	alert("Por favor indíquenos su chat preferido para poder comunicarnos rápidamente. Gracias.");
		document.getElementById('chat').focus();
		return false;
	}
	if (document.getElementById('formapago').value=="0")
	{	alert("Por favor indíquenos la Forma de pago de su preferencia para procesar su Orden. Gracias.");
		document.getElementById('formapago').focus();
		return false;
	}
	theForm.submit();
}
