this.onload = function() {
   initialisation();
 }
function supprim(mess,id) {
  if(confirm(mess))
  {
    document.location.href='edit,'+id+',supprimer.html'
  }
}
function supprim_actu(mess,id) {
  if(confirm(mess))
  {
    document.location.href='update_actu,'+id+',supprimer.html'
  }
}
function crypt(User){
 window.location.href="mailto:"+ User +"@transparc.com";
}
// fonction getElementsByClassName()
document.getElementsByClassName=function( nomClasse )
{ var liste=document.getElementsByTagName("*");
var retour=new Array();
var i=0;
var j=0;
var laClasse=" "+nomClasse+" ";
for( i=0 ; i < liste.length ; i++ )
if( (" "+liste[i].className + " ").indexOf( laClasse ) != -1 )
retour[j++]=liste[i];

return retour;
}
function informations(){
  
  var x=document.getElementById('field_adm').getElementsByTagName('p');
  if(x[0].style.display=='' || x[0].style.display=='block'){
    for (y=0;y < x.length;y++){
      x[y].style.display=('none');
    }
  }else{
    for (y=0;y < x.length;y++){
      x[y].style.display=('block');
    }
  }
} 
function popup(href,width,height) { 
  var width = width ;
  var height = height ;
  window.open( href, '_blank', 'width=' + width + ', height=' + height + ',scrollbars=1,resizable=1');
  return false;
}


