//Hoja de funciones en JavaScript

// Para utilizarla: <SCRIPT language="JavaScript" SRC="Include/javascript.js"></SCRIPT>

function volver(i) {
  history.go(-i)	
}

function avanzar(i) {
  history.go(i)	
}

function toIndex() {	
	window.location="../index.html";
}	

function toIndex2() {	
	window.location="../../index.html";
}	


var vimg = new Object;
var npreload = 0
function preload(img) {
	vimg[npreload] = new Image();
	vimg[npreload].src = img;
	npreload=npreload+1;
}

function rollover(image,root) {
	image.src = root;
}

function mostrar(capa) {
	x=document.getElementById(capa);
	x.style.visibility="visible";
}

function ocultar(capa) {
	x=document.getElementById(capa);
	x.style.visibility="hidden";
}

function GeneroManga() {
    if (document.genero.manga.value=="accion") window.location="Manglist.html#MAccion";
    else if (document.genero.manga.value=="apocaliptico") window.location="Manglist.html#MApocaliptico";
    else if (document.genero.manga.value=="aventuras") window.location="Manglist.html#MAventuras";
    else if (document.genero.manga.value=="biopic") window.location="Manglist.html#MBiopic";
    else if (document.genero.manga.value=="ciencia") window.location="Manglist.html#MCiencia";
    else if (document.genero.manga.value=="competicion") window.location="Manglist.html#MCompeticion";
    else if (document.genero.manga.value=="cortos") window.location="Manglist.html#MCortos";
    else if (document.genero.manga.value=="cyberpunk") window.location="Manglist.html#MCyberpunk";
    else if (document.genero.manga.value=="detectives") window.location="Manglist.html#MDetectives";
    else if (document.genero.manga.value=="drama") window.location="Manglist.html#MDrama";
    else if (document.genero.manga.value=="espadachines") window.location="Manglist.html#MEspadachines";
    else if (document.genero.manga.value=="fabulas") window.location="Manglist.html#MFabulas";
    else if (document.genero.manga.value=="guerra") window.location="Manglist.html#MGuerra";
    else if (document.genero.manga.value=="hentai") window.location="Manglist.html#MHentai";
    else if (document.genero.manga.value=="heroic") window.location="Manglist.html#MHeroic";
    else if (document.genero.manga.value=="humor") window.location="Manglist.html#MHumor";
    else if (document.genero.manga.value=="infantil") window.location="Manglist.html#MInfantil";
    else if (document.genero.manga.value=="lucha") window.location="Manglist.html#MLucha";
    else if (document.genero.manga.value=="magical") window.location="Manglist.html#MMagical";
    else if (document.genero.manga.value=="mechas") window.location="Manglist.html#MMechas";
    else if (document.genero.manga.value=="medicina") window.location="Manglist.html#MMedicina";
    else if (document.genero.manga.value=="mitologico") window.location="Manglist.html#MMitologico";
    else if (document.genero.manga.value=="samurais") window.location="Manglist.html#MSamurais";
    else if (document.genero.manga.value=="sentai") window.location="Manglist.html#MSentai";
    else if (document.genero.manga.value=="shojo") window.location="Manglist.html#MShojo";
    else if (document.genero.manga.value=="soap") window.location="Manglist.html#MSoap";
    else if (document.genero.manga.value=="sobrenatural") window.location="Manglist.html#MSobrenatural";
    else if (document.genero.manga.value=="space") window.location="Manglist.html#MSpace";
    else if (document.genero.manga.value=="spokon") window.location="Manglist.html#MSpokon";
    else if (document.genero.manga.value=="thriller") window.location="Manglist.html#MThriller";
    else if (document.genero.manga.value=="yaoi") window.location="Manglist.html#MYaoi";
}

function GeneroAnime() {
    if (document.genero.anime.value=="accion") window.location="Manglist2.html#AAccion";
    else if (document.genero.anime.value=="apocaliptico") window.location="Manglist2.html#AApocaliptico";
    else if (document.genero.anime.value=="aventuras") window.location="Manglist2.html#AAventuras";
    else if (document.genero.anime.value=="biopic") window.location="Manglist2.html#ABiopic";
    else if (document.genero.anime.value=="ciencia") window.location="Manglist2.html#ACiencia";
    else if (document.genero.anime.value=="competicion") window.location="Manglist2.html#ACompeticion";
    else if (document.genero.anime.value=="cortos") window.location="Manglist2.html#ACortos";
    else if (document.genero.anime.value=="cyberpunk") window.location="Manglist2.html#ACyberpunk";
    else if (document.genero.anime.value=="detectives") window.location="Manglist2.html#ADetectives";
    else if (document.genero.anime.value=="drama") window.location="Manglist2.html#ADrama";
    else if (document.genero.anime.value=="espadachines") window.location="Manglist2.html#AEspadachines";
    else if (document.genero.anime.value=="fabulas") window.location="Manglist2.html#AFabulas";
    else if (document.genero.anime.value=="guerra") window.location="Manglist2.html#AGuerra";
    else if (document.genero.anime.value=="hentai") window.location="Manglist2.html#AHentai";
    else if (document.genero.anime.value=="heroic") window.location="Manglist2.html#AHeroic";
    else if (document.genero.anime.value=="humor") window.location="Manglist2.html#AHumor";
    else if (document.genero.anime.value=="infantil") window.location="Manglist2.html#AInfantil";
    else if (document.genero.anime.value=="lucha") window.location="Manglist2.html#ALucha";
    else if (document.genero.anime.value=="magical") window.location="Manglist2.html#AMagical";
    else if (document.genero.anime.value=="mechas") window.location="Manglist2.html#AMechas";
    else if (document.genero.anime.value=="medicina") window.location="Manglist2.html#AMedicina";
    else if (document.genero.anime.value=="mitologico") window.location="Manglist2.html#AMitologico";
    else if (document.genero.anime.value=="samurais") window.location="Manglist2.html#ASamurais";
    else if (document.genero.anime.value=="sentai") window.location="Manglist2.html#ASentai";
    else if (document.genero.anime.value=="shojo") window.location="Manglist2.html#AShojo";
    else if (document.genero.anime.value=="soap") window.location="Manglist2.html#ASoap";
    else if (document.genero.anime.value=="sobrenatural") window.location="Manglist2.html#ASobrenatural";
    else if (document.genero.anime.value=="space") window.location="Manglist2.html#ASpace";
    else if (document.genero.anime.value=="spokon") window.location="Manglist2.html#ASpokon";
    else if (document.genero.anime.value=="thriller") window.location="Manglist2.html#AThriller";
    else if (document.genero.anime.value=="yaoi") window.location="Manglist2.html#AYaoi";
        
}
