When you should rewrite, or not, as the case maybe.

This article, by Adrian Sutton, perhaps states the obvious but its a good read and probably essential if you're thinking about refactoring any projects in the near future.