function country_continent_array() {
var continent = new Array();
continent['af'] = 'Asia';
continent['al'] = 'Europe';
continent['ag'] = 'Africa';
continent['aq'] = 'Oceania';
continent['an'] = 'Europe';
continent['ao'] = 'Africa';
continent['av'] = 'Central America Caribbean';
continent['ay'] = 'Misc';
continent['ac'] = 'Central America Caribbean';
continent['xq'] = 'Misc';
continent['ar'] = 'South America';
continent['am'] = 'Asia';
continent['aa'] = 'Central America Caribbean';
continent['at'] = 'Oceania';
continent['zh'] = 'Misc';
continent['as'] = 'Oceania';
continent['au'] = 'Europe';
continent['aj'] = 'Asia';
continent['bf'] = 'Central America Caribbean';
continent['ba'] = 'Middle East';
continent['fq'] = 'Oceania';
continent['bg'] = 'Asia';
continent['bb'] = 'Central America Caribbean';
continent['bs'] = 'Africa';
continent['bo'] = 'Europe';
continent['be'] = 'Europe';
continent['bh'] = 'Central America Caribbean';
continent['bn'] = 'Africa';
continent['bd'] = 'North America';
continent['bt'] = 'Asia';
continent['bl'] = 'South America';
continent['bk'] = 'Europe';
continent['bc'] = 'Africa';
continent['bv'] = 'Misc';
continent['br'] = 'South America';
continent['io'] = 'Misc';
continent['vi'] = 'Central America Caribbean';
continent['bx'] = 'Asia';
continent['bu'] = 'Europe';
continent['uv'] = 'Africa';
continent['bm'] = 'Asia';
continent['by'] = 'Africa';
continent['cb'] = 'Asia';
continent['cm'] = 'Africa';
continent['ca'] = 'North America';
continent['cv'] = 'Misc';
continent['cj'] = 'Central America Caribbean';
continent['ct'] = 'Africa';
continent['cd'] = 'Africa';
continent['ci'] = 'South America';
continent['ch'] = 'Asia';
continent['kt'] = 'Asia';
continent['ip'] = 'Misc';
continent['ck'] = 'Asia';
continent['co'] = 'South America';
continent['cn'] = 'Africa';
continent['cg'] = 'Africa';
continent['cf'] = 'Africa';
continent['cw'] = 'Oceania';
continent['cr'] = 'Oceania';
continent['cs'] = 'Central America Caribbean';
continent['iv'] = 'Africa';
continent['hr'] = 'Europe';
continent['cu'] = 'Central America Caribbean';
continent['cy'] = 'Middle East';
continent['ez'] = 'Europe';
continent['da'] = 'Europe';
continent['dj'] = 'Africa';
continent['do'] = 'Central America Caribbean';
continent['dr'] = 'Central America Caribbean';
continent['tt'] = 'Asia';
continent['ec'] = 'South America';
continent['eg'] = 'Africa';
continent['es'] = 'Central America Caribbean';
continent['ek'] = 'Africa';
continent['er'] = 'Africa';
continent['en'] = 'Europe';
continent['et'] = 'Africa';
continent['eu'] = 'Africa';
continent['fk'] = 'South America';
continent['fo'] = 'Europe';
continent['fj'] = 'Oceania';
continent['fi'] = 'Europe';
continent['fr'] = 'Europe';
continent['fg'] = 'South America';
continent['fp'] = 'Oceania';
continent['fs'] = 'Misc';
continent['gb'] = 'Africa';
continent['ga'] = 'Africa';
continent['gz'] = 'Middle East';
continent['gg'] = 'Asia';
continent['gm'] = 'Europe';
continent['gh'] = 'Africa';
continent['gi'] = 'Europe';
continent['go'] = 'Africa';
continent['gr'] = 'Europe';
continent['gl'] = 'North America';
continent['gj'] = 'Central America Caribbean';
continent['gp'] = 'Central America Caribbean';
continent['gq'] = 'Oceania';
continent['gt'] = 'Central America Caribbean';
continent['gk'] = 'Europe';
continent['gv'] = 'Africa';
continent['pu'] = 'Africa';
continent['gy'] = 'South America';
continent['ha'] = 'Central America Caribbean';
continent['hm'] = 'Misc';
continent['vt'] = 'Europe';
continent['ho'] = 'Central America Caribbean';
continent['hk'] = 'Asia';
continent['hq'] = 'Oceania';
continent['hu'] = 'Europe';
continent['ic'] = 'Europe';
continent['in'] = 'Asia';
continent['xo'] = 'Misc';
continent['id'] = 'Asia';
continent['ir'] = 'Middle East';
continent['iz'] = 'Middle East';
continent['ei'] = 'Europe';
continent['is'] = 'Middle East';
continent['it'] = 'Europe';
continent['jm'] = 'Central America Caribbean';
continent['jn'] = 'Misc';
continent['ja'] = 'Asia';
continent['dq'] = 'Oceania';
continent['je'] = 'Europe';
continent['jq'] = 'Oceania';
continent['jo'] = 'Middle East';
continent['ju'] = 'Africa';
continent['kz'] = 'Asia';
continent['ke'] = 'Africa';
continent['kq'] = 'Oceania';
continent['kr'] = 'Oceania';
continent['kn'] = 'Asia';
continent['ks'] = 'Asia';
continent['ku'] = 'Middle East';
continent['kg'] = 'Asia';
continent['la'] = 'Asia';
continent['lg'] = 'Europe';
continent['le'] = 'Middle East';
continent['lt'] = 'Africa';
continent['li'] = 'Africa';
continent['ly'] = 'Africa';
continent['ls'] = 'Europe';
continent['lh'] = 'Europe';
continent['lu'] = 'Europe';
continent['mc'] = 'Asia';
continent['mk'] = 'Europe';
continent['ma'] = 'Africa';
continent['mi'] = 'Africa';
continent['my'] = 'Asia';
continent['mv'] = 'Asia';
continent['ml'] = 'Africa';
continent['mt'] = 'Europe';
continent['im'] = 'Europe';
continent['rm'] = 'Oceania';
continent['mb'] = 'Central America Caribbean';
continent['mr'] = 'Africa';
continent['mp'] = 'Africa';
continent['mf'] = 'Africa';
continent['mx'] = 'North America';
continent['fm'] = 'Oceania';
continent['mq'] = 'Oceania';
continent['md'] = 'Europe';
continent['mn'] = 'Europe';
continent['mg'] = 'Asia';
continent['mh'] = 'Central America Caribbean';
continent['mo'] = 'Africa';
continent['mz'] = 'Africa';
continent['wa'] = 'Africa';
continent['nr'] = 'Oceania';
continent['bq'] = 'Central America Caribbean';
continent['np'] = 'Asia';
continent['nl'] = 'Europe';
continent['nt'] = 'Central America Caribbean';
continent['nc'] = 'Oceania';
continent['nz'] = 'Oceania';
continent['nu'] = 'Central America Caribbean';
continent['ng'] = 'Africa';
continent['ni'] = 'Africa';
continent['ne'] = 'Oceania';
continent['nf'] = 'Oceania';
continent['cq'] = 'Oceania';
continent['no'] = 'Europe';
continent['mu'] = 'Middle East';
continent['zn'] = 'Misc';
continent['pk'] = 'Asia';
continent['ps'] = 'Oceania';
continent['lq'] = 'Oceania';
continent['pm'] = 'Central America Caribbean';
continent['pp'] = 'Oceania';
continent['pf'] = 'Asia';
continent['pa'] = 'South America';
continent['pe'] = 'South America';
continent['rp'] = 'Asia';
continent['pc'] = 'Oceania';
continent['pl'] = 'Europe';
continent['po'] = 'Europe';
continent['rq'] = 'Central America Caribbean';
continent['qa'] = 'Middle East';
continent['re'] = 'Africa';
continent['ro'] = 'Europe';
continent['rs'] = 'Europe';
continent['rw'] = 'Africa';
continent['sh'] = 'Africa';
continent['sc'] = 'Central America Caribbean';
continent['st'] = 'Central America Caribbean';
continent['sb'] = 'North America';
continent['vc'] = 'Central America Caribbean';
continent['ws'] = 'Oceania';
continent['sm'] = 'Europe';
continent['tp'] = 'Africa';
continent['sa'] = 'Middle East';
continent['sg'] = 'Africa';
continent['yi'] = 'Europe';
continent['rb'] = 'Europe';
continent['mj'] = 'Europe';
continent['se'] = 'Africa';
continent['sl'] = 'Africa';
continent['sn'] = 'Asia';
continent['lo'] = 'Europe';
continent['si'] = 'Europe';
continent['bp'] = 'Oceania';
continent['so'] = 'Africa';
continent['sf'] = 'Africa';
continent['sx'] = 'Misc';
continent['oo'] = 'Misc';
continent['sp'] = 'Europe';
continent['pg'] = 'Asia';
continent['ce'] = 'Asia';
continent['su'] = 'Africa';
continent['ns'] = 'South America';
continent['sv'] = 'Europe';
continent['wz'] = 'Africa';
continent['sw'] = 'Europe';
continent['sz'] = 'Europe';
continent['sy'] = 'Middle East';
continent['tw'] = 'Asia';
continent['ti'] = 'Asia';
continent['tz'] = 'Africa';
continent['th'] = 'Asia';
continent['to'] = 'Africa';
continent['tl'] = 'Oceania';
continent['tn'] = 'Oceania';
continent['td'] = 'Central America Caribbean';
continent['te'] = 'Africa';
continent['ts'] = 'Africa';
continent['tu'] = 'Middle East';
continent['tx'] = 'Asia';
continent['tk'] = 'Central America Caribbean';
continent['tv'] = 'Oceania';
continent['ug'] = 'Africa';
continent['up'] = 'Europe';
continent['tc'] = 'Middle East';
continent['uk'] = 'Europe';
continent['us'] = 'North America';
continent['uy'] = 'South America';
continent['uz'] = 'Asia';
continent['nh'] = 'Oceania';
continent['ve'] = 'South America';
continent['vm'] = 'Asia';
continent['vq'] = 'Central America Caribbean';
continent['wq'] = 'Oceania';
continent['wf'] = 'Oceania';
continent['we'] = 'Middle East';
continent['wi'] = 'Africa';
continent['xx'] = 'Misc';
continent['ym'] = 'Middle East';
continent['za'] = 'Africa';
continent['zi'] = 'Africa';

return continent;

}


