
// Archivo de código JavaScript para Fundación Jicoteca

// Abrir ventanas personalizadas

function imprimir() {
	window.open("donativo_print2.htm","","")
}

function logoa(){
	var horizontal = (screen.width - 920) / 2;
	var vertical = (screen.height - 350) / 2;
	window.open("logoa.htm","","left="+horizontal+",top="+vertical+",width=920,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function logob(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 630) / 2;
	window.open("logob.htm","","left="+horizontal+",top="+vertical+",width=620,height=630,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function logoc(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 620) / 2;
	window.open("logoc.htm","","left="+horizontal+",top="+vertical+",width=620,height=620,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function logod(){
	var horizontal = (screen.width - 664) / 2;
	var vertical = (screen.height - 674) / 2;
	window.open("logod.htm","","left="+horizontal+",top="+vertical+",width=664,height=674,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function monica(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("monica.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function emi(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("emi.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function artegb(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("artegb.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function olea(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("olea.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function douglas(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("douglas.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function julio(){
	var horizontal = (screen.width - 620) / 2;
	var vertical = (screen.height - 350) / 2;	
	window.open("julio.htm","","left="+horizontal+",top="+vertical+",width=620,height=350,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

function camiseta(){
	var horizontal = (screen.width - 664) / 2;
	var vertical = (screen.height - 674) / 2;	
	window.open("camiseta.htm","","left="+horizontal+",top="+vertical+",width=664,height=674,scrollbars=no,menubar=no,toolbar=no,status=yes,resizable=no,location=no,dependent=no")
	}

// Abrir página de Miliuco

function emilio(){
	var sitio = "http://www.miliuco.net"; 
	document.location.href=sitio;
	}

// Volver atrás 1 paso

function atras() {
	history.go(-1);
	}

// Volver atrás dentro de www.fundacionjicoteca.com

function checkurl()
{ 
   var sitio = "http://www.fundacionjicoteca.com"; 
   if(document.referrer.substring(0,32) == sitio) 
    {  document.location.href=document.referrer;  } 
  else 
    {  document.location.href=sitio;  } 
}

// Volver al inicio

function inicio() {
	var sitio = "http://www.fundacionjicoteca.com"; 
	document.location.href=sitio;
	}

// Mostrar alertas

function alerta1(){
	alert("No olvides incluir tu dirección de correo.");
	}

// Texto en la barra de estado

function estado(){
	window.defaultStatus='Fundación JICOTECA';
	return true;
	}

// Mostrar y ocultar capas con avisos

function capa1(){
	document.getElementById('capa1').style.visibility = 'visible';
	}

function capa2(){
	document.getElementById('capa1').style.visibility = 'hidden';
	}

// Pedir contraseña para entrar

function pedir() {
var nombre;
nombre = prompt("Escribe la clave.","*");

if (nombre == "nicols") {
	window.open("fotos/fotos.html","",""); }

else {
	alert ("Error. Inténtalo de nuevo.")}
}

	