var windowNote;
function NewWinP() {
 if (!window.windowNote||windowNote.closed)
 return 1;
 else window.windowNote.close();
 return false;
}
function openNewWin(url) {
        var scrvalue=(screen.availHeight-32);
        NewWinP();
        windowNote = window.open(url,'DSUnewWIN','scrollbars=1,top=0,left=5,width=600,height='+scrvalue);
	return window.windowNote.focus();
} 
function go(){
if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none")
window.top.location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
}
function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}
function maketable(n) {
  var nb;
  this.length = n;
  for (var i = 1; i <=n; i++)
    if (i<10) {
      nb = i+"";
      nb = nb.substring(0,1);           
      this[i] = nb;
    }
  return this;
}
function conversion(color) {
  var hexa1;
  var hexa2;
  var colorHexa;
  tabHex = new maketable(16);

  tabHex[10]="A"; tabHex[11]="B"; tabHex[12]="C"; tabHex[13]="D"; tabHex[14]="E"; tabHex[15]="F";
  hexa2 = (color%16);
  hexa1 = parseInt(color/16);
  hexa2 = tabHex[hexa2];
  if (hexa2 == null)
    hexa2 = "0";
  hexa1 = tabHex[hexa1];
  if (hexa1 == null)
    hexa1 = "0";
  colorHexa = hexa1 + hexa2;
  return colorHexa;
}
function degrade(texte) {
  var factor = 255/(texte.length+1);
  var i;
  var c1,c2,c3;
 for (i=0;i<texte.length;i++)  {
    ton=factor*i;
      c1 = conversion(ton); 
      c2 = 'FF';
      c3 = c1
   document.write ('<FONT SIZE='+ 3 +' COLOR="#' + c1 + c2 + c3 + '"><b>' + texte.substring (i,i+1) + '</b></FONT>');
}
}
function stoperror(){
window.location.reload()
return true;
}
