Here is the small Prototype hack to create ajax queue?
First you need to create a Class with functions
To initialize all the global variables that your going to use
Function to add a new request into the queue
Function to process one by one request from queue