Added the getPrevActive() and getNextActive() member function , to return the previous and next active popup windows, respectively.