The influence of the giant dipole resonance on radiative strength functions in spherical nuclei