There are several commercially available animal repellents that are designed to repel cats (and dogs). Both Messina and Liquid Fence make cat repellents that can be sprayed in the area that the neighbor's cat is using as a bathroom.