LOCKPORT – A man who tried to fill a forged prescription for painkillers at a Lockport pharmacy pleaded guilty to a felony Thursday.

Sameer K. Garg, 26, of Shimerville Road, Clarence, admitted to second-degree criminal possession of a forged instrument and was assigned by State Supreme Court Justice Richard C. Kloch Sr. to the judicial diversion program of court-supervised drug treatment.

If Garg succeeds in treatment, his charge will be reduced to a misdemeanor with a probation sentence; otherwise, he could go to prison for as long as seven years.

Assistant District Attorney Peter M. Wydysh said Garg was unsuccessful in his Nov. 21 effort to obtain 180 tablets of oxycodone at the Rite Aid store at South Transit and High streets in Lockport.