The Justiça Eleitoral do Brasil (Brazilian Election Justice) was created by the Decreto nº 21.076, of 24 February 1932, representing one of innovations of the Brazilian Revolution of 1930 (or coup d'état de 1930). In 1932 there was the first edited the Brazilian Election Code, inspired by the Election Justice of the Czech Republic and the ideas of Joaquim Francisco de Assis Brasil, a politician, farmer and ambassador
Brazilian Election Justice Wikipedia
Nowadays, the existence and regulation of the Election Justice in Brazil is determined in the articles 118 until 121 of the Federal Constitution of 1988, that established its exclusive attribution of the Federal Union legislating about Elections Law.
The Election Code and other laws confer Executive and Legislative powers to the Superior Electoral Court((TSE)). The law, even if its named to provide Judicial powers, include an aggregation of administrative and normative functions as well.
In other countries, the solutions adopted to distribution of powers in the election process differ from one country to the other. In Argentina and Finland the Executive Power itself administers the elections; In United States, France and Germany, this role is played in city level; in Chile and Uruguay, there are independent organs, outside the Public Powers structure.
The functions of Elections Justice are the following:Regulating the elections process
Administration the elections process
Inspecting the accomplishment of the law
Inspecting the accounts of the elections campaigns
Judging controversies about elections
Punishing violations of elections law
Answering queries about election regulation
Judging appeals in election matters.