In two separate appeals, George M. Epps, appellant, appeals the judgment of the trial court finding him guilty of *170three counts of criminal contempt and one count of civil contempt. In this consolidated appeal, appellant contends the trial court erred in: 1) finding Judge Baskervill had authority to enter the April 16, 2002 and July 1, 2003 orders; 2) failing to advise appellant whether the charges against him were civil or criminal; 3) finding Judge Baskervill competent to testify as a sitting judge; 4) finding appellant violated Code § 18.2-456(4) for leaving the courthouse unsecured; 5) finding that superseding legislation did not relieve appellant from the duty of providing a deputy at the courthouse entrance; 6) refusing to admit evidence of “impossibility” to comply with the court orders; 7) finding appellant violated the April 16, 2002 order; 8) finding appellant violated the July 1, 2003 order1; and 9) finding Judge Baskervill had a right to enter appellant’s office and demand return of the July 1, 2003 letter and order. For the following reasons, we reverse and remand.
BACKGKOUND
This case concerns security of the “old courthouse” building in Petersburg. The courthouse houses a courtroom on the second floor. The first floor includes the office of the Circuit Court Administrator, Gladys Kennedy, Circuit Judge D’Alton’s office and the City’s public law library. The court receives mail and presentence reports at the administrator’s office. Lawyers also schedule all hearings at Ms. Kennedy’s office. At the entrance to the old courthouse is a desk occupied by the deputy sheriff assigned to provide security for the courthouse building.
In April 2002, Circuit Court Judges D’Alton and Baskervill met with appellant, the Sheriff of the City of Petersburg, to discuss mutual problems. The judges memorialized the agreement reached at that meeting in a letter addressed to *171the sheriff, which the court entered as a court order on April 16, 2002, detailing certain duties appellant would perform in service to the court. Pertinent to the present case was a provision that “[t]he main court building, which has a public law library and conducts the court’s business, shall have a deputy at the front entrance at all times during business hours of 8:00 a.m. and 4:30 p.m. Monday through Friday.” Appellant complied with that order for over a year.
On June 6, 2003, appellant wrote a letter to the circuit court and district court clerks in Petersburg discussing difficulties resulting from a reduction of funds from the Compensation Board. The letter stated, among other things, that “[wjithout these funds from the fee bills I can no longer have deputies remain with the court budding once court has concluded.” The appellant did not send the circuit court judges a copy of this letter.
On June 9, 2003, appellant wrote a letter to Chief Judge D’Alton discussing his office’s funding and staffing problems. In that letter, he did not tell the court, as he had the clerks, that he would no longer be able to maintain a deputy at the courthouse door in compliance with the April 16, 2002 order. Instead, he wrote that “[a]s of July 1, 2003, the reduction in the Sheriffs Office budget for FY04 will require some personnel changes which are directly related to maintaining the present state of readiness for our courts, the jails, document services and our transportation unit.”
Effective July 1, 2003, appellant removed the deputy who guarded the old courthouse entrance when court was not in session. At trial, appellant explained he decided to remove the deputy from the front desk and return the deputy to the jail “to help to man the jails and fulfill the responsibilities of the things that were getting behind in the jail system.” Appellant was aware of the April 16, 2002 order that required the presence of a deputy at the front desk. Essentially, appellant testified he could not comply with the April 16, 2002 order and still properly discharge his responsibilities in the *172jail. Appellant continued to properly staff the security needs of the court when it was in session.
On July 1, 2003, Judge Baskervill was informed that no deputy was posted at the old courthouse entrance, which left Ms. Kennedy alone in that building. Judge Baskervill directed the preparation and posting of a sign that indicated the courthouse was temporarily closed due to lack of security. The sign further gave a phone number to call in order to gain entrance.
Appellant removed that sign from the courthouse door on July 1, 2003, saying he did so because he determined the sign, itself, was a security risk.
Later that day, Judge Baskervill directed the preparation and posting of another virtually identical sign on the courthouse door. Also on July 1, 2003, she entered an order to be posted with the sign that provided:
It appearing to the Court that the Sheriff of the City of Petersburg has ceased to provide security for the Courthouse when Court is not in session, it is ORDERED that in such times when security is not provided, the Courthouse shall be locked. Entrance shall be had only by calling 733-2423. The Clerk of this Court is directed to post a copy of this Order on the front door of each Courthouse.
Appellant then removed from the courthouse door both the second sign and the court order that accompanied it.
The next morning, July 2, 2003, Judge Baskervill went to the Sheriffs Office to retrieve the second sign and order. Appellant responded that the judge had no right to post papers on the courthouse door because he was in charge of courthouse security. The judge again asked for the return of those items. Appellant went to his office and pulled out the sign and order, still taped together. Judge Baskervill again asked for those items, and appellant responded, “no, I want to read them.” After doing so, appellant told the judge that the order was inaccurate, and she had no right to post it. He eventually returned the sign, but not the order. When she again asked for the return of the order, he refused, and the *173judge left his office. One of appellant’s deputies returned the order to the court the following day.
Judge D’Alton then issued a rule to show cause against appellant requiring appellant to show cause why he should not be held in contempt of court, pursuant to Code § 18.2-456 upon violation of the orders of April 16, 2002 and July 1, 2003. The rule was issued upon the sworn statement of Judge Baskervill, which was attached to the rule.
Prior to the beginning of the contempt trial, appellant inquired whether the proceeding was criminal or civil in nature. The court responded the proceeding was both civil and criminal. At trial, the Commonwealth offered the testimony of Judge Baskervill, which the trial court admitted over appellant’s objection.
At trial, appellant asked that he be allowed to put on evidence outlining staffing problems and his efforts to obtain additional funding from the City and the Compensation Board to obtain additional staffing to comply with the order. The trial court denied appellant’s request, ruling that appellant’s inability to comply with the court order is not a defense to contempt. The trial court did allow a proffer. Appellant testified in his own behalf.
The trial court found appellant guilty of one count of civil contempt for violating the April 16, 2002 order by not having security at the doors of the courthouse on July 1 and July 2, 2003. Further, the trial court found appellant guilty of three counts of criminal contempt violating various subsections of Code § 18.2-456. The first act was the removal of the sign and order on July 2, 2003 constituting misbehavior under Code § 18.2-456(1). The court, on this charge, found appellant, by removing the sign and order, denied the public access to the courthouse, thus defeating the purpose of the sign and order. The trial court thus concluded appellant “interrupted] the administration of justice.”
The trial court also found appellant guilty of criminal contempt on July 1, 2003 for, without justification, leaving the courthouse without security and without notice to the court. *174The trial court found this act to be “an act of misbehavior of an official nature or character of an officer of the court” in violation of Code § 18.2-456(4).
Finally, the trial court found appellant guilty of criminal contempt for the July 2, 2003 removal of the court order from the courthouse door and subsequent refusal to return the order to the court upon reasonable request in violation of Code § 18.2-456(5).
ANALYSIS
I. VALIDITY OF ORDERS
Appellant contends Judge Baskervill had no authority to enter the April 16, 2002 order requiring posting of a deputy at the front desk and the July 1, 2003 order directing that the courthouse be closed when security was not provided. He maintains that since the April 16, 2002 order exceeds the authority of Code § 17.1-513, the trial court had no subject matter jurisdiction and the order is void. Therefore, contends appellant, he had no duty to obey the order. We disagree.
“It is, of course, well settled that disobedience of, or resistance to a void order, judgment, or decree is not contempt.” Robertson v. Commonwealth, 181 Va. 520, 536, 25 S.E.2d 352, 358 (1943). This is so because “a void order, judgment, or decree is a nullity and may be attacked collaterally.” Id.
Appellant cites Code § 17.1-5132 as the sole source of jurisdiction for circuit courts. He contends circuit courts have *175no authority other than to preside over and rule on “proceedings.” Yet, appellant ignores other statutory and common law powers of the court to insure the orderly administration of justice. See Bd. of Supervisors v. Bacon, 215 Va. 722, 724, 214 S.E.2d 137, 138 (1975) (holding when the courthouse building is occupied by court and municipal offices, the court has authority to control that portion of the building used for the court); see also Hutchins v. Carrillo, 27 Va.App. 595, 500 S.E.2d 277 (1998) (stating that district court judges have the authority to close court on the occurrence of inclement weather).
Courts have the inherent authority to ensure the security of their courtrooms. See Payne v. Commonwealth, 233 Va. 460, 466, 357 S.E.2d 500, 504 (1987) (“The trial judge has overall supervision of courtroom security.”); see also Bond v. Commonwealth, 32 Va.App. 610, 615, 529 S.E.2d 827, 829 (2000) (upholding the trial judge’s decision to exercise responsibility for courtroom security by disallowing accused’s twin brother, a prisoner, to sit among the audience in the courtroom). Code § 53.1-120(A) mandates that the “sheriff shall ensure that the *176courthouse and courtrooms ... are secured from violence and disturbance.” However, the chief judge of the circuit “shall be responsible by agreement with the sheriff ... for the designation of courtroom security deputies.” Code § 53.1-120(B).
The April 16, 2002 order confirmed the agreement between the judges and the sheriff, and it ordered compliance with the agreement. Appellant never argued the order did not accurately reflect the agreement. In fact, appellant complied with the order until July 1, 2003.
Similarly, in its role to provide for the orderly administration of justice, the court ordered the courthouse closed when no security was provided. Indeed, it would be folly to claim the circuit court judge has the power to ensure courtroom security, but not courthouse security. If the judge is impotent to supervise who enters the courthouse, it is of no value for the judge to have the authority to ensure the security of the courtroom. It would surely be a hollow exercise. Although Code § 53.1-120 mandates the sheriff to provide courthouse security, the statute does not bar the court from ensuring the sheriff properly discharges that duty.
Clearly, the trial court has subject matter jurisdiction to address courtroom and courthouse security issues. Whether the trial court could order security when the court is not in session is not jurisdictional. The error, if any, would be as to whether the trial court had the authority to exercise its subject matter jurisdiction. See Nelson v. Warden, 262 Va. 276, 552 S.E.2d 73 (2001). If the court lacks authority to exercise its subject matter jurisdiction, the order would be erroneous or voidable, not void, see Robertson, 181 Va. at 536, 25 S.E.2d at 358, and appellant’s remedy would be a direct appeal, not disobedience.
Of course a party cannot be guilty of contempt of court for disobeying an order which the court had no authority of law to make, but if a court has jurisdiction of the parties and legal authority to render the order, then it must be obeyed even though it was erroneous or improvidently entered.
*177Id. at 537, 25 S.E.2d at 359 (citations omitted); see also Potts v. Commonwealth, 184 Va. 855, 861, 36 S.E.2d 529, 531 (1946) (“A dissatisfied litigant should challenge the correctness of an adverse judgment or ruling by an appeal and not by disobedience of such order or by interfering with or obstructing the judicial processes.”). When one subject to a court order disobeys that order contending the order is void, he does so at his peril, as appellant did here.
Thus, the trial court had subject matter jurisdiction to order appellant to provide courthouse security. The order was, at most, voidable rather than void, and appellant did not have the privilege to disobey the order, even if it was erroneous.
II. JUDGE BASKERVILL’S TESTIMONY
Appellant contends the trial court erred in allowing Judge Baskervill to testify at the contempt hearing, in violation of Code § 19.2-271.
Code § 19.2-271 states in part: “No judge shall be competent to testify in any criminal or civil proceeding as to any matter which came before him in the course of his official duties.” The only exception to the prohibition of Code § 19.2-271 is:
Notwithstanding any other provision of this section, any judge, clerk of any court, magistrate, or other person having the power to issue warrants, who is the victim of a crime, shall not be incompetent solely because of his office to testify in any criminal or civil proceeding arising out of the crime.
The Commonwealth concedes that the incidents to which the judge testified came before her in the course of her official duties.3 However, the Commonwealth contends Judge Bask*178ervill was the victim of the contempt and thus permitted to testify. Appellant responds that since contempt is an offense against the dignity of the court, then the court, not the judge, is the victim. We agree with appellant.
Section 4781 of the Code of Virginia of 1924, predecessor to Code § 19.2-271, made judicial officers incompetent to testify against a criminal defendant in a court of record with respect to any statements that the defendant made at his trial or preliminary examination before any such officer. That statute provided in relevant part:
“No justice of the peace, police justice, civil and police justice, juvenile and domestic relations court judge or other trial justice shall be competent to testify against the accused in a court of record as to statements made by the accused on his trial by such justice or on his preliminary examination before such justice.”
Baylor v. Commonwealth, 190 Va. 116, 121, 56 S.E.2d 77, 79 (1949).
In Baylor, the Supreme Court of Virginia stated that Code § 4781, as amended by the General Assembly in 1924, mandated that a trial justice be barred from testifying in circuit court to the fact that the accused had entered a guilty plea when his case was heard below. That particular statute was “designed *179and intended to protect an accused against the testimony of certain judicial officers before whom he has appeared as to admissions or confessions made by him.” Id.
A comparison of the two statutes and these two cases makes clear that the provisions of Code § 19.2-271 are much broader than those of former Code § 4781. Section 4781 was applicable only to criminal prosecutions and then only in cases pending in a circuit court. On the other hand, Code § 19.2-271 applies to both civil and criminal proceedings in all courts and makes judicial officers incompetent to testify about matters that come before them in their official capacity. It is applicable to all cases except those that are specifically enumerated, and any party or witness may invoke its provisions. The evolution of this present statute indicates the legislature’s intent to make the prohibition all-inclusive, encompassing all situations where judges may be called to testify “as to any matter which came before him in the course of his official duties” except when they are victims of a crime.
The General Assembly has recognized the problem with Code § 19.2-271 with respect to calling judicial officers as witnesses. In cases where a finding of criminal contempt in district court is appealed to circuit court, the district court judge is often an indispensable witness to the contemptuous event below and his or her testimony is essential to prosecution of the offense on an appeal. Baugh v. Commonwealth, 14 Va.App. 368, 372-73, 417 S.E.2d 891, 894 (1992). Code § 18.2-4594 resolves this dilemma by requiring that the district court *180judge submit a “certificate of the conviction and the particular circumstances of the offense.” The circuit court “may hear the case upon the certificate and any legal testimony adduced on either side.” Code § 18.2-459. This statutory scheme accords proper deference to the district court judge and ensures the preservation and availability of relevant evidence, in particular, the district judge’s testimony. In effect, Code § 18.2-459 provides a narrow exception to Code § 19.2-271 by allowing a district court judge, by way of certificate, to testify as a witness in circuit court.
However, the General Assembly has not carved out a broader exception to Code § 19.2-271 that would permit a judicial officer who simply witnesses contemptuous behavior to testify in circuit court, nor did the legislature include circuit court judges in Code § 18.2-459. Had the legislature intended to create another exception to Code § 19.2-271 by allowing circuit court judges to testify through such a certificate, it would have so indicated.
“We must ... assume that the legislature chose, with care, the words it used when it enacted the relevant statute, and we are bound by those words as we interpret the statute.” Barr v. Town & Country Properties, Inc., 240 Va. 292, 295, 396 S.E.2d 672, 674 (1990). In sum, “ ‘[cjourts are not permitted to rewrite statutes. This is a legislative function. The manifest intention of the legislature, clearly disclosed by its language, must be applied. There can be no departure from the words used where the intention is clear.’ ” Id. (quoting Anderson v. Commonwealth, 182 Va. 560, 566, 29 S.E.2d 838, 841 (1944)).
Further, if the judge is the victim of contempt under Code § 19.2-271, the judge could then always testify in an appealed contempt conviction. There would be no need to set forth a procedure for the district court judge to transmit a “certificate of the conviction and the particular circumstances of the offense” to the circuit court to provide evidence of the *181contemptuous behavior. The language of that statute would be useless.
The rules of statutory interpretation argue against reading any legislative enactment in a manner that will make a portion of it useless, repetitious, or absurd. On the contrary, it is well established that every act of the legislature should be read so as to give reasonable effect to every word____
Jones v. Conwell, 227 Va. 176, 181, 314 S.E.2d 61, 64 (1984).
“ ‘Contempt is defined as an act in disrespect of the court or its processes, or which obstructs the administration of justice, or tends to bring the court into disrepute.’ ” Carter v. Commonwealth, 2 Va.App. 392, 396, 345 S.E.2d 5, 7 (1986) (quoting 4A Michie’s Jurisprudence Contempt § 2 (repl. vol. 1983)). Any act which is calculated to embarrass, hinder, or obstruct the court in the administration of justice is contempt. Potts, 184 Va. at 859, 36 S.E.2d at 530.
Black’s Law Dictionary defines “victim” as a “person harmed by a crime, tort, or other wrong.” Black’s Law Dictionary 1598 (8th ed. 2004). Here, Judge Baskervill witnessed Sheriff Epps’ behavior, yet she was not victimized by it. She was not harmed, physically or otherwise, and she suffered no personal consequences. Any damages resulting from Sheriff Epps’ conduct were suffered by the court, not by Judge Baskervill individually. Contempt offends the dignity of the court, not the dignity of the judge. Although it was her individual acts in her judicial capacity that prompted appellant’s actions, we disagree with the Commonwealth that Judge Baskervill was the victim of the offending behavior.
Because Judge Baskervill was not a victim of a crime committed by Sheriff Epps, we conclude that the trial court erred in allowing Judge Baskervill to testify.
Although the court erred in admitting Judge Baskervill’s testimony, that error does not require reversal if we determine the error was harmless.5 Lavinder v. Common*182wealth, 12 Va.App. 1003, 1005, 407 S.E.2d 910, 911 (1991) (en banc); see Ferguson v. Commonwealth, 240 Va. ix, 396 S.E.2d 675 (1990) (citing Code § 8.01-678 for the proposition that “harmless-error review is required in all cases”). The Commonwealth has offered no argument that the error was harmless, and we perceive no basis for such a holding. See Land v. Commonwealth, 211 Va. 223, 226, 176 S.E.2d 586, 589 (1970) (in rape case in which court erroneously allowed Commonwealth to offer, in its case-in-chief, evidence of defendant’s prior conviction for statutory rape, holding error could not be found harmless simply because defendant subsequently chose to take the stand because defendant’s “decision to testify ... may have been induced by the error” in admitting the testimony). While appellant’s testimony was in accord with Judge Baskervill’s, we cannot say that it is harmless error for the court to have allowed Judge Baskervill’s testimony in light of our inability to determine why appellant chose to testify.
III. CRIMINAL AND CIVIL CONTEMPT
Appellant contends the trial court erred by failing to advise him which charges were criminal and which charges were civil. Appellant further maintains that his trial tactics may differ depending on whether the contempt charges are criminal or civil, i.e., deciding whether to testify or whether to call witnesses to address the quantum of punishment.6 It is uncon*183troverted the trial court indicated at the beginning of the hearing that the charges were both civil and criminal. Further, by the end of the hearing, the trial court had articulated which charges were criminal and which were civil, so that appellant has this information at his disposal in the event of a retrial. Appellant argues, and we agree, that civil and criminal contempt are quite different offenses. However, those differences do not prevent the civil and criminal contempt charges from being tried simultaneously.7
“Contempt proceedings prosecuted to preserve the power and vindicate the dignity of the court are criminal and punitive; those prosecuted to preserve and enforce the rights of private parties are civil, remedial, and coercive.” United Steelworkers v. Newport News Shipbuilding & Dry Dock Co., 220 Va. 547, 549, 260 S.E.2d 222, 224 (1979). There are significant differences in the two kinds of proceedings:
In a criminal contempt proceeding, the defendant is presumed to be innocent, he must be proved guilty beyond a reasonable doubt, and he cannot be compelled to testify against himself. Moreover, a civil contempt proceeding is between the original parties to litigation and is instituted and tried as part of the main cause; a criminal contempt proceeding is between the public and the defendant, and is not a part of the original cause.
Id. at 550, 260 S.E.2d at 224 (citations omitted).
“It is not the fact of punishment, but rather its character and purpose, that often serve to distinguish between ... [civil and criminal contempt].” The punishment is criminal in nature if it is determined and unconditional. The punishment is civil if it is conditional, and a defendant can avoid a penalty by compliance with a court’s order.
*184“A proceeding for criminal contempt is a quasi-criminal proceeding between the public and the violator.” In a criminal contempt proceeding, the trial court may always punish the violator for the purpose of upholding the authority and dignity of the court. In a contempt proceeding of this nature, the punishment imposed-is a fine and/or imprisonment.
“A proceeding for civil contempt partakes more of the nature of a remedial civil proceeding than it does of the nature of a criminal proceeding. Its main purpose is to procure the imposition of a punishment which will afford remedial relief to the parties injured.”
Kessler v. Commonwealth, 18 Va.App. 14, 16, 441 S.E.2d 223, 224 (1994) (citations omitted).
In criminal contempt, the accused is entitled to counsel and may elect to have a jury trial if the punishment exceeds six months. See Baugh, 14 Va.App. at 374, 417 S.E.2d at 895 (“We recognize, however, that the unbridled authority of courts to punish for criminal contempt in the absence of a jury is limited to ‘petty contempts,’ with a penalty not exceeding six months.”). A court may not convert a civil contempt hearing into a criminal trial without notice to the accused. See Powell v. Ward, 15 Va.App. 553, 560, 425 S.E.2d 539, 544 (1993). However, an accused may be tried simultaneously for criminal and civil contempt under certain circumstances. Steinberg v. Steinberg, 21 Va.App. 42, 47, 461 S.E.2d 421, 423 (1995). “[A]lthough the criminal and civil contempt matters [are] tried together, prejudice [is] avoided so long as ‘the defendants [are] ... accorded all the rights and privileges owing to defendants in criminal contempt cases.’ ” Id. (quoting United States v. United Mine Workers, 330 U.S. 258, 298, 67 S.Ct. 677, 698, 91 L.Ed. 884 (1947)).
Here, the record gives no indication that appellant was not afforded all the rights and privileges due him in a criminal proceeding, including application of the proper burden of proof. The contempt cases clearly were conducted as proceedings at law, styled “Commonwealth of Virginia v. *185George M. Epps.” An assistant Commonwealth’s attorney represented the Commonwealth. Appellant retained his own counsel. Appellant was not entitled to a jury because the Commonwealth proceeded under Code § 18.2-457, which allows punishment of no more than ten days in jail. Finally, appellant’s Fifth Amendment rights were not violated because he was not forced to incriminate himself and voluntarily testified on his own behalf.
The record makes clear which contempt charges are criminal and which are civil, and on retrial, the charges may be joined “so long as ‘[appellant is] ... accorded all the rights and privileges owing to defendants in criminal contempt cases.’” Steinberg, 21 Va.App. at 47, 461 S.E.2d at 423 (quoting United Mine Workers, 330 U.S. at 298, 67 S.Ct. at 698).
IV. REMOVAL OF DEPUTY
Appellant argues he did not have adequate notice that failing to have a deputy at the door violated some duty to provide security. He claims the show cause rule does not indicate this to be an issue. We disagree. The show cause clearly alleged appellant violated the order of April 16, 2002. The affidavit attached to the rule set forth in detail that the deputy assigned to the front desk of the courthouse had been removed. The affidavit also stated the judges received no notice of the removal despite the fact that appellant notified the district court clerks.
While appellant claims prejudice from no notice, a substantial amount of his defense was an explanation of why he removed the deputy after the court concluded business. Further, appellant does not specify any prejudice that he may have suffered. See Butler v. Commonwealth, 264 Va. 614, 570 S.E.2d 813 (2002).
Thus we find appellant had proper notice.
*186V. SUPERCEDING LEGISLATION
Appellant contends that subsequent to the April 16, 2002 order, the legislature enacted the 2003 Appropriations Act, which relieved his duty to comply with the order. The Appropriations Act of 2003 provides that unless a judge states in writing “that a substantial security risk exists,” the number of courtroom security deputies is strictly limited. 2003 Va. Acts ch. 1042, item 64, at 1787. Appellant concludes that since the Act specifies the number of deputies assigned to courtrooms and makes no such designation for eowdhouse security, the legislature did not intend to require security for the courthouse when court is not in session. Appellant argues the Act effectively overruled the court order. We disagree for two reasons.
First, although the 2003 Appropriations Act was not passed until after entry of the April 16, 2002 order, see 2003 Va. Acts ch. 1042, at 1733 (Act of May 1, 2003, amending Act of May 17, 2002, which provided biennial budget for 2002-2004), the courtroom security provision in the 2003 Act that appellant contends modified his duties under the 2002 order was also a part of the 2000 and 2002 Appropriations Acts, see 2002 Va. Acts ch. 899, item 64, at 2265 (Act of May 17, 2002, for fiscal years from July 1, 2002, to June 30, 2004); 2000 Va. Acts ch. 1073, item 61, at 3260-61 (Act of May 19, 2000, for fiscal years from July 1, 2000, to June 30, 2002), a fact brought out by the Commonwealth at trial. Thus, identical language was contained in the Appropriations Act in effect when the April 16, 2002 order was entered, and the inclusion of that language in the 2003 Act effected no change. Appellant admitted at trial that he was aware “the language in that was in place already” and that he “just decided to act on it [in 2003]” because of further reductions in his department’s budget.
Second, even if the courtroom security language in the 2003 Act had been new, its inclusion would not support the result appellant seeks. Appellant premises his argument on the maxim “expressio unius est exclusio alteñus,” which provides “when a statute mentions specific items, an implica*187tion arises that items not present were not intended to be included within the scope of the statute.” Wise County Bd. of Supers. v. Wilson, 250 Va. 482, 485, 463 S.E.2d 650, 652 (1995). Clearly, the legislature, by express terms, intended to limit staffing requirements to courtroom security, not overall security of the courthouse. When interpreting statutory language that
“is plain and unambiguous, we are bound by the plain meaning of that statutory language. Thus, when the General Assembly has used words that have a plain meaning, courts cannot give those words a construction that amounts to holding that the General Assembly meant something other than that which it actually expressed.”
Beck v. Shelton, 267 Va. 482, 488, 593 S.E.2d 195, 198 (2004) (quoting Lee County v. Town of St. Charles, 264 Va. 344, 348, 568 S.E.2d 680, 682 (2002)).
It is one of the fundamental rules of construction of statutes that the intention of the legislature is to be gathered from a view of the whole and every part of the statute taken and compared together, giving to every word and every part of the statute, if possible, its due effect and meaning, and to the words used their ordinary and popular meaning, unless it plainly appears that they were used in some other sense. If the intention of the legislature can be thus discovered, it is not permissible to add to or subtract from the words used in the statute.
Posey v. Commonwealth, 123 Va. 551, 553, 96 S.E. 771, 771 (1918). This canon flows from the principle that “[w]e must ... assume ... the legislature chose, with care, the words it used when it enacted the relevant statute.” Barr, 240 Va. at 295, 396 S.E.2d at 674.
Code § 53.1-120 mandates the sheriff to provide courthouse security. Nothing in the Appropriations Act modified that duty. We will not apply a maxim of statutory interpretation to nullify an express statutory duty. Further, absent a timely effort by appellant to challenge the validity of the order before he was held in contempt, the claim that appellant was relieved *188of a duty to comply based on superceding legislation is irrelevant.
VI. IMPOSSIBILITY EVIDENCE
Appellant proffered certain evidence detailing his efforts to obtain additional funding which would then permit him to comply with the April 16, 2002 order. He also proffered that to staff the front entrance when court is not in session would require other tasks to go unperformed.
Appellant contends that this testimony is crucial to his defense of impossibility. “[T]he inability of an alleged contemner, without fault on his part, to render obedience to an order of court, is a good defense to a charge of contempt.” Laing v. Commonwealth, 205 Va. 511, 514, 137 S.E.2d 896, 899 (1964).
The facts do not reveal impossibility but rather a situation where appellant was confronted with several difficult options. He could comply with the court order, appeal the order, attempt to meet with the judges to resolve the conflict, adjust his job staffing requirements, or unilaterally violate the terms of the court order. He chose the latter. Appellant testified, “I felt the necessity to redirect the manpower for other allocations” because he had “been pulling resources from the jails daily to use at the court allowing the jails to get behind in workload.” He further testified, “I made the conscious decision to bring that person away from court after court, concluded to man the jails.”
Legal impossibility occurs when a defendant’s actions, even if fully carried out exactly as he intends, would not constitute a crime. Factual impossibility occurs when the actions intended by a defendant are proscribed by the criminal law, but a circumstance or fact unknown to the defendant prevents him from bringing about the intended result. Traditional analysis recognizes legal impossibility as a valid defense but refuses to recognize factual impossibility.
*189Parham v. Commonwealth, 2 Va.App. 633, 636, 347 S.E.2d 172, 173-74 (1986).
Far from impossibility, appellant made a conscious decision to fulfill one set of duties to the neglect of the court order. Further, absent a timely effort by appellant to challenge the validity of the order before he was held in contempt, the claim that appellant was unable to comply with the order due to impossibility based on a lack of funding is irrelevant. We find the trial court did not err in not admitting evidence of “impossibility.”
VII. VIOLATION OF THE APRIL 16, 2002 ORDER
Appellant maintains he did not violate the court’s April 16, 2002 order because the letter imposed no duty upon appellant to provide security.8 Appellant cites Michaels v. Commonwealth, 32 Va.App. 601, 529 S.E.2d 822 (2000), to support his position. In Michaels, we reversed a contempt conviction because the order did not expressly require the sheriff to transport the prisoner.
“A person is in ‘contempt’ of a court order only if it is shown that he or she has violated its express terms. See Winn v. Winn, 218 Va. 8, 10, 235 S.E.2d 307, 309 (1977). ‘ “The process for contempt lies for disobedience of what is decreed, not for what may be decreed.’ ” Id. (quoting Taliaferro v. Horde’s Adm’r, 22 Va. (1 Rand.) 242, 247 (1822)). ‘[B]efore a person may be held in contempt for violating a court order, the order must be in definite terms as to the duties thereby imposed upon him and the command must be expressed rather than implied.’ Id. (citation omitted).”
Id. at 609, 529 S.E.2d at 826.
Essentially, appellant argues the order did not order that he maintain security of the courthouse entrance. He refers to language in the order such as “confirm our meetings” *190and “[I]t was agreed you would take the following steps____” Appellant thus argues the tenor of the order is not an express directive to take certain actions, but an ambiguous communication as to the court’s intent. We disagree. The order, after setting forth the agreement, inter alia, that appellant is to maintain security when the court is not in session, concludes, “and it is so ORDERED effective April 16, 2002.” It is difficult to imagine how this language could be interpreted as ambiguous. Clearly, the order memorialized the agreement and ordered compliance. Further, appellant complied with that order until July 1, 2003.
Appellant argues he had no intent to impede the administration of justice. His action in removing the deputy from the courthouse entrance was due to his responsibilities of properly staffing the jail. He wanted to “allocate his resources the best way possible to manage all his duties in the justice system.”
As we discussed in Section VI above, appellant, by his own admission, consciously decided to remove the deputy, in violation of the court order. He intentionally chose to fulfill one set of duties over the court order. Under appellant’s argument, court orders are meaningless if the person under order can ignore the order based on his own priorities. This result is patently absurd.
We, therefore, conclude appellant intentionally violated the April 16, 2002 order.
VIII. REMOVAL OF ORDER AND SIGN
Appellant claims he did not violate the July 1, 2003 order which ordered the courthouse closed when security was not provided. He further argues since the order did not prohibit him from removing the order, he did not violate the order by removing it. This position is somewhat confusing, because appellant was not convicted of violating the July 1 order. He was convicted of removing the order and sign on July 2, 2003 in violation of Code § 18.2-456(1), i.e., “[m]isbe*191havior in the presence of the court, or so near thereto as to obstruct or interrupt the administration of justice.”9
Appellant contends he did not intend to impede the administration of justice under Code § 18.2-456(1). His acts belie this assertion. The order of July 1, 2003 directed the clerk to post “a copy of this order on the front door of each courthouse.” Clearly, posting was to advise the public of how they could access the courthouse when the courthouse was locked. By removing the sign and order, the public was denied access to the courthouse, including an inability to schedule cases with the court administrator. Appellant, by removing the sign and order, effectively negated the purpose of the order. The trial court found the removal “interrupt[ed] the orderly flow of the court’s business.”
Appellant excuses his behavior claiming it was necessary to maintain court security. Again, appellant substituted the court’s directive with his own view of what was best for security. He unilaterally overruled the court’s considered judgment. By preventing the public of learning of a means of alternate access to the courthouse, he intentionally precluded the public from transacting business with the court.
IX. FAILURE TO RETURN ORDER
Appellant contends that Judge Baskervill had no right to enter his office and demand the return of the court order and sign, but he cites no authority for that statement.10 The issues here are 1) whether Judge Baskervill had a right to demand the return of the sign and order removed from the courthouse door, and 2) if she had that right, did she, in fact, make that demand? By failing to cite any authority in support of this argument in his opening brief, appellant has violated the provisions of Rule 5A:20(c). “[Statements unsup*192ported by argument, authority, or citations to the record do not merit appellate consideration.” Buchanan v. Buchanan, 14 Va.App. 58, 56, 415 S.E.2d 237, 239 (1992). Thus, we will not consider this issue on appeal. It should also be noted that appellant was not convicted of refusing Judge Baskervill’s entry into his office.
Appellant was convicted of disobedience of a lawful process or order by an officer of the court, under Code § 18.2-456(5). He claims there was no lawful order since Judge Baskervill had no authority to demand the return of the sign and order. Again, appellant cites no authority for this propositions. See Rule 5A:20(c). We will not address this issue on appeal.
Appellant also argues he complied with the judge’s demand the next day when a deputy returned the order to Judge Baskervill. Continuing, he claims there is no evidence that she used language requiring immediate return of the order. Thus, appellant concludes since he returned the order the next day, he was in compliance with her demand.
A review of the record compels us to conclude Judge Baskervill made it extremely clear she demanded the return at that instant. The judge asked for the papers a number of times. She testified, “I didn’t wish to talk to him about it. I just merely wished to pick my papers up.” Appellant refused, stating he wanted to read them. Appellant read the order, and again the judge asked appellant for their return. Appellant responded he would not give the order to her but he did give her the sign. She left appellant’s office.
The evidence clearly indicates appellant knew the judge demanded both the order and the sign then and there. Appellant gave her the sign but refused to give her the order.
Appellant again cites Michaels, 32 Va.App. 601, 529 S.E.2d 822, arguing there was no express directive to return the order then and there. In Michaels, the court continued a criminal trial so that the defendant could be evaluated at Central State Hospital. Id. at 604, 529 S.E.2d at 824. While a copy of the order was sent to the sheriff, the order did not direct the sheriff to transport the prisoner to the hospital. Id. *193The sheriff was convicted of contempt for failure to transport. Id. at 607, 529 S.E.2d at 825. In that context, we held the command in the order must be expressed, not implied. Id. at 609-10, 529 S.E.2d at 826. However, in the instant case, under the totality of the circumstances, Judge Baskervill’s demand for the immediate return of the order was expressed, rather than implied.
We find the trial court did not err in finding appellant in criminal contempt for failure to return the court order.
CONCLUSION
We find that the trial court did not err in: 1) finding Judge Baskervill had authority to enter the April 16,2002 and July 1, 2003 orders; 2) failing to advise appellant whether the charges against him were civil or criminal; 3) finding appellant violated Code § 18.2-456(4) for leaving the courthouse without security; 4) finding that superseding legislation did not relieve appellant from providing a deputy at the courthouse entrance; 5) refusing to admit evidence of “impossibility” to comply with the court orders; 6) finding appellant violated the April 16, 2002 order; 7) finding appellant in contempt for removing the July 1, 2003 order from the courthouse door; and 8) finding Judge Baskervill had a right to enter appellant’s office and demand return of the July 1, 2003 documents. We find the trial court’s ruling that a sitting circuit court judge was competent to testify in those contempt proceedings was reversible error and that this error was not harmless. Accordingly, we reverse and remand for further proceedings consistent with this opinion if the Commonwealth be so advised.
Reversed and remanded.
. Appellant argues he did not violate the July 1, 2003 order by removing the sign and order from the courthouse door. We note that the trial court did not convict appellant of violating that order, rather the court found appellant guilty of criminal contempt "for the July 2, 2003 removal of Court Order from the Courthouse door and subsequent refused to return said order.”
. Code § 17.1-513 states:
The circuit courts shall have jurisdiction of proceedings by quo warranto or information in the nature of quo warranto and to issue writs of mandamus, prohibition and certiorari to all inferior tribunals created or existing under the laws of this Commonwealth, and to issue writs of mandamus in all matters of proceedings arising from or pertaining to the action of the boards of supervisors or other governing bodies of the several counties for which such courts are respectively held or in other cases in which it may be necessary to prevent the failure of justice and in which mandamus may issue according to *175the principles of common law. They shall have appellate jurisdiction in all cases, civil and criminal, in which an appeal may, as provided by law, be taken from the judgment or proceedings of any inferior tribunal.
They shall have original and general jurisdiction of all cases in chancery and civil cases at law, except cases at law to recover personal property or money not of greater value than $100, exclusive of interest, and except such cases as are assigned to some other tribunal; also in all cases for the recovery of fees in excess of $100; penalties or cases involving the right to levy and collect toll or taxes or the validity of an ordinance or bylaw of any corporation; and also, of all cases, civil or criminal, in which an appeal may be had to the Supreme Court. They shall also have original jurisdiction of all indictments for felonies and of presentments, informations and indictments for misdemeanors.
They shall have appellate jurisdiction of all cases, civil and criminal, in which an appeal, writ of error or supersedeas may, as provided by law, be taken to or allowed by such courts, or the judges thereof, from or to the judgment or proceedings of any inferior tribunal. They shall also have jurisdiction of all other matters, civil and criminal, made cognizable therein by law and when a motion to recover money is allowed in such tribunals, they may hear and determine the same, although it is to recover less than $100.
. While we are not bound by concessions of law by the parties, see Tuggle v. Commonwealth, 230 Va. 99, 111 n. 5, 334 S.E.2d 838, 846 n. 5 (1985) (affirming death sentence despite Attorney General’s suggestion that the trial court’s error required the case be remanded for resentenc*178ing), we will not, nor should we, address issues sua sponte that were never argued. See Johnson v. Commonwealth, 45 Va.App. 113, 116, 609 S.E.2d 58, 59 (2005) (“[S]uch an exercise of sua sponte judicial power would impermissibly place us in the role of advocate—far outside the boundaries of our traditional adjudicative duties.”). Therefore, we will not address whether these incidents came before Judge Baskervill in the course of her official duties.
We are not suggesting an appellate court does not have the authority to raise issues sua sponte. Indeed, in the appropriate circumstances, we should. Our concern is in addressing issues sua sponte that have never been argued or briefed by counsel. If an appellate court wants to raise an issue on its own, then the issue should be brought to counsel’s attention and supplemental briefs should be filed. See Lenz v. Warden of the Sussex I State Prison, 267 Va. 318, 342, 593 S.E.2d 292, 306 (2004) (”[W]e raised the issue, sua sponte, and asked the parties to address it.”). To do otherwise is to author an opinion without input from counsel.
. Code § 18.2-459 provides
Any person sentenced to pay a fine, or to confinement, under § 18.2-458 [district judge’s contempt authority], may appeal therefrom to the circuit court of the county or city in which the sentence was pronounced, upon entering into recognizance before the sentencing judge, with surety and in penalty deemed sufficient, to appear before such circuit court to answer for the offense. If such appeal be taken, a certificate of the conviction and the particular circumstances of the offense, together with the recognizance, shall forthwith be transmitted by the sentencing judge to the clerk of such circuit court, who shall immediately deliver the same to the judge thereof. Such judge may hear the case upon the certificate and any legal testimony *180adduced on either side, and make such order therein as may seem to him proper.
. Appellant’s testimony paralleled Judge Baskervill’s. “Generally, when a party unsuccessfully objects to evidence that he considers *182improper and then introduces on his own behalf evidence of the same character, he waives his earlier objection to the admission of that evidence.” Combs v. Norfolk & Western Ry., 256 Va. 490, 499, 507 S.E.2d 355, 360 (1998) (holding plaintiff waived objection where plaintiff objected to defendant’s use of work bench as demonstrative exhibit because it differed from work bench plaintiff was using on day of injury and plaintiff subsequently "used the same exhibit[] in presenting demonstrative evidence on his own behalf”). Because this waiver issue was never argued, we will not address it sua sponte. Johnson, 45 Va.App. at 116, 609 S.E.2d at 59.
. Appellant also argues that if the proceeding was criminal, the assistant attorney general present at the hearing could not participate in the proceeding sis co-counsel, pursuant to Code § 2.2-511. However, although an assistant attorney general was present, the record clearly *183indicates the assistant attorney general did not participate in the contempt proceedings. Thus, this argument has no factual predicate.
. Appellant did not object at trial to the joinder of the civil and criminal contempt charges.
. In his reply brief, appellant argues the order was not an order at all, but simply a confirmation of the agreement between appellant and the judges. Since this issue was not raised in the questions presented nor in appellant’s brief, we will not address it. See Rule 5A:20.
. Appellant does not contest that his act was "so near thereto as to obstruct or interrupt the administration of justice.”
. Code § 53.1-127 restricts who may enter the interior of a local correctional facility.