As the US Supreme Court has basically protected porn websites for the past few years under 1st Amendment rights, I can't see how any teacher would face jail time over this sort of issue. Not to mention it's almost impossible to prove who was responsible for the popups.