File : xhrmulti.php
Includes : Multi-XHR request Javascript, XHR Javascript

As it turns out, simply declaring the variable local to the creatXMLHttp request function and passing it to the calling function directly was all that I needed. I revised the xhrmulti.php to reflect that. I do the onstatechange handling in the calling function, but that's just an extra if statement.

Here's the code for the new xhrRequest() function and a calling function, doSomething():