Hi,
This looks rather serious. I think it may be that you frog is suffering from a prolapsed cloaca (see thread Wierd.) I think you should get your frog to a vet asap.

Others may have a better idea of what is wrong or what to do.
Good luck