  //Ajout seb verif nb moteurs selected
  nbmoteurs=10;

	function VerifMax() {
		sliste=document.getElementById('activite').test_moteur2;
		snb=sliste.options.length;
		if (snb>=nbmoteurs) {
		  alert("Vous avez déjà sélectionné les "+nbmoteurs+" moteurs !");
      return 0;
		} else {
      return 1;
    }
	}
    //fin ajout seb

	function Deplacer(l1,l2) {
		if (l1.options.selectedIndex>=0) {
		  //Ajout seb verif nb moteurs selected
         //fin ajout seb
			o=new Option(l1.options[l1.options.selectedIndex].text,l1.options[l1.options.selectedIndex].value);
			l2.options[l2.options.length]=o;
			l1.options[l1.options.selectedIndex]=null;
		}else{
			alert("Aucun moteur de recherche sélectionné.");
		}
	}

	function Envoyer(frm) {
		liste=document.getElementById('activite').test_moteur2;
		nb=liste.options.length;
		frm.test_moteur.value="";
		for (var i=0;i<nb;i++) {
			frm.test_moteur.value+=liste.options[i].value+",";
		}
    window.open('','popup','menubar=no,scrollbars=1,resizable=1,height=450,width=550')
    frm.target="popup";
		//frm.submit();
    return true;
	}