Hello,

I'm trying to make a function to automatically name my xmlhttprequest objects like:

request1, request2, request 3, request4


I can't figure out how to do it though.

request1 = new XMLHttp();
request2 = new XMLHttp();

How would I do this programatically. I know that I need a counter for '1', '2', '3', etc. But how do you actually change the reference name?

Thank you