A refactored and slightly modified version of the script from the ie6-upgrade-warning project.