BOSTON, Massachusetts (CNN) -- It all started with the flush of an automatic toilet. The terrifying sound marked the beginning of a two-year nightmare for Sarah Teres as she desperately tried to potty train her daughter Molly.



Molly graduated from Potty School four days before her brother, Archer, was born.



"It was awful" Teres said. "We tried everything including bribery and threats." Teres, the mother of three from Andover, Massachusetts, hoped her middle child would be toilet trained by the time she was 2½.



Two years later, the girl was still in diapers, refusing to use the bathroom. "I was going crazy," Teres admitted. "She wouldn't poop. She would hold it for days."



At wits end, Teres enrolled Molly in the Toilet Training School at Children's Hospital Boston.



"By the time the children come in with their families, it has become a power struggle," explained Dr. Alison Schonwald, a pediatrician who supervises the "poop school," as it's affectionately called by staffers. "The kids kind of dig in their heels and put a line in the sand."  Health Minute: Watch more on the perils of potty training »



The American Academy of Pediatrics reports that most children show signs they're ready to potty train between 18 and 24 months. Doctors suggest a child may be ready to start trying if he's staying dry for at least two hours at a time during the day, walking to and from the bathroom, asking for a diaper change and asking to use the potty.



For some kids, the toilet training process can take more than a year, or longer.



The six-week program at Children's Hospital is one of a handful around the country. Kimberly Dunn, a pediatric nurse practitioner, has worked with some of the 450 young graduates over the years.



She said most of the kids admit they are afraid to use a toilet. "Oftentimes, the parents come in and they want to know why they're afraid," Dunn said. "You could ask the kids until they're blue in the face and you hardly ever find out why."



Dunn meets with a half-dozen children once a week. She uses books, music and art to help the students overcome their fear of using the toilet. She helps them set small, realistic goals. For instance, she said, week one involved just sitting on the toilet for five minutes. She encourages positive reinforcement and simple rewards such as extra playtime with Mom or Dad.



While Dunn works on the kids, psychologist Elaine Leclair, an instructor at the Harvard School of Medicine, offers frank advice to the parents in a separate room.



"I just say, 'Step back.' They hate to hear me say this, but I say whatever you're doing now is not working. You really need to try something different," Leclair said.



She said many parents come to the sessions angry and anxious. "They come in feeling extremely discouraged, very isolated thinking they are the only ones in the world who have this problem."



Teres acknowledged that's how she felt. "Imagine my surprise to find out there were thousands of kids who had this problem." After years of hiding her daughter's toilet training troubles from family and friends, the group parenting sessions allowed Teres to open up about her frustrations.



"It was like going to Betty Ford," joked Teres, who felt she had exhausted all her other options.



A majority of the children who attend the Children's Hospital class are dealing with constipation issues often caused by delayed toilet training.



Teres learned that her daughter had a medical condition called encopresis. Experts call it a symptom of chronic constipation and say it occurs when a child resists having a bowel movement.



Youngsters like Molly are sometimes given laxatives or other medications to help encourage them to go.



Schonwald, the author of "The Pocket Idiot's Guide to Potty Training," doesn't want parents to be discouraged during the process
What is the best age to potty train a child? Where is the program being held? When are children ready to potty train? What is the program? What is the length of time potty training takes What is the reason that some kids learn the potty faster than others? Is there help for parents struggling with potty training At what age are children ready for potty training? Six-week program uses creative methods to get kids comfortable with a toilet
between 18 and 24 months. Children's Hospital between 18 and 24 months. Potty School more than a year, or longer. afraid to use a toilet. School at Children's Hospital Boston. between 18 and 24 months. at Children's Hospital
question: What is the best age to potty train a child?, answer: between 18 and 24 months. | question: Where is the program being held?, answer: Children's Hospital | question: When are children ready to potty train?, answer: between 18 and 24 months. | question: What is the program?, answer: Potty School | question: What is the length of time potty training takes, answer: more than a year, or longer. | question: What is the reason that some kids learn the potty faster than others?, answer: afraid to use a toilet. | question: Is there help for parents struggling with potty training, answer: School at Children's Hospital Boston. | question: At what age are children ready for potty training?, answer: between 18 and 24 months. | question: Six-week program uses creative methods to get kids comfortable with a toilet, answer: at Children's Hospital