restored scrambled staffbrokerfunctions
Restored Trents version of staffbrokerfunctions
Re-applied May's changes to staff broker functions