
function  TesteRecherche(objet)
{

 if (objet.Recherche.value==null || objet.Recherche.value=='')  
   {  
        alert('Vous Davez Taper Critère De Recherche.');
        return false;            
    }	  
 
    x=(objet.Recherche.value).length;
	Tab = objet.Recherche.value;

	Precedant=' ';
	deux=false;
	
	Nblanc=0;
	j=0;
	
	while(j<x)
	{
	    if(Tab.charAt(j)==' ')
	        Nblanc++;
	    else
		   	if((deux==false) && (Precedant!=' '))
			      deux=true;
		       	
		
	     Precedant=Tab.charAt(j);
		j++;   
	}
	
		
   if( x - Nblanc < 2 ||  deux==false)
	 {
	    alert("Il Faut Au Minimum Deux Caractères Successifs Pour Un Critère De Recherche. !!!");
	    objet.Recherche.select();                       
        objet.Recherche.focus();    
		return false;
	 }	
	 
	 return true;
	 
}
