RICHMOND, Va. (AP) — Lawyers for a Virginia veteran detained for psychiatric evaluation after posting strident anti-government messages on Facebook are fighting the government's actions in court.

Brandon Raub was taken into custody last week after Chesterfield County police and federal authorities questioned him about his Facebook posts. Raub was held over the weekend at a Hopewell hospital. After a hearing Monday, a judge ordered that he be detained for an additional month.

The Rutherford Institute, a civil liberties group representing Raub, said Wednesday that it has appealed the 26-year-old ex-Marine's detention to Hopewell General District Court.

The organization also has filed a motion in Prince George Circuit Court challenging a decision to transfer Raub from the Hopewell hospital to a Veterans Administration facility in Salem. A hearing on that is set for Thursday.