I upgraded to iOS 4.0 a while ago and lost my jailbreak. I don't know how to downgrade to iOS 3.1.3, so if there isn't a jailbreak out yet, instructions on that would work, too. But Apple recently came out with a new operation system updade, and I've been putting it off so I could jailbreak it.