function country_array() {
var country_codes= new Array();
country_codes['afghanistan'] = 'af';
country_codes['albania'] = 'al';
country_codes['algeria'] = 'ag';
country_codes['american-samoa'] = 'aq';
country_codes['andorra'] = 'an';
country_codes['angola'] = 'ao';
country_codes['anguilla'] = 'av';
country_codes['antarctica'] = 'ay';
country_codes['antigua-and-barbuda'] = 'ac';
country_codes['argentina'] = 'ar';
country_codes['armenia'] = 'am';
country_codes['aruba'] = 'aa';
country_codes['ashmore-and-cartier-islands'] = 'at';
country_codes['australia'] = 'as';
country_codes['austria'] = 'au';
country_codes['azerbaijan'] = 'aj';
country_codes['bahamas'] = 'bf';
country_codes['bahrain'] = 'ba';
country_codes['baker-island'] = 'fq';
country_codes['bangladesh'] = 'bg';
country_codes['barbados'] = 'bb';
country_codes['bassas-da-india'] = 'bs';
country_codes['belarus'] = 'bo';
country_codes['belgium'] = 'be';
country_codes['belize'] = 'bh';
country_codes['benin'] = 'bn';
country_codes['bermuda'] = 'bd';
country_codes['bhutan'] = 'bt';
country_codes['bolivia'] = 'bl';
country_codes['bosnia-herzegovina'] = 'bk';
country_codes['botswana'] = 'bc';
country_codes['bouvet-island'] = 'bv';
country_codes['brazil'] = 'br';
country_codes['british-virgin-islands'] = 'vi';
country_codes['british-indian-ocean-territory'] =  'io';
country_codes['brunei'] = 'bx';
country_codes['bulgaria'] = 'bu';
country_codes['burkina-faso'] = 'uv';
country_codes['burma'] = 'bm';
country_codes['burundi'] = 'by';
country_codes['cambodia'] = 'cb';
country_codes['cameroon'] = 'cm';
country_codes['canada'] = 'ca';
country_codes['cape-verde'] = 'cv';
country_codes['cayman-islands'] = 'cj';
country_codes['central-african-republic'] = 'ct';
country_codes['chad'] = 'cd';
country_codes['chile'] = 'ci';
country_codes['china'] = 'ch';
country_codes['christmas-island'] = 'kt';
country_codes['clipperton-island'] = 'ip';
country_codes['cocos-islands'] = 'ck';
country_codes['colombia'] = 'co';
country_codes['comoros'] = 'cn';
country_codes['congo-dem'] = 'cg';
country_codes['congo-rep'] = 'cf';
country_codes['cook-islands'] = 'cw';
country_codes['coral-sea-islands'] = 'cr';
country_codes['costa-rica'] = 'cs';
country_codes['cote-d-ivoire'] = 'iv';
country_codes['croatia'] = 'hr';
country_codes['cuba'] = 'cu';
country_codes['cyprus'] = 'cy';
country_codes['czech-republic'] = 'ez';
country_codes['denmark'] = 'da';
country_codes['djibouti'] = 'dj';
country_codes['dominica'] = 'do';
country_codes['dominican-republic'] = 'dr';
country_codes['east-timor'] = 'tt';
country_codes['ecuador'] = 'ec';
country_codes['egypt'] = 'eg';
country_codes['el-salvador'] = 'es';
country_codes['equatorial-guinea'] = 'ek';
country_codes['eritrea'] = 'er';
country_codes['estonia'] = 'en';
country_codes['ethiopia'] = 'et';
country_codes['europa-island'] = 'eu';
country_codes['falkland-islands'] = 'fk';
country_codes['faroe-islands'] = 'fo';
country_codes['fiji'] = 'fj';
country_codes['finland'] = 'fi';
country_codes['france'] = 'fr';
country_codes['french-guiana'] = 'fg';
country_codes['french-polynesia'] = 'fp';
country_codes['french-southern-and-antarctic-lands'] = 'fs';
country_codes['gabon'] = 'gb';
country_codes['gambia'] = 'ga';
country_codes['gaza-strip'] = 'gz';
country_codes['georgia'] = 'gg';
country_codes['germany'] = 'gm';
country_codes['ghana'] = 'gh';
country_codes['gibraltar'] = 'gi';
country_codes['glorioso-islands'] = 'go';
country_codes['greece'] = 'gr';
country_codes['greenland'] = 'gl';
country_codes['grenada'] = 'gj';
country_codes['guadeloupe'] = 'gp';
country_codes['guam'] = 'gq';
country_codes['guatemala'] = 'gt';
country_codes['guernsey'] = 'gk';
country_codes['guinea'] = 'gv';
country_codes['guinea-bissau'] = 'pu';
country_codes['guyana'] = 'gy';
country_codes['haiti'] = 'ha';
country_codes['heard-island-and-mcdonald-islands'] = 'hm';
country_codes['holy-see'] = 'vt';
country_codes['honduras'] = 'ho';
country_codes['hong-kong'] = 'hk';
country_codes['howland-island'] = 'hq';
country_codes['hungary'] = 'hu';
country_codes['iceland'] = 'ic';
country_codes['india'] = 'in';
country_codes['indonesia'] = 'id';
country_codes['iran'] = 'ir';
country_codes['iraq'] = 'iz';
country_codes['ireland'] = 'ei';
country_codes['israel'] = 'is';
country_codes['italy'] = 'it';
country_codes['jamaica'] = 'jm';
country_codes['jan-mayen'] = 'jn';
country_codes['japan'] = 'ja';
country_codes['jarvis-island'] = 'dq';
country_codes['jersey'] = 'je';
country_codes['johnston-atoll'] = 'jq';
country_codes['jordan'] = 'jo';
country_codes['juan-de-nova-island'] = 'ju';
country_codes['kazakhstan'] = 'kz';
country_codes['kenya'] = 'ke';
country_codes['kingman-reef'] = 'kq';
country_codes['kiribati'] = 'kr';
country_codes['north-korea'] = 'kn';
country_codes['south-korea'] = 'ks';
country_codes['kuwait'] = 'ku';
country_codes['kyrgyzstan'] = 'kg';
country_codes['laos'] = 'la';
country_codes['latvia'] = 'lg';
country_codes['lebanon'] = 'le';
country_codes['lesotho'] = 'lt';
country_codes['liberia'] = 'li';
country_codes['libya'] = 'ly';
country_codes['liechtenstein'] = 'ls';
country_codes['lithuania'] = 'lh';
country_codes['luxembourg'] = 'lu';
country_codes['macau'] = 'mc';
country_codes['macedonia'] = 'mk';
country_codes['madagascar'] = 'ma';
country_codes['malawi'] = 'mi';
country_codes['malaysia'] = 'my';
country_codes['maldives'] = 'mv';
country_codes['mali'] = 'ml';
country_codes['malta'] = 'mt';
country_codes['isle-of-man'] = 'im';
country_codes['marshall-islands'] = 'rm';
country_codes['martinique'] = 'mb';
country_codes['mauritania'] = 'mr';
country_codes['mauritius'] = 'mp';
country_codes['mayotte'] = 'mf';
country_codes['mexico'] = 'mx';
country_codes['micronesia'] = 'fm';
country_codes['midway-islands'] = 'mq';
country_codes['moldova'] = 'md';
country_codes['monaco'] = 'mn';
country_codes['mongolia'] = 'mg';
country_codes['montenegro'] = 'mj';
country_codes['montserrat'] = 'mh';
country_codes['morocco'] = 'mo';
country_codes['mozambique'] = 'mz';
country_codes['namibia'] = 'wa';
country_codes['nauru'] = 'nr';
country_codes['navassa-island'] = 'bq';
country_codes['nepal'] = 'np';
country_codes['netherlands'] = 'nl';
country_codes['netherlands-antilles'] = 'nt';
country_codes['new-caledonia'] = 'nc';
country_codes['new-zealand'] = 'nz';
country_codes['nicaragua'] = 'nu';
country_codes['niger'] = 'ng';
country_codes['nigeria'] = 'ni';
country_codes['niue'] = 'ne';
country_codes['norfolk-island'] = 'nf';
country_codes['northern-mariana-islands'] = 'cq';
country_codes['norway'] = 'no';
country_codes['oman'] = 'mu';
country_codes['pakistan'] = 'pk';
country_codes['palau'] = 'ps';
country_codes['palmyra-atoll'] = 'lq';
country_codes['panama'] = 'pm';
country_codes['papua-new-guinea'] = 'pp';
country_codes['paracel-islands'] = 'pf';
country_codes['paraguay'] = 'pa';
country_codes['peru'] = 'pe';
country_codes['philippines'] = 'rp';
country_codes['pitcairn-islands'] = 'pc';
country_codes['poland'] = 'pl';
country_codes['portugal'] = 'po';
country_codes['puerto-rico'] = 'rq';
country_codes['qatar'] = 'qa';
country_codes['reunion'] = 're';
country_codes['romania'] = 'ro';
country_codes['russia'] = 'rs';
country_codes['rwanda'] = 'rw';
country_codes['saint-helena'] = 'sh';
country_codes['saint-kitts-and-nevis'] = 'sc';
country_codes['saint-lucia'] = 'st';
country_codes['saint-pierre-and-miquelon'] = 'sb';
country_codes['saint-vincent-and-the-grenadines'] = 'vc';
country_codes['samoa'] = 'ws';
country_codes['san-marino'] = 'sm';
country_codes['sao-tome-and-principe'] = 'tp';
country_codes['saudi-arabia'] = 'sa';
country_codes['senegal'] = 'sg';
country_codes['serbia'] = 'rb';
country_codes['seychelles'] = 'se';
country_codes['sierra-leone'] = 'sl';
country_codes['singapore'] = 'sn';
country_codes['slovakia'] = 'lo';
country_codes['slovenia'] = 'si';
country_codes['solomon-islands'] = 'bp';
country_codes['somalia'] = 'so';
country_codes['south-africa'] = 'sf';
country_codes['south-georgia'] = 'sx';
country_codes['spain'] = 'sp';
country_codes['spratly-islands'] = 'pg';
country_codes['sri-lanka'] = 'ce';
country_codes['sudan'] = 'su';
country_codes['suriname'] = 'ns';
country_codes['svalbard'] = 'sv';
country_codes['swaziland'] = 'wz';
country_codes['sweden'] = 'sw';
country_codes['switzerland'] = 'sz';
country_codes['syria'] = 'sy';
country_codes['taiwan'] = 'tw';
country_codes['tajikistan'] = 'ti';
country_codes['tanzania'] = 'tz';
country_codes['thailand'] = 'th';
country_codes['togo'] = 'to';
country_codes['tokelau'] = 'tl';
country_codes['tonga'] = 'tn';
country_codes['trinidad-and-tobago'] = 'td';
country_codes['tromelin-island'] = 'te';
country_codes['tunisia'] = 'ts';
country_codes['turkey'] = 'tu';
country_codes['turkmenistan'] = 'tx';
country_codes['turks-and-caicos-islands'] = 'tk';
country_codes['tuvalu'] = 'tv';
country_codes['uganda'] = 'ug';
country_codes['ukraine'] = 'up';
country_codes['united-arab-emirates'] = 'tc';
country_codes['united-kingdom'] = 'uk';
country_codes['united-states'] = 'us';
country_codes['uruguay'] = 'uy';
country_codes['uzbekistan'] = 'uz';
country_codes['vanuatu'] = 'nh';
country_codes['venezuela'] = 've';
country_codes['vietnam'] = 'vm';
country_codes['virgin-islands'] = 'vq';
country_codes['wake-island'] = 'wq';
country_codes['wallis-and-futuna'] = 'wf';
country_codes['west-bank'] = 'we';
country_codes['western-sahara'] = 'wi';
country_codes['yemen'] = 'ym';
country_codes['zambia'] = 'za';
country_codes['zimbabwe'] = 'zi';

return country_codes;
}

