A restaurant worker who held a schoolgirl captive and subjected her to a sex ordeal, while he faced a court appearance for making obscene phone calls, was jailed for five years yesterday.

The victim told her attacker she was only 12-years-old and pleaded: ''Don't rape me. Don't kill me'', the High Court in Edinburgh heard.

The girl had called at Andrew Shek's home in Kepscaith Road, Whitburn, in West Lothian, on an errand when she was seized and forced into a bedroom and made to perform sex acts that left her feeling sick.

The weeping child was eventually allowed to leave after she promised Shek, who claimed he had taken Buckfast wine and ecstasy, that she would not tell anyone about her ordeal.

The girl tried unsuccessfully to contact the helpline Childline, before confiding in a school friend.

In jailing Shek, Lord Macfadyen told him that an allegation that he had intended to rape the girl had been withdrawn, but added: ''It is plain she must have been in fear of that and indeed, in fear for her life.''

Shek, 24, admitted a reduced charge of indecently assaulting the girl by detaining her at his home on January 12 this year, putting his hands over her mouth and nose to restrict her breathing and sexually attacking her.

He also admitted committing a breach of the peace by making indecent phone calls to a woman in November last year. The court heard that all the offences took place on Mondays when Shek had his day off from his restaurant job.

The woman, who had spurned Shek's attempt to take her out on a date, had the calls traced, and when Shek was charged, on November 24, he told police: ''It is not going to happen again.''

The case against him was being processed when he struck against his schoolgirl victim.

The court heard that the attack has had a powerful impact on the victim who has undergone a personality change.

Defence counsel Brian McConnachie told the court that Shek said he had drunk one and a half bottles of tonic wine and taken a tablet of the drug ecstasy before committing the assault.

Lord Macfadyen said he took into account that Shek had pled guilty and spared the girl more distress in giving evidence.

Shek was sentenced to three months for the obscene calls.