There is a product made for removing the stains--and particularly, the odor--of pet mishaps from carpet and the like. I don't remember what it's called, but it does well in breaking down the stench (though not as well at eliminating stains). I would try giving your local pet store a call and ask if they carry products like this, and if the person you speak with sounds knowledgeable, ask them if they have a recommendation.