Viewing porn could cost judge