function country_codes_to_key() {
var country_cc_codes = new Array();
country_cc_codes['af'] = 'afghanistan';
country_cc_codes['al'] = 'albania';
country_cc_codes['ag'] = 'algeria';
country_cc_codes['aq'] = 'american-samoa';
country_cc_codes['an'] = 'andorra';
country_cc_codes['ao'] = 'angola';
country_cc_codes['av'] = 'anguilla';
country_cc_codes['ay'] = 'antarctica';
country_cc_codes['ac'] = 'antigua-and-barbuda';
country_cc_codes['ar'] = 'argentina';
country_cc_codes['am'] = 'armenia';
country_cc_codes['aa'] = 'aruba';
country_cc_codes['at'] = 'ashmore-and-cartier-islands';
country_cc_codes['as'] = 'australia';
country_cc_codes['au'] = 'austria';
country_cc_codes['aj'] = 'azerbaijan';
country_cc_codes['bf'] = 'bahamas';
country_cc_codes['ba'] = 'bahrain';
country_cc_codes['fq'] = 'baker-island';
country_cc_codes['bg'] = 'bangladesh';
country_cc_codes['bb'] = 'barbados';
country_cc_codes['bs'] = 'bassas-da-india';
country_cc_codes['bo'] = 'belarus';
country_cc_codes['be'] = 'belgium';
country_cc_codes['bh'] = 'belize';
country_cc_codes['bn'] = 'benin';
country_cc_codes['bd'] = 'bermuda';
country_cc_codes['bt'] = 'bhutan';
country_cc_codes['bl'] = 'bolivia';
country_cc_codes['bk'] = 'bosnia-herzegovina';
country_cc_codes['bc'] = 'botswana';
country_cc_codes['bv'] = 'bouvet-island';
country_cc_codes['br'] = 'brazil';
country_cc_codes['vi'] = 'british-virgin-islands';
country_cc_codes['io'] = 'british-indian-ocean-territory';
country_cc_codes['bx'] = 'brunei';
country_cc_codes['bu'] = 'bulgaria';
country_cc_codes['uv'] = 'burkina-faso';
country_cc_codes['bm'] = 'burma';
country_cc_codes['by'] = 'burundi';
country_cc_codes['cb'] = 'cambodia';
country_cc_codes['cm'] = 'cameroon';
country_cc_codes['ca'] = 'canada';
country_cc_codes['cv'] = 'cape-verde';
country_cc_codes['cj'] = 'cayman-islands';
country_cc_codes['ct'] = 'central-african-republic';
country_cc_codes['cd'] = 'chad';
country_cc_codes['ci'] = 'chile';
country_cc_codes['ch'] = 'china';
country_cc_codes['kt'] = 'christmas-island';
country_cc_codes['ip'] = 'clipperton-island';
country_cc_codes['ck'] = 'cocos-islands';
country_cc_codes['co'] = 'colombia';
country_cc_codes['cn'] = 'comoros';
country_cc_codes['cg'] = 'congo-dem';
country_cc_codes['cf'] = 'congo-rep';
country_cc_codes['cw'] = 'cook-islands';
country_cc_codes['cr'] = 'coral-sea-islands';
country_cc_codes['cs'] = 'costa-rica';
country_cc_codes['iv'] = 'cote-d-ivoire';
country_cc_codes['hr'] = 'croatia';
country_cc_codes['cu'] = 'cuba';
country_cc_codes['cy'] = 'cyprus';
country_cc_codes['ez'] = 'czech-republic';
country_cc_codes['da'] = 'denmark';
country_cc_codes['dj'] = 'djibouti';
country_cc_codes['do'] = 'dominica';
country_cc_codes['dr'] = 'dominican-republic';
country_cc_codes['tt'] = 'east-timor';
country_cc_codes['ec'] = 'ecuador';
country_cc_codes['eg'] = 'egypt';
country_cc_codes['es'] = 'el-salvador';
country_cc_codes['ek'] = 'equatorial-guinea';
country_cc_codes['er'] = 'eritrea';
country_cc_codes['en'] = 'estonia';
country_cc_codes['et'] = 'ethiopia';
country_cc_codes['eu'] = 'europa-island';
country_cc_codes['fk'] = 'falkland-islands';
country_cc_codes['fo'] = 'faroe-islands';
country_cc_codes['fj'] = 'fiji';
country_cc_codes['fi'] = 'finland';
country_cc_codes['fr'] = 'france';
country_cc_codes['fg'] = 'french-guiana';
country_cc_codes['fp'] = 'french-polynesia';
country_cc_codes['fs'] = 'french-southern-and-antarctic-lands';
country_cc_codes['gb'] = 'gabon';
country_cc_codes['ga'] = 'gambia';
country_cc_codes['gz'] = 'gaza-strip';
country_cc_codes['gg'] = 'georgia';
country_cc_codes['gm'] = 'germany';
country_cc_codes['gh'] = 'ghana';
country_cc_codes['gi'] = 'gibraltar';
country_cc_codes['go'] = 'glorioso-islands';
country_cc_codes['gr'] = 'greece';
country_cc_codes['gl'] = 'greenland';
country_cc_codes['gj'] = 'grenada';
country_cc_codes['gp'] = 'guadeloupe';
country_cc_codes['gq'] = 'guam';
country_cc_codes['gt'] = 'guatemala';
country_cc_codes['gk'] = 'guernsey';
country_cc_codes['gv'] = 'guinea';
country_cc_codes['pu'] = 'guinea-bissau';
country_cc_codes['gy'] = 'guyana';
country_cc_codes['ha'] = 'haiti';
country_cc_codes['hm'] = 'heard-island-and-mcdonald-islands';
country_cc_codes['vt'] = 'holy-see';
country_cc_codes['ho'] = 'honduras';
country_cc_codes['hk'] = 'hong-kong';
country_cc_codes['hq'] = 'howland-island';
country_cc_codes['hu'] = 'hungary';
country_cc_codes['ic'] = 'iceland';
country_cc_codes['in'] = 'india';
country_cc_codes['id'] = 'indonesia';
country_cc_codes['ir'] = 'iran';
country_cc_codes['iz'] = 'iraq';
country_cc_codes['ei'] = 'ireland';
country_cc_codes['is'] = 'israel';
country_cc_codes['it'] = 'italy';
country_cc_codes['jm'] = 'jamaica';
country_cc_codes['jn'] = 'jan-mayen';
country_cc_codes['ja'] = 'japan';
country_cc_codes['dq'] = 'jarvis-island';
country_cc_codes['je'] = 'jersey';
country_cc_codes['jq'] = 'johnston-atoll';
country_cc_codes['jo'] = 'jordan';
country_cc_codes['ju'] = 'juan-de-nova-island';
country_cc_codes['kz'] = 'kazakhstan';
country_cc_codes['ke'] = 'kenya';
country_cc_codes['kq'] = 'kingman-reef';
country_cc_codes['kr'] = 'kiribati';
country_cc_codes['kn'] = 'north-korea';
country_cc_codes['ks'] = 'south-korea';
country_cc_codes['ku'] = 'kuwait';
country_cc_codes['kg'] = 'kyrgyzstan';
country_cc_codes['la'] = 'laos';
country_cc_codes['lg'] = 'latvia';
country_cc_codes['le'] = 'lebanon';
country_cc_codes['lt'] = 'lesotho';
country_cc_codes['li'] = 'liberia';
country_cc_codes['ly'] = 'libya';
country_cc_codes['ls'] = 'liechtenstein';
country_cc_codes['lh'] = 'lithuania';
country_cc_codes['lu'] = 'luxembourg';
country_cc_codes['mc'] = 'macau';
country_cc_codes['mk'] = 'macedonia';
country_cc_codes['ma'] = 'madagascar';
country_cc_codes['mi'] = 'malawi';
country_cc_codes['my'] = 'malaysia';
country_cc_codes['mv'] = 'maldives';
country_cc_codes['ml'] = 'mali';
country_cc_codes['mt'] = 'malta';
country_cc_codes['im'] = 'isle-of-man';
country_cc_codes['rm'] = 'marshall-islands';
country_cc_codes['mb'] = 'martinique';
country_cc_codes['mr'] = 'mauritania';
country_cc_codes['mp'] = 'mauritius';
country_cc_codes['mf'] = 'mayotte';
country_cc_codes['mx'] = 'mexico';
country_cc_codes['fm'] = 'micronesia';
country_cc_codes['mq'] = 'midway-islands';
country_cc_codes['md'] = 'moldova';
country_cc_codes['mn'] = 'monaco';
country_cc_codes['mg'] = 'mongolia';
country_cc_codes['mj'] = 'montenegro';
country_cc_codes['mh'] = 'montserrat';
country_cc_codes['mo'] = 'morocco';
country_cc_codes['mz'] = 'mozambique';
country_cc_codes['wa'] = 'namibia';
country_cc_codes['nr'] = 'nauru';
country_cc_codes['bq'] = 'navassa-island';
country_cc_codes['np'] = 'nepal';
country_cc_codes['nl'] = 'netherlands';
country_cc_codes['nt'] = 'netherlands-antilles';
country_cc_codes['nc'] = 'new-caledonia';
country_cc_codes['nz'] = 'new-zealand';
country_cc_codes['nu'] = 'nicaragua';
country_cc_codes['ng'] = 'niger';
country_cc_codes['ni'] = 'nigeria';
country_cc_codes['ne'] = 'niue';
country_cc_codes['nf'] = 'norfolk-island';
country_cc_codes['cq'] = 'northern-mariana-islands';
country_cc_codes['no'] = 'norway';
country_cc_codes['mu'] = 'oman';
country_cc_codes['pk'] = 'pakistan';
country_cc_codes['ps'] = 'palau';
country_cc_codes['lq'] = 'palmyra-atoll';
country_cc_codes['pm'] = 'panama';
country_cc_codes['pp'] = 'papua-new-guinea';
country_cc_codes['pf'] = 'paracel-islands';
country_cc_codes['pa'] = 'paraguay';
country_cc_codes['pe'] = 'peru';
country_cc_codes['rp'] = 'philippines';
country_cc_codes['pc'] = 'pitcairn-islands';
country_cc_codes['pl'] = 'poland';
country_cc_codes['po'] = 'portugal';
country_cc_codes['rq'] = 'puerto-rico';
country_cc_codes['qa'] = 'qatar';
country_cc_codes['re'] = 'reunion';
country_cc_codes['ro'] = 'romania';
country_cc_codes['rs'] = 'russia';
country_cc_codes['rw'] = 'rwanda';
country_cc_codes['sh'] = 'saint-helena';
country_cc_codes['sc'] = 'saint-kitts-and-nevis';
country_cc_codes['st'] = 'saint-lucia';
country_cc_codes['sb'] = 'saint-pierre-and-miquelon';
country_cc_codes['vc'] = 'saint-vincent-and-the-grenadines';
country_cc_codes['ws'] = 'samoa';
country_cc_codes['sm'] = 'san-marino';
country_cc_codes['tp'] = 'sao-tome-and-principe';
country_cc_codes['sa'] = 'saudi-arabia';
country_cc_codes['sg'] = 'senegal';
country_cc_codes['rb'] = 'serbia';
country_cc_codes['se'] = 'seychelles';
country_cc_codes['sl'] = 'sierra-leone';
country_cc_codes['sn'] = 'singapore';
country_cc_codes['lo'] = 'slovakia';
country_cc_codes['si'] = 'slovenia';
country_cc_codes['bp'] = 'solomon-islands';
country_cc_codes['so'] = 'somalia';
country_cc_codes['sf'] = 'south-africa';
country_cc_codes['sx'] = 'south-georgia';
country_cc_codes['sp'] = 'spain';
country_cc_codes['pg'] = 'spratly-islands';
country_cc_codes['ce'] = 'sri-lanka';
country_cc_codes['su'] = 'sudan';
country_cc_codes['ns'] = 'suriname';
country_cc_codes['sv'] = 'svalbard';
country_cc_codes['wz'] = 'swaziland';
country_cc_codes['sw'] = 'sweden';
country_cc_codes['sz'] = 'switzerland';
country_cc_codes['sy'] = 'syria';
country_cc_codes['tw'] = 'taiwan';
country_cc_codes['ti'] = 'tajikistan';
country_cc_codes['tz'] = 'tanzania';
country_cc_codes['th'] = 'thailand';
country_cc_codes['to'] = 'togo';
country_cc_codes['tl'] = 'tokelau';
country_cc_codes['tn'] = 'tonga';
country_cc_codes['td'] = 'trinidad-and-tobago';
country_cc_codes['te'] = 'tromelin-island';
country_cc_codes['ts'] = 'tunisia';
country_cc_codes['tu'] = 'turkey';
country_cc_codes['tx'] = 'turkmenistan';
country_cc_codes['tk'] = 'turks-and-caicos-islands';
country_cc_codes['tv'] = 'tuvalu';
country_cc_codes['ug'] = 'uganda';
country_cc_codes['up'] = 'ukraine';
country_cc_codes['tc'] = 'united-arab-emirates';
country_cc_codes['uk'] = 'united-kingdom';
country_cc_codes['us'] = 'united-states';
country_cc_codes['uy'] = 'uruguay';
country_cc_codes['uz'] = 'uzbekistan';
country_cc_codes['nh'] = 'vanuatu';
country_cc_codes['ve'] = 'venezuela';
country_cc_codes['vm'] = 'vietnam';
country_cc_codes['vq'] = 'virgin-islands';
country_cc_codes['wq'] = 'wake-island';
country_cc_codes['wf'] = 'wallis-and-futuna';
country_cc_codes['we'] = 'west-bank';
country_cc_codes['wi'] = 'western-sahara';
country_cc_codes['ym'] = 'yemen';
country_cc_codes['za'] = 'zambia';
country_cc_codes['zi'] = 'zimbabwe';
return country_cc_codes;
}


