Please read "How to use this forum" and post your code properly, using code tags.
Code snippets are usually unwelcome.