
function parcourrir_famille(ref)
{
	if(PMP.common.isUndefined(ref))
		return;
	
	famille_ref = ref;
	
	PMP.com.liste.showLoader('listeproduit');
	PMP.com.liste.refresh("listeproduit", {data:{famille:famille_ref}}, "produit", "famille", 1);
	
	var familles = PMP.dom.getElementsByMaskId('menu-%s', 'li');
	alert(count(familles));
}

function supprimer_famille_active(ref)
{
	var titreBox = "Modification d'une famille";
		
	if( PMP.common.isUndefined(ref) )
	{
		pmpAlert("La référence du produit est invalide.", titreBox, "erreur");
		return false;
	}		
	
	// ajout du produit au panier
	var ajax = new PMP.util.pmpAjax("/_modules/boutique/produit/front.ajax", "POST");
	
	if(!ajax)
	{
		var msgbox = new PMP.util.pmpMsgBox("L'instanciation de la classe AJAX a échouée", "erreur", titreBox);
		return false;
	}
	
	ajax.appendData("action", "supprimer_famille_active");
	ajax.appendData("ref", ref);
		
	ajax.send({context:true});
	
	if(ajax.reponse.etat)
	{
		PMP.com.liste.refresh("listefamillesactives", "", "produit", "famille", 1);
	}
	
	return ajax.reponse;
}
