Andrew, jailbreaking isn't illegal as such. Apple will not be particularly happy though.
If you sent it in for repair and it was 'jailbreaked' then they can refuse to help you, but what they don't know won't hurt them. If you restore it, they'll never know.
The iPod touch is quite a cool gadget though. I want one, but I don't want to pay for it.