function country_codes_to_name() {
var codes_to_country = new Array();
codes_to_country['af'] = 'Afghanistan';
codes_to_country['al'] = 'Albania';
codes_to_country['ag'] = 'Algeria';
codes_to_country['aq'] = 'American Samoa';
codes_to_country['an'] = 'Andorra';
codes_to_country['ao'] = 'Angola';
codes_to_country['av'] = 'Anguilla';
codes_to_country['ay'] = 'Antarctica';
codes_to_country['ac'] = 'Antigua and Barbuda';
codes_to_country['xq'] = 'Arctic Ocean';
codes_to_country['ar'] = 'Argentina';
codes_to_country['am'] = 'Armenia';
codes_to_country['aa'] = 'Aruba';
codes_to_country['at'] = 'Ashmore and Cartier Islands';
codes_to_country['zh'] = 'Atlantic Ocean';
codes_to_country['as'] = 'Australia';
codes_to_country['au'] = 'Austria';
codes_to_country['aj'] = 'Azerbaijan';
codes_to_country['bf'] = 'Bahamas, The';
codes_to_country['ba'] = 'Bahrain';
codes_to_country['fq'] = 'Baker Island';
codes_to_country['bg'] = 'Bangladesh';
codes_to_country['bb'] = 'Barbados';
codes_to_country['bs'] = 'Bassas da India';
codes_to_country['bo'] = 'Belarus';
codes_to_country['be'] = 'Belgium';
codes_to_country['bh'] = 'Belize';
codes_to_country['bn'] = 'Benin';
codes_to_country['bd'] = 'Bermuda';
codes_to_country['bt'] = 'Bhutan';
codes_to_country['bl'] = 'Bolivia';
codes_to_country['bk'] = 'Bosnia and Herzegovina';
codes_to_country['bc'] = 'Botswana';
codes_to_country['bv'] = 'Bouvet Island';
codes_to_country['br'] = 'Brazil';
codes_to_country['io'] = 'British Indian Ocean Territory';
codes_to_country['vi'] = 'British Virgin Islands';
codes_to_country['bx'] = 'Brunei';
codes_to_country['bu'] = 'Bulgaria';
codes_to_country['uv'] = 'Burkina Faso';
codes_to_country['bm'] = 'Burma';
codes_to_country['by'] = 'Burundi';
codes_to_country['cb'] = 'Cambodia';
codes_to_country['cm'] = 'Cameroon';
codes_to_country['ca'] = 'Canada';
codes_to_country['cv'] = 'Cape Verde';
codes_to_country['cj'] = 'Cayman Islands';
codes_to_country['ct'] = 'Central African Republic';
codes_to_country['cd'] = 'Chad';
codes_to_country['ci'] = 'Chile';
codes_to_country['ch'] = 'China';
codes_to_country['kt'] = 'Christmas Island';
codes_to_country['ip'] = 'Clipperton Island';
codes_to_country['ck'] = 'Cocos (Keeling) Islands';
codes_to_country['co'] = 'Colombia';
codes_to_country['cn'] = 'Comoros';
codes_to_country['cg'] = 'Congo, Democratic Republic of the';
codes_to_country['cf'] = 'Congo, Republic of the';
codes_to_country['cw'] = 'Cook Islands';
codes_to_country['cr'] = 'Coral Sea Islands';
codes_to_country['cs'] = 'Costa Rica';
codes_to_country['iv'] = 'Cote d\'Ivoire';
codes_to_country['hr'] = 'Croatia';
codes_to_country['cu'] = 'Cuba';
codes_to_country['cy'] = 'Cyprus';
codes_to_country['ez'] = 'Czech Republic';
codes_to_country['da'] = 'Denmark';
codes_to_country['dj'] = 'Djibouti';
codes_to_country['do'] = 'Dominica';
codes_to_country['dr'] = 'Dominican Republic';
codes_to_country['tt'] = 'East Timor';
codes_to_country['ec'] = 'Ecuador';
codes_to_country['eg'] = 'Egypt';
codes_to_country['es'] = 'El Salvador';
codes_to_country['ek'] = 'Equatorial Guinea';
codes_to_country['er'] = 'Eritrea';
codes_to_country['en'] = 'Estonia';
codes_to_country['et'] = 'Ethiopia';
codes_to_country['eu'] = 'Europa Island';
codes_to_country['fk'] = 'Falkland Islands';
codes_to_country['fo'] = 'Faroe Islands';
codes_to_country['fj'] = 'Fiji';
codes_to_country['fi'] = 'Finland';
codes_to_country['fr'] = 'France';
codes_to_country['fg'] = 'French Guiana';
codes_to_country['fp'] = 'French Polynesia';
codes_to_country['fs'] = 'French Southern and Antarctic Lands';
codes_to_country['gb'] = 'Gabon';
codes_to_country['ga'] = 'Gambia, The';
codes_to_country['gz'] = 'Gaza Strip';
codes_to_country['gg'] = 'Georgia';
codes_to_country['gm'] = 'Germany';
codes_to_country['gh'] = 'Ghana';
codes_to_country['gi'] = 'Gibraltar';
codes_to_country['go'] = 'Glorioso Islands';
codes_to_country['gr'] = 'Greece';
codes_to_country['gl'] = 'Greenland';
codes_to_country['gj'] = 'Grenada';
codes_to_country['gp'] = 'Guadeloupe';
codes_to_country['gq'] = 'Guam';
codes_to_country['gt'] = 'Guatemala';
codes_to_country['gk'] = 'Guernsey';
codes_to_country['gv'] = 'Guinea';
codes_to_country['pu'] = 'Guinea-Bissau';
codes_to_country['gy'] = 'Guyana';
codes_to_country['ha'] = 'Haiti';
codes_to_country['hm'] = 'Heard Island and McDonald Islands';
codes_to_country['vt'] = 'Holy See (Vatican City)';
codes_to_country['ho'] = 'Honduras';
codes_to_country['hk'] = 'Hong Kong';
codes_to_country['hq'] = 'Howland Island';
codes_to_country['hu'] = 'Hungary';
codes_to_country['ic'] = 'Iceland';
codes_to_country['in'] = 'India';
codes_to_country['xo'] = 'Indian Ocean';
codes_to_country['id'] = 'Indonesia';
codes_to_country['ir'] = 'Iran';
codes_to_country['iz'] = 'Iraq';
codes_to_country['ei'] = 'Ireland';
codes_to_country['is'] = 'Israel';
codes_to_country['it'] = 'Italy';
codes_to_country['jm'] = 'Jamaica';
codes_to_country['jn'] = 'Jan Mayen';
codes_to_country['ja'] = 'Japan';
codes_to_country['dq'] = 'Jarvis Island';
codes_to_country['je'] = 'Jersey';
codes_to_country['jq'] = 'Johnston Atoll';
codes_to_country['jo'] = 'Jordan';
codes_to_country['ju'] = 'Juan de Nova Island';
codes_to_country['kz'] = 'Kazakhstan';
codes_to_country['ke'] = 'Kenya';
codes_to_country['kq'] = 'Kingman Reef';
codes_to_country['kr'] = 'Kiribati';
codes_to_country['kn'] = 'Korea, North';
codes_to_country['ks'] = 'Korea, South';
codes_to_country['ku'] = 'Kuwait';
codes_to_country['kg'] = 'Kyrgyzstan';
codes_to_country['la'] = 'Laos';
codes_to_country['lg'] = 'Latvia';
codes_to_country['le'] = 'Lebanon';
codes_to_country['lt'] = 'Lesotho';
codes_to_country['li'] = 'Liberia';
codes_to_country['ly'] = 'Libya';
codes_to_country['ls'] = 'Liechtenstein';
codes_to_country['lh'] = 'Lithuania';
codes_to_country['lu'] = 'Luxembourg';
codes_to_country['mc'] = 'Macau';
codes_to_country['mk'] = 'Macedonia, The Former Yugoslav Republic of';
codes_to_country['ma'] = 'Madagascar';
codes_to_country['mi'] = 'Malawi';
codes_to_country['my'] = 'Malaysia';
codes_to_country['mv'] = 'Maldives';
codes_to_country['ml'] = 'Mali';
codes_to_country['mt'] = 'Malta';
codes_to_country['im'] = 'Man, Isle of';
codes_to_country['rm'] = 'Marshall Islands';
codes_to_country['mb'] = 'Martinique';
codes_to_country['mr'] = 'Mauritania';
codes_to_country['mp'] = 'Mauritius';
codes_to_country['mf'] = 'Mayotte';
codes_to_country['mx'] = 'Mexico';
codes_to_country['fm'] = 'Micronesia, Federated States of';
codes_to_country['mq'] = 'Midway Islands';
codes_to_country['md'] = 'Moldova';
codes_to_country['mn'] = 'Monaco';
codes_to_country['mg'] = 'Mongolia';
codes_to_country['mh'] = 'Montserrat';
codes_to_country['mo'] = 'Morocco';
codes_to_country['mz'] = 'Mozambique';
codes_to_country['wa'] = 'Namibia';
codes_to_country['nr'] = 'Nauru';
codes_to_country['bq'] = 'Navassa Island';
codes_to_country['np'] = 'Nepal';
codes_to_country['nl'] = 'Netherlands';
codes_to_country['nt'] = 'Netherlands Antilles';
codes_to_country['nc'] = 'New Caledonia';
codes_to_country['nz'] = 'New Zealand';
codes_to_country['nu'] = 'Nicaragua';
codes_to_country['ng'] = 'Niger';
codes_to_country['ni'] = 'Nigeria';
codes_to_country['ne'] = 'Niue';
codes_to_country['nf'] = 'Norfolk Island';
codes_to_country['cq'] = 'Northern Mariana Islands';
codes_to_country['no'] = 'Norway';
codes_to_country['mu'] = 'Oman';
codes_to_country['zn'] = 'Pacific Ocean';
codes_to_country['pk'] = 'Pakistan';
codes_to_country['ps'] = 'Palau';
codes_to_country['lq'] = 'Palmyra Atoll';
codes_to_country['pm'] = 'Panama';
codes_to_country['pp'] = 'Papua New Guinea';
codes_to_country['pf'] = 'Paracel Islands';
codes_to_country['pa'] = 'Paraguay';
codes_to_country['pe'] = 'Peru';
codes_to_country['rp'] = 'Philippines';
codes_to_country['pc'] = 'Pitcairn Islands';
codes_to_country['pl'] = 'Poland';
codes_to_country['po'] = 'Portugal';
codes_to_country['rq'] = 'Puerto Rico';
codes_to_country['qa'] = 'Qatar';
codes_to_country['re'] = 'Reunion';
codes_to_country['ro'] = 'Romania';
codes_to_country['rs'] = 'Russia';
codes_to_country['rw'] = 'Rwanda';
codes_to_country['sh'] = 'Saint Helena';
codes_to_country['sc'] = 'Saint Kitts and Nevis';
codes_to_country['st'] = 'Saint Lucia';
codes_to_country['sb'] = 'Saint Pierre and Miquelon';
codes_to_country['vc'] = 'Saint Vincent and the Grenadines';
codes_to_country['ws'] = 'Samoa';
codes_to_country['sm'] = 'San Marino';
codes_to_country['tp'] = 'Sao Tome and Principe';
codes_to_country['sa'] = 'Saudi Arabia';
codes_to_country['sg'] = 'Senegal';
codes_to_country['rb'] = 'Serbia';
codes_to_country['mj'] = 'Montenegro';
codes_to_country['yi'] = 'Serbia and Montenegro';
codes_to_country['se'] = 'Seychelles';
codes_to_country['sl'] = 'Sierra Leone';
codes_to_country['sn'] = 'Singapore';
codes_to_country['lo'] = 'Slovakia';
codes_to_country['si'] = 'Slovenia';
codes_to_country['bp'] = 'Solomon Islands';
codes_to_country['so'] = 'Somalia';
codes_to_country['sf'] = 'South Africa';
codes_to_country['sx'] = 'South Georgia and the South Sandwich Islands';
codes_to_country['oo'] = 'Southern Ocean';
codes_to_country['sp'] = 'Spain';
codes_to_country['pg'] = 'Spratly Islands';
codes_to_country['ce'] = 'Sri Lanka';
codes_to_country['su'] = 'Sudan';
codes_to_country['ns'] = 'Suriname';
codes_to_country['sv'] = 'Svalbard';
codes_to_country['wz'] = 'Swaziland';
codes_to_country['sw'] = 'Sweden';
codes_to_country['sz'] = 'Switzerland';
codes_to_country['sy'] = 'Syria';
codes_to_country['tw'] = 'Taiwan';
codes_to_country['ti'] = 'Tajikistan';
codes_to_country['tz'] = 'Tanzania';
codes_to_country['th'] = 'Thailand';
codes_to_country['to'] = 'Togo';
codes_to_country['tl'] = 'Tokelau';
codes_to_country['tn'] = 'Tonga';
codes_to_country['td'] = 'Trinidad and Tobago';
codes_to_country['te'] = 'Tromelin Island';
codes_to_country['ts'] = 'Tunisia';
codes_to_country['tu'] = 'Turkey';
codes_to_country['tx'] = 'Turkmenistan';
codes_to_country['tk'] = 'Turks and Caicos Islands';
codes_to_country['tv'] = 'Tuvalu';
codes_to_country['ug'] = 'Uganda';
codes_to_country['up'] = 'Ukraine';
codes_to_country['tc'] = 'United Arab Emirates';
codes_to_country['uk'] = 'United Kingdom';
codes_to_country['us'] = 'United States';
codes_to_country['uy'] = 'Uruguay';
codes_to_country['uz'] = 'Uzbekistan';
codes_to_country['nh'] = 'Vanuatu';
codes_to_country['ve'] = 'Venezuela';
codes_to_country['vm'] = 'Vietnam';
codes_to_country['vq'] = 'Virgin Islands';
codes_to_country['wq'] = 'Wake Island';
codes_to_country['wf'] = 'Wallis and Futuna';
codes_to_country['we'] = 'West Bank';
codes_to_country['wi'] = 'Western Sahara';
codes_to_country['xx'] = 'World';
codes_to_country['ym'] = 'Yemen';
codes_to_country['za'] = 'Zambia';
codes_to_country['zi'] = 'Zimbabwe';

return codes_to_country;
}



