SALEM – A Peabody drug dealer who dragged two Danvers police detectives who were trying to arrest him last year on Route 114 will serve four-to-five years in prison before being placed on probation for another three years.Todd A. Scioli, 36, who had been living at the Carriage House Motel on Route 1 in Peabody, changed his plea to guilty Tuesday in Salem Superior Court, confessing to two charges of assault and battery with a dangerous weapon, two counts of assault and battery on a public employee, as well as resisting arrest and possession with the intent to distribute oxycodone and alprazolam.Judge Howard J. Whitehead noted that Scioli had a long record with drug and larceny charges with an obvious drug problem.Assistant District Attorney Jean M. Curran said the charges stemmed from an incident in Danvers in June 2007.Scioli had been under investigation by Peabody and Danvers police, who had used an undercover officer to make several drug deals with him.On June 14 just after 7:15 p.m., Danvers detectives Robert Sullivan and Timothy Williamson in an unmarked cruiser got a tip and approached Scioli’s Chevy Tahoe in the parking lot of Lowe’s Home Improvement on Andover Street in Danvers.The officers had a search warrant for his arrest, but when the detectives opened the door to his SUV, Scioli suddenly put the vehicle in reverse, pinning the officers against the door and dragging them under the vehicle.One officer managed to get away, but the other officer continued to be dragged for a short distance before he was freed.Police then fired their weapons in an effort to stop Scioli’s flight. No one, including Scioli, was hit by the blast of bullets.As Scioli fled, he lost control, jumped out of the sports utility vehicle and began to flee on foot while tossing a pill bottle away. He was quickly subdued and the pill bottle was retrieved by authorities.The bottle contained 13 80mg OxyContin pills and some Xanax pills.Police also seized $2,692.85 in cash from Scioli along with a cell phone, Curran said.Curran said the two Danvers detectives were notified of the plea and aware of the punishment he was to receive.Curran was seeking a six-to-seven-year sentence based on Scioli’s actions at the time, as police officers were attempting to make the arrest.She explained that the officers were out of work for a year as a result of their injuries. One suffered a broken kneecap and the other a rotator cuff injury.Defense lawyer Michael A. Cioffi suggested a lower sentence of three years in prison.Under the terms of his probationary term, Scioli is to refrain from all alcohol and drugs, receive drug and alcohol counseling and consent to random screens.The judge credited Scioli the 412 days he has spent in jail awaiting trial on the case.