function countrys(str)
{             

var cou = new Array()
cou[0]='Afghanistan';
cou[1]='Albania';
cou[2]='Algeria';
cou[3]='American Samoa';
cou[4]='Andorra';
cou[5]='Angola';
cou[6]='Anguilla';
cou[7]='Antarctica';
cou[8]='Antigua & Barbuda';
cou[9]='Argentina';
cou[10]='Armenia';
cou[11]='Aruba';
cou[12]='Australia';
cou[13]='Austria';
cou[14]='Azerbaijan';
cou[15]='Bahamas';
cou[16]='Bahrain';
cou[17]='Bangladesh';
cou[18]='Barbados';
cou[19]='Belarus';
cou[20]='Belgium';
cou[21]='Belize';
cou[22]='Benin';
cou[23]='Bermuda';
cou[24]='Bhutan';
cou[25]='Bolivia';
cou[26]='Bosnia & Herzegovina';
cou[27]='Botswana';
cou[28]='Bouvet Island';
cou[29]='Brazil';
cou[30]='Britan';
cou[31]='Brunei';
cou[32]='Bulgaria';
cou[33]='Burkina Faso';
cou[34]='Burma';
cou[35]='Burundi';
cou[36]='Cambodia';
cou[37]='Cameroon';
cou[38]='Canada';
cou[39]='Canton & Enderbury Islands';
cou[40]='Cape Verde';
cou[41]='Cayman Islands';
cou[42]='Central African Republic';
cou[43]='Chad';
cou[44]='Chile';
cou[45]='China';
cou[46]='Christmas Island';
cou[47]='Cocos(Keeling) Islands';
cou[48]='Colombia';
cou[49]='Comoros';
cou[50]='Congo';
cou[51]='Cook Islands';
cou[52]='Costa Rica';
cou[53]='Cote D-Ivoire';
cou[54]='Croatia Hrvatska';
cou[55]='Cuba';
cou[56]='Cyprus';
cou[57]='Czech Republic';
cou[58]='Democratic Yemen';
cou[59]='Denmark';
cou[60]='Djibouti';
cou[61]='Dominica';
cou[62]='Dominican Republic';
cou[63]='Dronning Maud Land';
cou[64]='East Timor';
cou[65]='Ecuador';
cou[66]='Egypt';
cou[67]='El Salvador';
cou[68]='Equatorial Guinea';
cou[69]='Eritrea';
cou[70]='Estonia';
cou[71]='Ethiopia';
cou[72]='Falkland Islands(Malvinas)';
cou[73]='Faroe Islands';
cou[74]='Fiji';
cou[75]='Finland';
cou[76]='France';
cou[77]='France, Metropolitan';
cou[78]='French Guiana';
cou[79]='French Polynesia';
cou[80]='French Southern Territories';
cou[81]='Gabon';
cou[82]='Gambia';
cou[83]='Georgia';
cou[84]='Germany';
cou[85]='Ghana';
cou[86]='Gibraltar';
cou[87]='Greece';
cou[88]='GL';
cou[89]='Grenada';
cou[90]='Guadeloupe';
cou[91]='Guam';
cou[92]='Guatemala';
cou[93]='Guinea';
cou[94]='Guinea-bisseu';
cou[95]='Guyana';
cou[96]='Haiti';
cou[97]='Heard & McDonald Islands';
cou[98]='Honduras';
cou[99]='Hong Kong';
cou[100]='Hungary';
cou[101]='Iceland';
cou[102]='India';
cou[103]='Indonesia';
cou[104]='Iran';
cou[105]='Iraq';
cou[106]='Ireland';
cou[107]='Israel';
cou[108]='Italy';
cou[109]='Ivory Coast';
cou[110]='Jamaica';
cou[111]='Japan';
cou[112]='Johnston Island';
cou[113]='Jordan';
cou[114]='Kazakstan';
cou[115]='Kenya';
cou[116]='Kiribati';
cou[117]='Korea-Democratic';
cou[118]='Korea-Republic';
cou[119]='Kuwait';
cou[120]='Kyrgyzstan';
cou[121]='Lao';
cou[122]='Latvia';
cou[123]='Lebanon';
cou[124]='Lesotho';
cou[125]='Liberia';
cou[126]='Libyan Arab Jamahiriya';
cou[127]='Liechtenstein';
cou[128]='Lithuania';
cou[129]='Luxembourg';
cou[130]='Macau';
cou[131]='Macedonia';
cou[132]='Madagascar';
cou[133]='Malawi';
cou[134]='Malaysia';
cou[135]='Maldives';
cou[136]='Mali';
cou[137]='Malta';
cou[138]='Marshall Islands';
cou[139]='Martinique';
cou[140]='Mauritania';
cou[141]='Mauritius';
cou[142]='Mayotte';
cou[143]='Mexico';
cou[144]='Micronesia';
cou[145]='Midway Islands';
cou[146]='Moldova';
cou[147]='Monaco';
cou[148]='Mongolia';
cou[149]='Montserrat';
cou[150]='Morocco';
cou[151]='Mozambique';
cou[152]='Myanmar';
cou[153]='Namibia';
cou[154]='Nauru';
cou[155]='Nepal';
cou[156]='Netherlands';
cou[157]='Netherlands Antilles';
cou[158]='Neutral Zone';
cou[159]='New Calidonia';
cou[160]='New Zealand';
cou[161]='Nicaragua';
cou[162]='Niger';
cou[163]='Nigeria';
cou[164]='Niue';
cou[165]='Norfolk Island';
cou[166]='Northern Mariana Islands';
cou[167]='Norway';
cou[168]='Oman';
cou[169]='Pacific Islands';
cou[170]='Pakistan';
cou[171]='Palau';
cou[172]='Panama';
cou[173]='Papua New Guinea';
cou[174]='Paraguay';
cou[175]='Peru';
cou[176]='Philippines';
cou[177]='Pitcairn Island';
cou[178]='Poland';
cou[179]='Portugal';
cou[180]='Puerto Rico';
cou[181]='Qatar';
cou[182]='Reunion';
cou[183]='Romania';
cou[184]='Russian Federation';
cou[185]='Rwanda';
cou[186]='S.Georgia & S.Sandwich Islands';
cou[187]='Saint Lucia';
cou[188]='Saint Vincent/Grenadines';
cou[189]='Samoa';
cou[190]='San Marino';
cou[191]='Sao Tome & Principe';
cou[192]='Saudi Arabia';
cou[193]='Senegal';
cou[194]='Seychelles';
cou[195]='Sierra Leone';
cou[196]='Singapore';
cou[197]='Slovakia';
cou[198]='Slovenia';
cou[199]='Solomon Islands';
cou[200]='Somalia';
cou[201]='South Africa';
cou[202]='Spain';
cou[203]='Sri Lanka';
cou[204]='St.Helena';
cou[205]='St.Kitts Nevis Anguilla';
cou[206]='St.Pierre and Miquelon';
cou[207]='Sudan';
cou[208]='Suriname';
cou[209]='Svalbard & Jan Mayen Islands';
cou[210]='Swaziland';
cou[211]='Sweden';
cou[212]='Switzerland';
cou[213]='Syran Arab Republic';
cou[214]='Taiwan';
cou[215]='Tajikistan';
cou[216]='Tanzania';
cou[217]='Thailand';
cou[218]='Togo';
cou[219]='Tokelau';
cou[220]='Tonga';
cou[221]='Trinidad & Tobago';
cou[222]='Tunisia';
cou[223]='Turkey';
cou[224]='Turkmenistan';
cou[225]='Turks & Caicos Islands';
cou[226]='Tuvalu';
cou[227]='US Minor Outlying Islands';
cou[228]='Uganda';
cou[229]='Ukraine';
cou[230]='United Arab Emirates';
cou[231]='United Kingdom';
cou[232]='United States';
cou[233]='Upper Volta';
cou[234]='Uruguay';
cou[235]='Uzbekistan';
cou[236]='Vanuatu';
cou[237]='Vatican City State';
cou[238]='Venezuela';
cou[239]='VietNam';
cou[240]='Virgin Islands-British';
cou[241]='Virgin Islands-United States';
cou[242]='Wake Island';
cou[243]='Wallis & Futuma Islands';
cou[244]='Western Sahara';
cou[245]='Yemen';
cou[246]='Yugoslavia';
cou[247]='Zaire';
cou[248]='Zambia';
cou[249]='Zimbabwe';
cou[250]='-----------------select a country-------------------';
	     document.write("<SELECT class='inputcell' name=Country size=1>");
             for(i=0;i<cou.length;i++)
             {
                if(cou[i]==str)
                {
                        document.write("<OPTION selected value"+cou[i]+">"+cou[i]+"</OPTION>");
                }
                else
                {
                        document.write("<OPTION value"+cou[i]+">"+cou[i]+"</OPTION>");
                }

             }
}
