... you used to be a php scripter before? cause your code looks this way... especially the "i" counter and the actionless loop.