Participants had to be 18 to 75 years old and have suffered from insomnia for more than one month, a Pittsburgh Sleep Quality Index (PSQI) score of >5 [23], Internet access, an email address, and to have completed a sleep diary for at least 10 days in the trial run-in period.