Former United Nations Secretary-General Kurt Waldheim is elected president of Austria.