A New Jersey police officer who admitted seeking nude photos of a 13-year-old girl online has been sentenced to six years in state prison on Friday.

The girl who Madison Police Detective James Haspel was chatting with turned out to be an undercover police officer.

Haspel admitted to chatting online at home and police headquarters between Dec. 2, 2009 and May 10, 2010.

The 50-year-old father of two could have faced a seven-year prison term after pleading guilty to attempted child endangerment.

He also has to register as a sex offender under Megan's Law.

 

(Copyright 2011 by The Associated Press.  All Rights Reserved.)