Of course, this system is very easy to game - in one scandal, judges were bribed by prison operators in order to send kids to jail for stuff like "mocking a principal on myspace". See http://en.wikipedia.org/wiki/Kids_for_cash_scandal for one of these.
Of course, putting kids in jail for stupid myspace comments will make them responsible adults cough...