When posting code, it should be in the form of an SSCCE (in other words, as short as possible while still being runnable and showing the problem). Don't forget the code tags to preserve formatting.