access to elements w/o initial reference?

I hope I'm asking the question correctly: 
Does an element you create stay in memory for later
access, even though you don't have (or don't save)
a reference to it when you create it?

I have a javascript function in which I use a loop
to create some html select elements:

function createSelects() {
  var i = 0;
  while (i < [some condition]) {
    document.createElement("select");
    document.setAttribute("id", new String("mySelect" + i));
    ...
  }
}

I'd like to be able to get to the selects (using 
document.getElementById I guess), however many there 
may be, from a different function later on. Is this 
possible? If so can someone show me how?

Thanks!
-alex

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Received on Monday, 10 December 2001 12:36:47 UTC