currentex=current.substring(9,11);currentchap=current.substring(6,8);nextex=currentex*1+1;percour=current.substring(0,5);if(nextex<10){nextex="0"+nextex}nextchap=currentchap*1+1;if(nextchap<10){nextchap="0"+nextchap}precex=currentex*1-1;if(precex<10){precex="0"+precex}precchap=currentchap*1-1;if(precchap<10){precchap="0"+precchap}function suivant(){i=0;trouve=0;while(i<(max+1)){if(tab[i]==percour+"_"+currentchap+"_"+nextex){lesuivant=percour+"_"+currentchap+"_"+nextex+".htm";trouve=1;break;}else{i=i+1}}if(trouve==1){textavoir="exo "+currentchap*1+"-"+nextex*1;}else{i=0;while(i<(max+1)){if(tab[i]==percour+"_"+nextchap+"_01"){lesuivant=percour+"_"+nextchap+"_01.htm";trouve=1;break;}else{i=i+1}}if(trouve==1){textavoir="exo "+nextchap*1+"-1";}else{textavoir="fin des exos";lesuivant="#";}}}function precedent(){if(precex>0){lepreced=percour+"_"+currentchap+"_"+precex+".htm";textbvoir="exo "+currentchap*1+"-"+precex*1;}else{if(precchap>0){i=0;lexo=1;while(i<max+1){if(tab[i].substring(0,8)==percour+"_"+precchap){tampon=tab[i].substring(9,11);if(tampon*1>lexo){lexo=tampon*1}}i=i+1}if(lexo<10){lepreced=percour+"_"+precchap+"_0"+lexo+".htm";}else{lepreced=percour+"_"+precchap+"_"+lexo+".htm";}textbvoir="exo "+precchap*1+"-"+lexo*1;}if(precchap==0){lepreced="";textbvoir="";}}}suivant();precedent();		
		
