function opendef(num)
{
	url="definition.php?num="+num+"";
	window.open(url,'def', 'toolbar=no,scrollbars=yes,resizable=no,width=300,height=150');
};

function chapsuiv(numchap){
	
	if(numchap==1){
		document.location.href="part1_chapitre1.php";
	}
	if(numchap==11){
		document.location.href="part1_chapitre2.php";
	}
	if(numchap==12){
		document.location.href="part1_chapitre3.php";
	}
	if(numchap==13){
		document.location.href="part1_chapitre4.php";
	}
	if(numchap==14){
		document.location.href="part1_chapitre5.php";
	}
	if(numchap==15){
		document.location.href="part1_chapitre6.php";
	}
	if(numchap==16){
		document.location.href="part2_chapitre1.php";
	}
	if(numchap==21){
		document.location.href="part2_chapitre2.php";
	}
	if(numchap==22){
		document.location.href="part2_chapitre3.php";
	}
	if(numchap==23){
		document.location.href="conclusion.php";
	}
	if(numchap==2){
		document.location.href="normes.php";
	}
	if(numchap==31){
		document.location.href="illustrations.php";
	}
	if(numchap==32){
		document.location.href="encadres.php";
	}
	if(numchap==33){
		document.location.href="glossaire.php";
	}
	if(numchap==34){
		document.location.href="sommaire.php";
	}
	if(numchap==0){
		document.location.href="introduction.php";
	}
};

function chapprec(numchap){

	if(numchap==0){
		document.location.href="glossaire.php";
	}	
	if(numchap==1){
		document.location.href="sommaire.php";
	}
	if(numchap==11){
		document.location.href="introduction.php";
	}
	if(numchap==12){
		document.location.href="part1_chapitre1.php";
	}
	if(numchap==13){
		document.location.href="part1_chapitre2.php";
	}
	if(numchap==14){
		document.location.href="part1_chapitre3.php";
	}
	if(numchap==15){
		document.location.href="part1_chapitre4.php";
	}
	if(numchap==16){
		document.location.href="part1_chapitre5.php";
	}
	if(numchap==21){
		document.location.href="part1_chapitre6.php";
	}
	if(numchap==22){
		document.location.href="part2_chapitre1.php";
	}
	if(numchap==23){
		document.location.href="part2_chapitre2.php";
	}
	if(numchap==2){
		document.location.href="part2_chapitre3.php";
	}
	if(numchap==31){
		document.location.href="conclusion.php";
	}
	if(numchap==32){
		document.location.href="normes.php";
	}
	if(numchap==33){
		document.location.href="illustrations.php";
	}
	if(numchap==34){
		document.location.href="encadres.php";
	}
};
