Sounds like OCD which is an anxiety disorder. You're having distressing thoughts (obsessions) and doing some behaviors to relieve them (compulsions). I am in no way qualified to tell you what you have but since I have OCD I can relate. I would first try an OCD workbook and see what you can do yourself.
http://www.amazon.com/s/ref=nb_sb_no...s=ocd+workbook