Ok. Still haven't found the problem. To tell the truth I've hardly looked at it, I've had to many problems with this project so I'm gonna try to rewrite everything from scratch (again!) and hope no bug that I can't seem to fix will turn up this time.

Anyway just thought you should know. Thanks for trying to help though!