Tom Ogilvy, from www.allexperts.com, gave me the solution to my problem. I can post the code here if anyone is interested.