function country_codes_to_maps() {
var codes_to_maps = new Array();
codes_to_maps['af'] = true;
codes_to_maps['al'] = true;
codes_to_maps['ag'] = true;
codes_to_maps['an'] = true;
codes_to_maps['ao'] = true;
codes_to_maps['ay'] = true;
codes_to_maps['ar'] = true;
codes_to_maps['am'] = true;
codes_to_maps['as'] = true;
codes_to_maps['au'] = true;
codes_to_maps['aj'] = true;
codes_to_maps['bf'] = true;
codes_to_maps['bg'] = true;
codes_to_maps['bo'] = true;
codes_to_maps['be'] = true;
codes_to_maps['bh'] = true;
codes_to_maps['bn'] = true;
codes_to_maps['bt'] = true;
codes_to_maps['bl'] = true;
codes_to_maps['bk'] = true;
codes_to_maps['bc'] = true;
codes_to_maps['br'] = true;
codes_to_maps['bx'] = true;
codes_to_maps['bu'] = true;
codes_to_maps['uv'] = true;
codes_to_maps['bm'] = true;
codes_to_maps['by'] = true;
codes_to_maps['cb'] = true;
codes_to_maps['cm'] = true;
codes_to_maps['ca'] = true;
codes_to_maps['ct'] = true;
codes_to_maps['cd'] = true;
codes_to_maps['ci'] = true;
codes_to_maps['ch'] = true;
codes_to_maps['co'] = true;
codes_to_maps['cg'] = true;
codes_to_maps['cf'] = true;
codes_to_maps['cs'] = true;
codes_to_maps['iv'] = true;
codes_to_maps['hr'] = true;
codes_to_maps['cu'] = true;
codes_to_maps['cy'] = true;
codes_to_maps['ez'] = true;
codes_to_maps['da'] = true;
codes_to_maps['dj'] = true;
codes_to_maps['dr'] = true;
codes_to_maps['tt'] = true;
codes_to_maps['ec'] = true;
codes_to_maps['eg'] = true;
codes_to_maps['es'] = true;
codes_to_maps['ek'] = true;
codes_to_maps['er'] = true;
codes_to_maps['en'] = true;
codes_to_maps['et'] = true;
codes_to_maps['fk'] = true;
codes_to_maps['fo'] = true;
codes_to_maps['fj'] = true;
codes_to_maps['fi'] = true;
codes_to_maps['fr'] = true;
codes_to_maps['fg'] = true;
codes_to_maps['gb'] = true;
codes_to_maps['ga'] = true;
codes_to_maps['gg'] = true;
codes_to_maps['gm'] = true;
codes_to_maps['gh'] = true;
codes_to_maps['gr'] = true;
codes_to_maps['gl'] = true;
codes_to_maps['gp'] = true;
codes_to_maps['gt'] = true;
codes_to_maps['gv'] = true;
codes_to_maps['pu'] = true;
codes_to_maps['gy'] = true;
codes_to_maps['ha'] = true;
codes_to_maps['ho'] = true;
codes_to_maps['hu'] = true;
codes_to_maps['ic'] = true;
codes_to_maps['in'] = true;
codes_to_maps['id'] = true;
codes_to_maps['ir'] = true;
codes_to_maps['iz'] = true;
codes_to_maps['ei'] = true;
codes_to_maps['is'] = true;
codes_to_maps['it'] = true;
codes_to_maps['jm'] = true;
codes_to_maps['ja'] = true;
codes_to_maps['jo'] = true;
codes_to_maps['kz'] = true;
codes_to_maps['ke'] = true;
codes_to_maps['kn'] = true;
codes_to_maps['ks'] = true;
codes_to_maps['ku'] = true;
codes_to_maps['kg'] = true;
codes_to_maps['la'] = true;
codes_to_maps['lg'] = true;
codes_to_maps['le'] = true;
codes_to_maps['lt'] = true;
codes_to_maps['li'] = true;
codes_to_maps['ly'] = true;
codes_to_maps['lh'] = true;
codes_to_maps['lu'] = true;
codes_to_maps['mk'] = true;
codes_to_maps['ma'] = true;
codes_to_maps['mi'] = true;
codes_to_maps['my'] = true;
codes_to_maps['ml'] = true;
codes_to_maps['mt'] = true;
codes_to_maps['mb'] = true;
codes_to_maps['mr'] = true;
codes_to_maps['mp'] = true;
codes_to_maps['mx'] = true;
codes_to_maps['md'] = true;
codes_to_maps['mg'] = true;
codes_to_maps['mo'] = true;
codes_to_maps['mz'] = true;
codes_to_maps['wa'] = true;
codes_to_maps['np'] = true;
codes_to_maps['nl'] = true;
codes_to_maps['nc'] = true;
codes_to_maps['nz'] = true;
codes_to_maps['nu'] = true;
codes_to_maps['ng'] = true;
codes_to_maps['ni'] = true;
codes_to_maps['no'] = true;
codes_to_maps['mu'] = true;
codes_to_maps['pk'] = true;
codes_to_maps['pm'] = true;
codes_to_maps['pp'] = true;
codes_to_maps['pa'] = true;
codes_to_maps['pe'] = true;
codes_to_maps['rp'] = true;
codes_to_maps['pl'] = true;
codes_to_maps['po'] = true;
codes_to_maps['rq'] = true;
codes_to_maps['qa'] = true;
codes_to_maps['re'] = true;
codes_to_maps['ro'] = true;
codes_to_maps['rs'] = true;
codes_to_maps['rw'] = true;
codes_to_maps['ws'] = true;
codes_to_maps['sa'] = true;
codes_to_maps['sg'] = true;
codes_to_maps['yi'] = true;
codes_to_maps['sl'] = true;
codes_to_maps['sn'] = true;
codes_to_maps['lo'] = true;
codes_to_maps['si'] = true;
codes_to_maps['bp'] = true;
codes_to_maps['so'] = true;
codes_to_maps['sf'] = true;
codes_to_maps['sx'] = true;
codes_to_maps['sp'] = true;
codes_to_maps['ce'] = true;
codes_to_maps['su'] = true;
codes_to_maps['ns'] = true;
codes_to_maps['wz'] = true;
codes_to_maps['sw'] = true;
codes_to_maps['sz'] = true;
codes_to_maps['sy'] = true;
codes_to_maps['tw'] = true;
codes_to_maps['ti'] = true;
codes_to_maps['tz'] = true;
codes_to_maps['th'] = true;
codes_to_maps['to'] = true;
codes_to_maps['td'] = true;
codes_to_maps['ts'] = true;
codes_to_maps['tu'] = true;
codes_to_maps['tx'] = true;
codes_to_maps['ug'] = true;
codes_to_maps['up'] = true;
codes_to_maps['tc'] = true;
codes_to_maps['uk'] = true;
codes_to_maps['us'] = true;
codes_to_maps['uy'] = true;
codes_to_maps['uz'] = true;
codes_to_maps['nh'] = true;
codes_to_maps['ve'] = true;
codes_to_maps['vm'] = true;
codes_to_maps['we'] = true;
codes_to_maps['wi'] = true;
codes_to_maps['ym'] = true;
codes_to_maps['za'] = true;
codes_to_maps['zi'] = true;
codes_to_maps['rb'] = true;
codes_to_maps['mj'] = true;


return codes_to_maps;
}



