Thanks alot :) helped me out here, finaly got it working how it should be. was a pretty nasty problem and i'm glad you could help me out with it :)

You're welcome. I have enjoyed helping you. And indeed a nasty thing. What did solve the problem or what did you fix?

There are many error in this script, first find the error and reply after the chacke the error.