Hey, do what Bitsy said, take your cat in for a check up. Also, is your cat fixed? Is it taking a squat and peeing, or is it walking up to things and "spraying"? If so, it could be reinforcing his territory because of another cat in the area. I had a similar cat "problem" and posted a thread about it, and someone from AC recommended Nature's Miracle for help cleaning up the smell from my carpet. It worked great. I found it at PetSmart. Good luck with the kitty.
U
U