Created EventSelector function, plased in delegates.php and precincts.php.