Wow yeah if this had happened to my frog I would take him to a vet immediately. Hopefully this is not a serious problem but looking at these pictures I doubt that is the case...
I don't know what the warm water will do, especially if Ginger's right and that is his intestines or some other organ hanging out...it could be a prolapsed cloaca, but I have never seen one of those so I'm not sure what it would look like.
Try to PM one of our moderators or our Administrator John to see if he has had experience with this before. If you're lucky it's something fixable...but if you're not this could be a serious problem.