Thanks for your answer, if you want I can send you the script by PM or just post it here but, since I rewrote it from scratch, I didn't add any comments (I know the mechanics of the script by heart) and it is insanely bad coded, but it is the fastest I came up with.
Actually I can't do...