You are probably right, the problem is it's quite difficult for me to strip out this piece of code out of its context, which is relatively large. Simply posting the code as-is will do no help (you could not really run it) and adapting it to a form that will be friendly for you is a tedious job (that may come out as I'm too lazy to help you help me but be sure I really appreciate all your help here!)