And I believe the story behind the phrase, "The whole nine yards" is from a dirty joke. I found the idea here:

http://www.worldwidewords.org/articles/nineyards.htm

And a couple other places that I now forget how I found!

What have you heard as the origin?