These references to DropDownList1 need to be changed to GHM_DropDownList1, or better yet, call the GHM_DropDownMenu() class and then use the CloseDropDownMenus() function of the class.