Britney Spears partied hours after a judge warned her to curb her wild ways or face losing her children.
The Toxic singer - who is currently battling ex-husband Kevin Federline for custody of their two sons, Sean Preston, two, and one-year-old Jayden James - was seen at two Hollywood nightclubs on Tuesday night (18.09.07), where she was described as "off her head".
One onlooker said: "If there was a time to stay at home and lay low, this was it.
"It still hasn't hit home she could lose her children. She certainly wasn't acting like she was meant to be on her best behaviour."
On Monday (17.09.07), a judge ruled Britney would have to undergo twice-weekly drug tests to prove she's a suitable mother. The troubled star must also meet a 'parenting coach' for eight hours a week.
Los Angeles Superior Court Judge Scott M. Gordon said the 25-year-old singer showed "a habitual, frequent and continuous use of controlled substances and alcohol".
The judge's order requires both Britney and Kevin to refrain from drinking and using drugs around Sean and Jayden and 12 hours before either cares for them.
During the court hearing, Britney's former bodyguard made claims in legal papers she took drugs in front of Sean and Jayden.
Tony Barretto - who was fired by Britney in May - also alleged Britney paraded around naked in front of the boys.
Barretto was not allowed in the courtroom to testify in person.