Robert Downey Jr. Gets Probation

Robert Downey Jr. pleaded no contest to two cocaine-related charges today in a plea bargain that will keep the award-winning actor out of jail.

Under the deal, Downey pleaded no contest to one count of possessing cocaine and one count of being under the influence. A third charge was dropped.

In exchange, Downey was sentenced to one year in a live-in drug rehabilitation program, three years of probation, will have to pay a series of fines and was ordered to comply with a set of regulations including random drug testing.

'Not a Gift of the Court'

Superior Court Judge Randall White explained the terms of the deal and warned Downey he could go to prison for up to four years if he violated the terms of the deal.

Asked if he understood the terms, Downey replied: "I'm well aware, your honor."

Downey, 36, was arrested at Merv Griffin's Resort Hotel and Givenchy Spa in Palm Springs during last year's Thanksgiving weekend. Authorities allegedly found the drugs in his hotel room after receiving an anonymous call.

The deal was struck under Proposition 36, which California voters approved last year. It removes the threat of prison for drug offenders unless they are charged three more times with drug violations or repeatedly fail to cooperate in treatment programs.

"This is not a gift of the court. This is going to be hard work," White told Downey.