**FILE** Britney Spears, right, and her husband Kevin Federline are seen in this Feb. 8, 2006 file photo in Beverly Hills, Calif. Federline's lawyer wants Britney Spears to pay some of her ex-husband's legal expenses in their divorce case, court documents show. Attorney Mark Vincent Kaplan said in an Aug. 26, 2007 declaration that Federline has "no net income" after various expenses, and that his spousal support of $20,000 a month ends in November. Spears, meanwhile, brings in an average monthly income of $737,868. The couple's divorce became official July 30, 2007. (AP Photo/Danny Moloshok, FILE)
LOS ANGELES (AP) -- Britney Spears has been ordered to undergo random drug and alcohol testing twice a week.
Los Angeles Superior Court Judge Scott Gordon also has ordered both Spears and her ex-husband, Kevin Federline, to refrain from drinking and using drugs around their two young sons. They're also forbidden from drinking or doing drugs 12 hours before either one cares for the children.
Only Spears has been ordered to submit to testing.
Spears must meet for eight hours a week with a parenting coach, who will report back to the court on Spears' parenting skills.
Both Spears and Federline have been forbidden from making derogatory comments about each other in the presence of the boys. Spears and Federline each is seeking custody of the children.
Messages left with attorneys for Spears and Federline were not immediately returned.