There are quite a few other problems with the code you provided. Before writing more extensively I'll ask; is the issue solved already or are you still seeking for assistance?