	function VerifFamilyForDisplay(value) { 
		var boolean = false ; 
		for (i=1; i<Fa.length; i++){ 
			if (Fa[i][1].indexOf(value)!= -1)
					boolean = true ; 
		}
		if (boolean) 
			return true;
		else 
			return false; 
	}

	function verifFillTheSelectCategory(liste,choix) {
		if(document.forms["searchForm"].elements["family"].value!=Fa[0][1])
			filltheselectCategory(liste,choix);
	}

	function filltheselectCategory(liste, choix)
	{ 
		switch (liste) {
			case "category": 
				raz("family"); 
				raz("subFamily",true);
				 
				new_option = new Option( Fa[0][1],Fa[0][0]); 
				document.forms["searchForm"].elements["family"].options[document.forms["searchForm"].elements["family"].length]=new_option; 
				for (i = 1; i < Fa.length; i++){ 
				    if (Fa[i][1].indexOf(choix)!= -1){ 
						new_option =new Option( Fa[i][0],Fa[i][2]); 
						document.forms["searchForm"].elements["family"].options[document.forms["searchForm"].elements["family"].length]=new_option; 
					}
			  	}
		}
	}
			
	function filltheselect(liste, choix)
	{ 
		var category = document.forms["searchForm"].elements["category"].value ;
		switch (liste) { 
		 	case "family":
			 	raz("subFamily",false); 
			 	for (i = 0; i < Sfa [choix].length; i++) { 
			 		if (Sfa[choix][i][2].indexOf(category)!= -1) {
			 			new_option = new Option(Sfa[choix][i][1],Sfa[choix][i][0]);  
			  			document.forms["searchForm"].elements["subFamily"].  options[document.forms["searchForm"].elements["subFamily"].length]=new_option; 
			  		}
			  	} 
				break; 
	   	} 
	} 
			 
	function raz(liste,ok) {
		l = document.forms["searchForm"].elements[liste].length; 
	 	for (i = l; i >= 0; i--) 
	 		document.forms["searchForm"].elements[liste].options[i]=null; 
	 	
	 	if(liste == "subFamily" && ok) {
	 		new_option = new Option(Sfa[Fa[0][0]][0][1],Sfa[Fa[0][0]][0][0]);  
	  		document.forms["searchForm"].elements["subFamily"].options[0] = new_option; 
	 	}
	} 