Self refreshing queue query

This program operates in a frame in the index.php and refreshes itself every new seconds with a new list of phone numbers to be queued to a specific CSR.