function country_no_maps() {

var no_maps = new Array();

no_maps['aq'] = true;
no_maps['av'] = true;
no_maps['ac'] = true;
no_maps['xq'] = true;
no_maps['aa'] = true;
no_maps['at'] = true;
no_maps['zh'] = true;
no_maps['ba'] = true;
no_maps['fq'] = true;
no_maps['bb'] = true;
no_maps['bs'] = true;
no_maps['bd'] = true;
no_maps['bv'] = true;
no_maps['io'] = true;
no_maps['vi'] = true;
no_maps['cv'] = true;
no_maps['cj'] = true;
no_maps['kt'] = true;
no_maps['ip'] = true;
no_maps['ck'] = true;
no_maps['cn'] = true;
no_maps['cw'] = true;
no_maps['cr'] = true;
no_maps['do'] = true;
no_maps['eu'] = true;
no_maps['fp'] = true;
no_maps['fs'] = true;
no_maps['gz'] = true;
no_maps['gi'] = true;
no_maps['go'] = true;
no_maps['gj'] = true;
no_maps['gq'] = true;
no_maps['gk'] = true;
no_maps['hm'] = true;
no_maps['vt'] = true;
no_maps['hk'] = true;
no_maps['hq'] = true;
no_maps['xo'] = true;
no_maps['jn'] = true;
no_maps['dq'] = true;
no_maps['je'] = true;
no_maps['jq'] = true;
no_maps['ju'] = true;
no_maps['kq'] = true;
no_maps['kr'] = true;
no_maps['ls'] = true;
no_maps['mc'] = true;
no_maps['mv'] = true;
no_maps['im'] = true;
no_maps['rm'] = true;
no_maps['mf'] = true;
no_maps['fm'] = true;
no_maps['mq'] = true;
no_maps['mn'] = true;
no_maps['mh'] = true;
no_maps['nr'] = true;
no_maps['bq'] = true;
no_maps['nt'] = true;
no_maps['ne'] = true;
no_maps['nf'] = true;
no_maps['cq'] = true;
no_maps['zn'] = true;
no_maps['ps'] = true;
no_maps['lq'] = true;
no_maps['pf'] = true;
no_maps['pc'] = true;
no_maps['sh'] = true;
no_maps['sc'] = true;
no_maps['st'] = true;
no_maps['sb'] = true;
no_maps['vc'] = true;
no_maps['sm'] = true;
no_maps['tp'] = true;
no_maps['se'] = true;
no_maps['oo'] = true;
no_maps['pg'] = true;
no_maps['sv'] = true;
no_maps['tl'] = true;
no_maps['tn'] = true;
no_maps['te'] = true;
no_maps['tk'] = true;
no_maps['tv'] = true;
no_maps['vq'] = true;
no_maps['wq'] = true;
no_maps['wf'] = true;
no_maps['xx'] = true;

return no_maps;

}


