Hey, Jim...

It would be easier to analyze your code if you would use the UBB CODE brackets when posting.