function calcularCuenta(edad,renta,valoruf){
	//valoruf = parseInt(valoruf) + "000";
	if(edad == '' || renta == '')
	{
		msgAlert = "Para consultar su plan ideal debe ingresar su edad y renta."
		abrirLightboxAlerta(msgAlert)
	}
	else if(edad < 18)
	{
		msgAlert = "Para acceder a nuestros planes debe ser mayor a 18 a&ntilde;os."
		abrirLightboxAlerta(msgAlert)
	}
	else
	{
		valorRenta = parseInt(renta) / parseInt(valoruf);
		if (valorRenta <= 16 && edad <= 28)
		{
			window.location.href = 'bciuniversitario_act.html';
		}
		else if (valorRenta <= 16 && edad > 28)
		{
			msgAlert = "En estos momentos no podemos ofrecerle un plan espec&iacute;fico.<br/>Para mayor informaci&oacute;n ll&aacute;menos al 600 692 8000."
			abrirLightboxAlerta(msgAlert)
		}
		else if (valorRenta > 16 && valorRenta <= 30)
		{
			window.location.href = 'bcicontrol_act.html';
		}
		else if (valorRenta > 30 && valorRenta <= 42)
		{
			window.location.href = 'bciconfianza_act.html';
		}
		else if (valorRenta > 42 && valorRenta <= 67 && edad <= 36)
		{
			urlDestino = 'lightboxbcitotal_act.html';
			abrirLightbox(urlDestino)
		}
		else if (valorRenta > 42 && valorRenta <= 67 && edad > 36)
		{
			urlDestino = 'lightboxbciintegral_act.html';
			abrirLightbox(urlDestino)
		}
		else if (valorRenta > 67 && valorRenta <= 223)
		{
			urlDestino = 'lightboxbcipremier_act.html';
			abrirLightbox(urlDestino)
		}
		else if (valorRenta > 223)
		{
			window.location.href = 'bcipreferencial_act.html';
		}
	}
}

function abrirLightbox(urlDest)
{
	Shadowbox.open({ content: urlDest, player: "iframe", height: 310, width: 620 });
}

function abrirLightboxAlerta(mensaje)
{
	msgEstructura = "<table cellspacing='0' cellpadding='0' border='0' class='lightboxAlerta'><tr><td width='80'>&nbsp;</td><td><p><strong>Estimado cliente:</strong></p><p>" + mensaje + "</p></td></tr></table>";
	Shadowbox.open({ content: msgEstructura, player: "html", height: 110, width: 600 });
}
