<?php
$a_countries = array(
            'af' => 'Afghanistan',
            'al' => 'Albania, People\'s Socialist Republic of',
            'dz' => 'Algeria, People\'s Democratic Republic of',
            'as' => 'American Samoa',
            'ad' => 'Andorra, Principality of',
            'ao' => 'Angola, Republic of',
            'ai' => 'Anguilla',
            'aq' => 'Antarctica (the territory South of 60 deg S)',
            'ag' => 'Antigua and Barbuda',
            'ar' => 'Argentina, Argentine Republic',
            'am' => 'Armenia',
            'aw' => 'Aruba',
            'au' => 'Australia, Commonwealth of',
            'at' => 'Austria, Republic of',
            'az' => 'Azerbaijan, Republic of',
            'bs' => 'Bahamas, Commonwealth of the',
            'bh' => 'Bahrain, Kingdom of',
            'bd' => 'Bangladesh, People\'s Republic of',
            'bb' => 'Barbados',
            'by' => 'Belarus',
            'be' => 'Belgium, Kingdom of',
            'bz' => 'Belize',
            'bj' => 'Benin, People\'s Republic of',
            'bm' => 'Bermuda',
            'bt' => 'Bhutan, Kingdom of',
            'bo' => 'Bolivia, Republic of',
            'ba' => 'Bosnia and Herzegovina',
            'bw' => 'Botswana, Republic of',
            'bv' => 'Bouvet Island (Bouvetoya)',
            'br' => 'Brazil, Federative Republic of',
            'io' => 'British Indian Ocean Territory (Chagos Archipelago)',
            'vg' => 'British Virgin Islands',
            'bn' => 'Brunei Darussalam',
            'bg' => 'Bulgaria, People\'s Republic of',
            'bf' => 'Burkina Faso',
            'bi' => 'Burundi, Republic of',
            'kh' => 'Cambodia, Kingdom of',
            'cm' => 'Cameroon, United Republic of',
            'ca' => 'Canada',
            'cv' => 'Cape Verde, Republic of',
            'ky' => 'Cayman Islands',
            'cf' => 'Central African Republic',
            'td' => 'Chad, Republic of',
            'cl' => 'Chile, Republic of',
            'cn' => 'China, People\'s Republic of',
            'cx' => 'Christmas Island',
            'cc' => 'Cocos (Keeling) Islands',
            'co' => 'Colombia, Republic of',
            'km' => 'Comoros, Federal and Islamic Republic of',
            'cd' => 'Congo, Democratic Republic of',
            'cg' => 'Congo, People\'s Republic of',
            'ck' => 'Cook Islands',
            'cr' => 'Costa Rica, Republic of',
            'ci' => 'Cote D\'Ivoire, Ivory Coast, Republic of the',
            'cu' => 'Cuba, Republic of',
            'cy' => 'Cyprus, Republic of',
            'cz' => 'Czech Republic',
            'dk' => 'Denmark, Kingdom of',
            'dj' => 'Djibouti, Republic of',
            'dm' => 'Dominica, Commonwealth of',
            'do' => 'Dominican Republic',
            'tl' => 'Timor-Leste',
            'ec' => 'Ecuador, Republic of',
            'eg' => 'Egypt, Arab Republic of',
            'sv' => 'El Salvador, Republic of',
            'gq' => 'Equatorial Guinea, Republic of',
            'er' => 'Eritrea',
            'ee' => 'Estonia',
            'et' => 'Ethiopia',
            'fo' => 'Faeroe Islands',
            'fk' => 'Falkland Islands (Malvinas)',
            'fj' => 'Fiji, Republic of the Fiji Islands',
            'fi' => 'Finland, Republic of',
            'fr' => 'France, French Republic',
            'gf' => 'French Guiana',
            'pf' => 'French Polynesia',
            'tf' => 'French Southern Territories',
            'ga' => 'Gabon, Gabonese Republic',
            'gm' => 'Gambia, Republic of the',
            'ge' => 'Georgia',
            'de' => 'Germany',
            'gh' => 'Ghana, Republic of',
            'gi' => 'Gibraltar',
            'gr' => 'Greece, Hellenic Republic',
            'gl' => 'Greenland',
            'gd' => 'Grenada',
            'gp' => 'Guadaloupe',
            'gu' => 'Guam',
            'gt' => 'Guatemala, Republic of',
            'gn' => 'Guinea, Revolutionary People\'s Rep\'c of',
            'gw' => 'Guinea-Bissau, Republic of',
            'gy' => 'Guyana, Republic of',
            'ht' => 'Haiti, Republic of',
            'hm' => 'Heard and McDonald Islands',
            'va' => 'Holy See (Vatican City State)',
            'hn' => 'Honduras, Republic of',
            'hk' => 'Hong Kong, Special Administrative Region of China',
            'hr' => 'Hrvatska (Croatia)',
            'hu' => 'Hungary, Hungarian People\'s Republic',
            'is' => 'Iceland, Republic of',
            'in' => 'India, Republic of',
            'id' => 'Indonesia, Republic of',
            'ir' => 'Iran, Islamic Republic of',
            'iq' => 'Iraq, Republic of',
            'ie' => 'Ireland',
            'il' => 'Israel, State of',
            'it' => 'Italy, Italian Republic',
            'jm' => 'Jamaica',
            'jp' => 'Japan',
            'jo' => 'Jordan, Hashemite Kingdom of',
            'kz' => 'Kazakhstan, Republic of',
            'ke' => 'Kenya, Republic of',
            'ki' => 'Kiribati, Republic of',
            'kp' => 'Korea, Democratic People\'s Republic of',
            'kr' => 'Korea, Republic of',
            'kw' => 'Kuwait, State of',
            'kg' => 'Kyrgyz Republic',
            'la' => 'Lao People\'s Democratic Republic',
            'lv' => 'Latvia',
            'lb' => 'Lebanon, Lebanese Republic',
            'ls' => 'Lesotho, Kingdom of',
            'lr' => 'Liberia, Republic of',
            'ly' => 'Libyan Arab Jamahiriya',
            'li' => 'Liechtenstein, Principality of',
            'lt' => 'Lithuania',
            'lu' => 'Luxembourg, Grand Duchy of',
            'mo' => 'Macao, Special Administrative Region of China',
            'mk' => 'Macedonia, the former Yugoslav Republic of',
            'mg' => 'Madagascar, Republic of',
            'mw' => 'Malawi, Republic of',
            'my' => 'Malaysia',
            'mv' => 'Maldives, Republic of',
            'ml' => 'Mali, Republic of',
            'mt' => 'Malta, Republic of',
            'mh' => 'Marshall Islands',
            'mq' => 'Martinique',
            'mr' => 'Mauritania, Islamic Republic of',
            'mu' => 'Mauritius',
            'yt' => 'Mayotte',
            'mx' => 'Mexico, United Mexican States',
            'fm' => 'Micronesia, Federated States of',
            'md' => 'Moldova, Republic of',
            'mc' => 'Monaco, Principality of',
            'mn' => 'Mongolia, Mongolian People\'s Republic',
            'ms' => 'Montserrat',
            'ma' => 'Morocco, Kingdom of',
            'mz' => 'Mozambique, People\'s Republic of',
            'mm' => 'Myanmar',
            'na' => 'Namibia',
            'nr' => 'Nauru, Republic of',
            'np' => 'Nepal, Kingdom of',
            'an' => 'Netherlands Antilles',
            'nl' => 'Netherlands, Kingdom of the',
            'nc' => 'New Caledonia',
            'nz' => 'New Zealand',
            'ni' => 'Nicaragua, Republic of',
            'ne' => 'Niger, Republic of the',
            'ng' => 'Nigeria, Federal Republic of',
            'nu' => 'Niue, Republic of',
            'nf' => 'Norfolk Island',
            'mp' => 'Northern Mariana Islands',
            'no' => 'Norway, Kingdom of',
            'om' => 'Oman, Sultanate of',
            'pk' => 'Pakistan, Islamic Republic of',
            'pw' => 'Palau',
            'ps' => 'Palestinian Territory, Occupied',
            'pa' => 'Panama, Republic of',
            'pg' => 'Papua New Guinea',
            'py' => 'Paraguay, Republic of',
            'pe' => 'Peru, Republic of',
            'ph' => 'Philippines, Republic of the',
            'pn' => 'Pitcairn Island',
            'pl' => 'Poland, Polish People\'s Republic',
            'pt' => 'Portugal, Portuguese Republic',
            'pr' => 'Puerto Rico',
            'qa' => 'Qatar, State of',
            're' => 'Reunion',
            'ro' => 'Romania, Socialist Republic of',
            'ru' => 'Russian Federation',
            'rw' => 'Rwanda, Rwandese Republic',
            'sh' => 'St. Helena',
            'kn' => 'St. Kitts and Nevis',
            'lc' => 'St. Lucia',
            'pm' => 'St. Pierre and Miquelon',
            'vc' => 'St. Vincent and the Grenadines',
            'ws' => 'Samoa, Independent State of',
            'sm' => 'San Marino, Republic of',
            'st' => 'Sao Tome and Principe, Democratic Republic of',
            'sa' => 'Saudi Arabia, Kingdom of',
            'sn' => 'Senegal, Republic of',
            'sc' => 'Seychelles, Republic of',
            'sl' => 'Sierra Leone, Republic of',
            'sg' => 'Singapore, Republic of',
            'sk' => 'Slovakia (Slovak Republic)',
            'si' => 'Slovenia',
            'sb' => 'Solomon Islands',
            'so' => 'Somalia, Somali Republic',
            'za' => 'South Africa, Republic of',
            'gs' => 'South Georgia and the South Sandwich Islands',
            'es' => 'Spain, Spanish State',
            'lk' => 'Sri Lanka, Democratic Socialist Republic of',
            'sd' => 'Sudan, Democratic Republic of the',
            'sr' => 'Suriname, Republic of',
            'sg' => 'Svalbard & Jan Mayen Islands',
            'sz' => 'Swaziland, Kingdom of',
            'se' => 'Sweden, Kingdom of',
            'ch' => 'Switzerland, Swiss Confederation',
            'sy' => 'Syrian Arab Republic',
            'tw' => 'Taiwan, Province of China',
            'tj' => 'Tajikistan',
            'tz' => 'Tanzania, United Republic of',
            'th' => 'Thailand, Kingdom of',
            'tg' => 'Togo, Togolese Republic',
            'tk' => 'Tokelau (Tokelau Islands)',
            'to' => 'Tonga, Kingdom of',
            'tt' => 'Trinidad and Tobago, Republic of',
            'tn' => 'Tunisia, Republic of',
            'tr' => 'Turkey, Republic of',
            'tm' => 'Turkmenistan',
            'tc' => 'Turks and Caicos Islands',
            'tv' => 'Tuvalu',
            'vi' => 'US Virgin Islands',
            'ug' => 'Uganda, Republic of',
            'ua' => 'Ukraine',
            'ae' => 'United Arab Emirates',
            'gb' => 'United Kingdom of Great Britain & N. Ireland',
            'um' => 'United States Minor Outlying Islands',
            'us' => 'United States of America',
            'uy' => 'Uruguay, Eastern Republic of',
            'uz' => 'Uzbekistan',
            'vu' => 'Vanuatu',
            've' => 'Venezuela, Bolivarian Republic of',
            'vn' => 'Viet Nam, Socialist Republic of',
            'wf' => 'Wallis and Futuna Islands',
            'eh' => 'Western Sahara',
            'ye' => 'Yemen',
            'yu' => 'Yugoslavia, Socialist Federal Republic of',
            'zm' => 'Zambia, Republic of',
            'zw' => 'Zimbabwe',
				'xx' => 'Unknown country'
        );
?>