I'll try to ckech your code when I get home.
But for next time please use CODE tags when inserting code samples into posts.