Just wanted to say that what I was talking about wasn't based on DBT. ERP (Exposure and Response Prevention) is a common treatment for OCD:
http://www.camh.net/About_Addiction_...reatments.html
Although on that page it uses compulsions as the bigger example, it was very effective for me with my obsessions. CBT and the practice of mindfulness were also very helpful in my treatment. Judging my thoughts as "good" or "bad" would cause such horrible guilt and stress, to the point where I was seriously considering suicide (mind you, my OCD was very severe compared to most cases).