/* AUTEUR: AGL UCANSS */
/* DATE DE CREATION: 29/11/00 */

function getTabIndex(str) {
  var i=0;
  for(i=0; i<tabIndex.length; i++) { if (str == tabIndex[i]) break; }
  if (i == tabIndex.length) i = -1;
  return i;
}

function go_prec(ind) {
  var index = getTabIndex(ind);
  if (index > 0) window.location.href = codoc +"-"+ tabIndex[index-1] +".html";
  else window.alert("Pas d'article précédent.");
}

function go_suiv(ind) { 
  var index = getTabIndex(ind);
  if (index != -1 && index<tabIndex.length-1)
    window.location.href = codoc +"-"+ tabIndex[index+1] +".html";
  else window.alert("Pas d'article suivant.");
}

function go_art() {
  var index = getTabIndex(document.nav.art.value);
  if (index != -1) window.location.href = codoc +"-"+ tabIndex[index] +".html";
  else window.alert("Pas d'article '"+ document.nav.art.value +"'.");
}

function openCodeSS(file) {
  codess = window.open(file, "codess",  "toolbar=0,location=0,directories=0,menuBar=1,scrollbars=1,resizable=1,width=600,height=500");
  codess.focus();
}
