function selectionJouet(idJouet, designation, imgJouet)
{
	var oldId = document.getElementById('idJouet').value
	if( oldId != "")
		document.getElementById('jouet_'+oldId).style.borderColor = "#7cb3d2";
	
	
	document.getElementById('imgJouet').src = "catalogue/produit/petite/"+imgJouet+".gif";
	document.getElementById('imgJouet').title = document.getElementById('imgJouet').alt = designation;
	document.getElementById('nomProduit').innerHTML = designation;
	document.getElementById('idJouet').value = idJouet;
	document.getElementById('jouet_'+idJouet).style.borderColor = "#e33232";
}

function supprimerVoteCategorie(idCat)
{
	dataString = "action=supp";
	dataString += "&idCat="+idCat;
	
	$.ajax (
		{ 
			async   : true,
			type    : "POST", 
			dataType: "html",
			url     : "form_vote_mattel.php",
			data    : dataString,
			success : function (msg) {
				document.getElementById('voteCat'+idCat).style.display = 'none';
			} 
		} 
	);
}
