Fiendish,
Thank you for your help. I've struggle and i figure that out. Besides i had 2 triggers, i had some problems in the plugin itself, cause i changed a couple of things off the one that Nick posted.
The important thing is that it is working now.
Once again, thank you for your help.