Code Review

the ctrl.name has other options that I'm not interested in -
The two options, sel_subj and sel_camp are a multiple-selection form with a list of subjects for the term, and campus locations for the term. From previous research, the website is made by some higher-education-tool used by the university - it isn't going to change anytime soon.
However, you're right, if it's neither of the above this script is going to break. 

I think I will need to abort the script and log the problem in a file should the two specified ctrls not be in the form.