That is WAY too much code for us to wade through. Please read the link in my signature on asking questions the smart way. Code you post should be in the form of an SSCCE, and you should very clearly...