function isASpace(b)
	{	
		var i=0;
		var a=b;
		var es=0;
		while (i<a.length)
			{
				if (a.charAt(i)==' ')
					es++;
				i++;
			}
		if ((a.length==es)||(a.length==0))
			return 1;
		else
			return 0;
		
	}

function recherche() 
	{
		
		with (document.formulaire)  
		{
			if (isASpace(mot.value))
				{
					alert("Please enter your criterion search before validation!");
					mot.focus();
					return false;
					
				}else if(mot.value.length<=2){
					alert("Please  enter a word of more than two characters!");
					mot.focus();
					return false;					
				}
		}
		
 }
