When posting code, please use highlight tags. Otherwise your code is almost impossible to read. Also, code should be in the form of an SSCCE. Make it easier for people to help you.

Until then, the...