function checkSelAficion() {
	var cantidad_aficiones = document.getElementById('cantidad_aficiones').value;
	var i = 1;
	for (i=1; i <= cantidad_aficiones; i++) {
		if (document.getElementById('id_aficion_' + i).checked) {
			document.getElementById('error_aficion').style.display = 'none';
			return true;
		}
	}
	document.getElementById('error_aficion').style.display = 'block';
	return false;
}

function updateReportesRegistros(url, dia, mes, anio) {
	var pars = {
		dia: dia,
		mes: mes,
		anio: anio
	};
	var target_update = 'reportes_registros';
	var target_loading = '';
	updateRemote(url, target_update, target_loading, pars);
}
function change_fnac(){
	document.getElementById('text_fnac').innerHTML = document.getElementById('InscripcionFechaNacimiento').options[document.getElementById('InscripcionFechaNacimiento').selectedIndex].innerHTML;
}
function change_ocupacion(){
	document.getElementById('texto_ocupacion').innerHTML = document.getElementById('InscripcionRubro').options[document.getElementById('InscripcionRubro').selectedIndex].innerHTML;
}
//en el inicio agrego funcionalidad a los select customizados
jQuery().ready(function(){
	jQuery('#InscripcionFechaNacimiento').change(
	function(){
		change_fnac();
	}
);
	jQuery('#InscripcionRubro').change(
	function() {
		change_ocupacion();
	}
);
});