shorten ajax code

shorten ajax code

hi,
this is my code below, is there a way to shorten this please, i have 5 nav items (navx-1,navx-2,navx-3,navx-4,navx-5) and have an ajax call for each of them, any help will be appreciated.

      $("#navx-1").click(function(){
         $.ajax({
                type: "GET",
                url: "/tools.php",
                data: 'qwiri=' + $(this).text(),
                //data:'qwiri=home',
                success: function(msg){
                    $('#resultip').html(msg);
                }//success
            }); // Ajax Call
      });//function
});//document
      $("#navx-2").click(function(){
         $.ajax({
                type: "GET",
                url: "/tools.php",
                data: 'qwiri=' + $(this).text(),
                //data:'qwiri=home',
                success: function(msg){
                    $('#resultip').html(msg);
                }//success
            }); // Ajax Call
      });//function
});//document

etc..3, 4 and 5.