Is this the whole code? Please use tags
Code:
 and
.
Also, could you please tell about the problem more precisely. What did you try to solve the trouble and why?
Nothing is clear in your post.