Run a search for "rectal prolapse" and you will find several treatment methods. The sooner you can get veterinary assistance the better...