It'd be much easier to help you out if just provided the whole code using this service: The code you've listed in your post #18 is not correct syntactically. I am not sure if it's because you've snipped the rest of the code, or because this is how you've written it.