Change function "datosreg" to "obtener"