Quarter a big orange and put a quarter in each place the cats have taken to spray at. Of course it is a natural teritorial thing cats tend to do. My cat did it!
Make sure you wash the urine out otherwise it will get messy and you will have to replace that piece of carpet and the underlay!