an Islamic Republic under the rule of Ayatollah Khomeini. While the revolution did not dismantle the Pahlavi judiciary in its entirety, it replaced secular-trained jurists "with seminary-educated ones, and codified more features of the sharia into state laws—especially the Law of Retribution." Women judges were also removed (although they could still be lawyers, or after 1997, secondary judges in civil cases). Between 1979 and 1982, the entire pre-Revolutionary judiciary was purged, and their duties replaced by "Revolutionary Tribunals" set up in every town. These tribunals ruled on "Islamic law", but were in practice unfair, biased, and the judges were inexperienced and often incompetent. Many people were executed or given harsh punishments for both political and criminal acts. There were no appeals either, and trials often lasted minutes in an un-orthodox "court". In 1982, the regular court system was reinstated, but with the judges now trained in Islamic law. The Revolutionary Courts became a part of this court system, ruling in matters of "national security" such as drug trafficking and political and "anti-revolutionary" crimes, and were considered the "judicial arm of the regime". In 1982, in response to military coup threats, a separate "Military Revolutionary Court" was formed, handling military cases. The Retribution Law (Qisas) of 1982 replaced sections of the Public Punishment Law (1924). Current system The 1979 Constitution of the Islamic Republic calls Iran to have a Head of the Judiciary, also known in English as 'Chief Justice of Iran', who is to be a "just Mujtahid" (high level Islamic cleric) appointed by the Supreme Leader and to serve for "a period of five years." He is responsible for the "establishment of the organizational structure" of the judicial system; "drafting judiciary bills" for Parliament; hiring, firing, promoting and assigning judges. Judges cannot be dismissed without a trial. Iran's prison system was "centralized and drastically expanded" by the Islamic Republic. Under the Shah prisons had been administered separately by SAVAK, the urban police, and the gendarmerie. The new regime entrusted their management "to a supervisory council of three clerics". The Islamic Republic uses the Shia based Jaafari school of Islamic jurisprudence. After the election of the first Majles of the Islamic Republic in 1980, the Majles and the Guardian Council quickly codified important features of the sharia law by passing two landmark bills in July 1982: Sharia law includes Hudud ("claims against God", punishable by a mandatory, fixed sentence), Qisas