$(document).ready(function(){
	hideField();
	
	$('#rubric').change( function() {
		idRubric = ($('#rubric option:selected').val())
		
		hideField();
		
		switch (idRubric){
			case 'REC':
				showField('#file-label');
				break;
			case 'INF':
				showField('#category_gen-label');
				break;
			case 'BIL':
				showField('#category_event-label');
				break;
		}
	});
});

function hideField(){
	/*$("#file-label, #category_gen-label, #category_event-label").each(function(){
		$(this).hide();
		$(this).next().hide();
	});*/
}

function showField(field){
	/*$(field).show();
	$(field).next().show();*/
}
