//<script language="JavaScript">
<!--                              
      
/*
Event.observe(window, 'load', function() {
    Event.observe($('rubrique'), 'change', function(event) {
    	/*
        new Ajax.Updater(
            'blocCategorie',
            'ajax/update-categorie.php',
            {
                method: 'get',
                parameters: {rubrique: $('rubrique').value}
            }
        );
        Event.stop(event);
    }.bindAsEventListener())
});
*/

$(document).ready(function() {
	$('#rubrique').change(
		function() {
			$.ajax({
			    type: 'GET',
			    processData: true,
			    url: 'ajax/update-categorie.php',
			    dataType: 'html',
			    data:({rubrique: $('#rubrique').val()}),
			    success: function(data) {
			    	$('#blocCategorie').html(data);
			    }
			});
		}
	);
}
);



//-->
//</script>
