If, at the time of the opening of any election, or at the time the polls are closed in the case of a judge designated to count the votes, any person appointed or constituted a judge of election shall not be present, or will not act or take the oath to act in such capacity the judge or judges present may appoint some other qualified elector having the same qualifications and who is affiliated with the same political party, as the one refusing to take the oath or refusing to act or serve in his place. If there be no judges of election present, or if they refuse to act, such electors of the precinct as may then be present at the place of election, may fill the places of such judges of election by election from their number. After the polls are open, if any judge becomes ill or if any member of his immediate family becomes ill, such judge may be excused from further attendance, and the remaining judges may appoint some other qualified elector, having the same qualifications who is affiliated with the same political party as the judge excused, to act in his place. The judges so appointed shall have the same power and be subject to the same penalties as the other judges of election.
10 ILCS 5/13-7