 Subjects included in the study are men and women, 18 to 64 years of age inclusive, with IHS-II migraine withwithout aura and DSM-IV primary insomnia sleep onsetsleep maintenance. The required migraine frequency is 4-12 times per month, with a maximum of 20 days with headache per month, for 1 month or longer prior to screening. The requirement with regard to insomnia is a usual, estimated total sleep time of 612 hours per night or less, for 1 month or longer prior to screening, due to problems falling asleep, waking up during the night, or waking up early. The sleep and headache eligibility criteria are confirmed at the randomization visit on the basis of the daily diary. 