Part of a good parent-child select lists mechanism is validating that a parent selection has been made, before setting the value for the child control. This code does that.