Do not say bad things about your spouse in front of the children.  Do not use your children as messengers.  Make sure the children know the divorce is not their fault.  Remember that the best interests of the children are paramount.  If you have a drinking or drug problem, get help.