function checkMail(a) {
var place = a.indexOf("@",1);
var point = a.indexOf(".",place+1);
var espace = a.search(" ");

if ((espace==-1)&&(place > -1)&&(a.length >2)&&(point > 1)) {return true;}
else {return false;}
}

function email(adr) { 
	window.open('/?size=mini&mod=mail&smod=01&mail='+adr,'email','width=525, height=500, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, left=300, top=200'); 
}

function pm(id) { 
	window.open('/?size=mini&mod=user&smod=pm&do=1&id_pm='+id,'view_pm','width=525, height=500, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, left=300, top=200'); 
}

function pmw(id, subject) { 
	window.open('/?size=mini&mod=user&smod=pm&do=2&id='+id+'&subject='+subject,'write_pm','width=525, height=500, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, left=300, top=200'); 
}

function profil(id) { 
	window.open('/?size=mini&mod=user&smod=users&do=3&id='+id,'profil','width=525, height=500, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, left=300, top=200'); 
}

function popup(page,largeur,hauteur,options) {
/*  exe d'options : toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0 */
    if (options = 'rien') options = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes';
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",screenX="+left+"screenY="+top+""+options);	
}

function refreshParent() { 
	window.opener.location.href = window.opener.location.href; 
	if (window.opener.progressWindow) 
	window.opener.progressWindow.close(); 
	window.close(); 
} 

function change_txt(id,texte) {
    var element = null;
    if (document.getElementById) {
      element = document.getElementById(id);
    } else if (document.all) {
      element = document.all[id] } 
    if (element) element.innerHTML=texte;
  } 



<!-- Menu 




function hover(obj){
  if(document.all){
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0){
      sousMenu = UL[0].style;
      if(sousMenu.display == 'none' || sousMenu.display == ''){
        sousMenu.display = 'block';
      }else{
        sousMenu.display = 'none';
      }
    }
  }
}

function setHover(id){
  LI = document.getElementById(id).getElementsByTagName('li');
  nLI = LI.length;
  for(i=0; i < nLI; i++){
    LI[i].onmouseover = function(){
      hover(this);
    }
    LI[i].onmouseout = function(){
      hover(this);
    }
  }
}
//-->

