The investigators' primary goal is to assess the extent to which three forms of cognitive-behavioral treatment (CBT for insomnia, CBT for pain, and combined insomnia & pain) diminishes insomnia symptoms in patients with chronic pain compared to a group not receiving CBT. This will be evaluated in a randomized trial with before and after evaluations using standard sleep diary measures of sleep continuity.