This is confusing the hell out of me.
This (simplified) code does what it should:

TCMarker[0].events.register("mouseover",TCMarker[0],function(e)
{
DisplaySomething(TCNote[0]);
});
etc. to
TCMarker[10].events.register("mouseover",TCMarker[10],function(e)
{
DisplaySomething(TCNote[10]);
});
i.e on mouseover on a screen marker display something based upon a corresponding value of TCNote[]. Great it works. But ...

When I convert to a loop
for (i=0;i<=10;i++)
{
TCMarker[i].events.register("mouseover",TCMarker[i],function(e)
{
DisplaySomething(TCNote[i]);
});
}
The value of TCNote[i] shows as undefined.
Is there a problem passing i into the function?