I have seen a lot of messy JavaScript in my days ( half of it written by me ). However it makes it a lot easier to maintain, debug, extend etc your code if it is nice and clean. Sooooo run your code through JSLint before you ask for help.
Then run it through compressor to cut load time. (Yes, you have to maintain 2 copies of each js file if you want to do things properly.)