/////////////////////////////////////////////////////////////////////////////////////////////
// FUNCION PARA MOSTRAR EL HOROSCOPO ELEGIDO
/////////////////////////////////////////////////////////////////////////////////////////////
function mostrarHoroscopo(pagina)
{ 
	var pos_x=0;
	var pos_y=0;
	var alto=window.screen.height
	var ancho=window.screen.width
	pos_x = (ancho-600)/2;
	pos_y = (alto-550)/2;
	window.open(pagina,'displayWindow','toolbar=no,scrollbars=no,width=600,height=550,top=' + pos_y + ',left=' + pos_x); 
}


/////////////////////////////////////////////////////////////////////////////////////////////
// FUNCIONES PARA LA PAGINA DE NUMEROLOGÍA
/////////////////////////////////////////////////////////////////////////////////////////////
function Crear_Anos()
{
	for (x=1900;x<2004;x++)
	{
		document.write("<option value='" + x + "'>" + x + "</option>");
	}
}
function Calcular()
{
	Fecha = DIA.value + MES.value + ANO.value;
	Sumar(Fecha);
}		
function Sumar(Fecha)
{
	Suma=0;
	for(x=0;x<Fecha.length;x++)
	{
		Suma += eval(Fecha.substr(x,1));
	}

	if (Suma>=10)
		Sumar(Suma.toString());
	else
	{	
		alert("Basandome en tu fecha de nacimiento te diré que tu numero es el " + Suma.toString());
		//top.cuerpo.location="../numerologia/numerologia_"  + Suma.toString() + ".html";
		//this.url="index.php?seccion=numerologiaNumero&numero="+Suma.toString(); 
		this.top.location="index.php?seccion=numerologiaNumero&numero="+Suma.toString()//,'displayWindow')
		//this.reload();
		//this.home();
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////
// FUNCIONES PARA EL FORMULARIO DE PAGO
/////////////////////////////////////////////////////////////////////////////////////////////
function paginaPago()
{
	var pos_x=0;
	var pos_y=0;
	var alto=window.screen.height
	var ancho=window.screen.width
	pos_x = (ancho-800)/2;
	pos_y = (alto-768)/2;
	window.open("paypal.html",'displayWindow','toolbar=no,scrollbars=yes,width=800,height=768,top=' + pos_y + ',left=' + pos_x); 
}
