A Manhattan judge is suing a Brooklyn judge who once beat her in an election for $15 million.

Manhattan Criminal Court Judge ShawnDya Simpson accuses Brooklyn Surrogate Judge Diana Johnson and an election lawyer of harassing her by publicizing her New Jersey address — to cast doubt on her eligibility to be a Big Apple jurist during the women’s bitter 2007 race for Brooklyn surrogate.

Simpson’s sour-grapes lawsuit also lashes out at Brooklyn Councilwoman Letitia James, claiming James had warned her to withdraw from the race because of her out-of-state home.

Simpson, who hears misdemeanor cases, claims that since her opponents made her South Orange, NJ, address public, she has been victimized by identity thieves and is a potential target for ex-cons she has put behind bars.