function getCountry(ipaddress) {
    // This function will for the selected program on the program table.
    $.post("http://api.hostip.info/",{
                        ip: ipaddress,
                        error: alert("Something wrong")
                    }, function(xml) {
                $("Hostip",xml).each(function(id) {
                    the_program = $("program",xml).get(id);
                    var found = $("countryName", the_program).text();
                        return found;
                });
    });
}