function small_countries_array() {
var small_countries = new Array();
small_countries['aq'] = 'American Samoa';
small_countries['av'] = 'Anguilla';
small_countries['ac'] = 'Antigua and Barbuda';
small_countries['aa'] = 'Aruba';
small_countries['at'] = 'Ashmore and Cartier Islands';
small_countries['ba'] = 'Bahrain';
small_countries['fq'] = 'Baker Island';
small_countries['bb'] = 'Barbados';
small_countries['bs'] = 'Bassas da India';
small_countries['bd'] = 'Bermuda';
small_countries['bv'] = 'Bouvet Island';
small_countries['io'] = 'British Indian Ocean Territory';
small_countries['vi'] = 'British Virgin Islands';
small_countries['cv'] = 'Cape Verde';
small_countries['cj'] = 'Cayman Islands';
small_countries['kt'] = 'Christmas Island';
small_countries['ip'] = 'Clipperton Island';
small_countries['ck'] = 'Cocos (Keeling) Islands';
small_countries['cn'] = 'Comoros';
small_countries['cw'] = 'Cook Islands';
small_countries['cr'] = 'Coral Sea Islands';
small_countries['do'] = 'Dominica';
small_countries['eu'] = 'Europa Island';
small_countries['fp'] = 'French Polynesia';
small_countries['fs'] = 'French Southern and Antarctic Lands';
small_countries['gz'] = 'Gaza Strip';
small_countries['gi'] = 'Gibraltar';
small_countries['go'] = 'Glorioso Islands';
small_countries['gj'] = 'Grenada';
small_countries['gq'] = 'Guam';
small_countries['gk'] = 'Guernsey';
small_countries['hm'] = 'Heard Island and McDonald Islands';
small_countries['vt'] = 'Holy See (Vatican City)';
small_countries['hk'] = 'Hong Kong';
small_countries['hq'] = 'Howland Island';
small_countries['jn'] = 'Jan Mayen';
small_countries['dq'] = 'Jarvis Island';
small_countries['je'] = 'Jersey';
small_countries['jq'] = 'Johnston Atoll';
small_countries['ju'] = 'Juan de Nova Island';
small_countries['kq'] = 'Kingman Reef';
small_countries['kr'] = 'Kiribati';
small_countries['ls'] = 'Liechtenstein';
small_countries['mc'] = 'Macau';
small_countries['mv'] = 'Maldives';
small_countries['im'] = 'Isle of Man';
small_countries['rm'] = 'Marshall Islands';
small_countries['mf'] = 'Mayotte';
small_countries['fm'] = 'Micronesia';
small_countries['mq'] = 'Midway Islands';
small_countries['mn'] = 'Monaco';
small_countries['mh'] = 'Montserrat';
small_countries['nr'] = 'Nauru';
small_countries['bq'] = 'Navassa Island';
small_countries['nt'] = 'Netherlands Antilles';
small_countries['ne'] = 'Niue';
small_countries['nf'] = 'Norfolk Island';
small_countries['cq'] = 'Northern Mariana Islands';
small_countries['ps'] = 'Palau';
small_countries['lq'] = 'Palmyra Atoll';
small_countries['pf'] = 'Paracel Islands';
small_countries['pc'] = 'Pitcairn Islands';
small_countries['sh'] = 'Saint Helena';
small_countries['sc'] = 'Saint Kitts and Nevis';
small_countries['st'] = 'Saint Lucia';
small_countries['sb'] = 'Saint Pierre and Miquelon';
small_countries['vc'] = 'Saint Vincent and the Grenadines';
small_countries['sm'] = 'San Marino';
small_countries['tp'] = 'Sao Tome and Principe';
small_countries['se'] = 'Seychelles';
small_countries['pg'] = 'Spratly Islands';
small_countries['sv'] = 'Svalbard';
small_countries['tl'] = 'Tokelau';
small_countries['tn'] = 'Tonga';
small_countries['te'] = 'Tromelin Island';
small_countries['tk'] = 'Turks and Caicos Islands';
small_countries['tv'] = 'Tuvalu';
small_countries['vq'] = 'Virgin Islands';
small_countries['wq'] = 'Wake Island';
small_countries['wf'] = 'Wallis and Futuna';
return small_countries;
}
