.jpg)
A Douglas man charged with harassment has been warned he will spend Christmas in prison if he doesn't behave.
Paul Hamblett, of Port-e-Chee Avenue, admitted committing the offence between April last year and September this year.
The court heard that since the breakdown of a relationship Hamblett had regularly contacted his former partner, despite repeated requests from her to stop.
After being cautioned in June, he made abusive comments to the woman in a pub in September.
Hamblett has been bailed to appear in court again on January 12, on the condition he does not contact her directly or indirectly.

Government 'supporting' Strix after announcement of Ramsey factory closure
Minister acknowledges challenges facing hospitality industry
Ramsey pier's train could be back in action this weekend
Manx Care hopeful new offer will be accepted amid looming industrial action
Island-based Strix factory to close