var countries = [{"0":"102","CountryID":"102","1":"India","CountryName":"India","2":"IN","CountryISOCode1":"IN","3":"IND","CountryISOCode2":"IND"},{"0":"1","CountryID":"1","1":"Afghanistan","CountryName":"Afghanistan","2":"AF","CountryISOCode1":"AF","3":"AFG","CountryISOCode2":"AFG"},{"0":"249","CountryID":"249","1":"\u00c5land Islands","CountryName":"\u00c5land Islands","2":"AX","CountryISOCode1":"AX","3":"ALA","CountryISOCode2":"ALA"},{"0":"2","CountryID":"2","1":"Albania","CountryName":"Albania","2":"AL","CountryISOCode1":"AL","3":"ALB","CountryISOCode2":"ALB"},{"0":"3","CountryID":"3","1":"Algeria","CountryName":"Algeria","2":"DZ","CountryISOCode1":"DZ","3":"DZA","CountryISOCode2":"DZA"},{"0":"4","CountryID":"4","1":"American Samoa","CountryName":"American Samoa","2":"AS","CountryISOCode1":"AS","3":"ASM","CountryISOCode2":"ASM"},{"0":"5","CountryID":"5","1":"Andorra","CountryName":"Andorra","2":"AD","CountryISOCode1":"AD","3":"AND","CountryISOCode2":"AND"},{"0":"6","CountryID":"6","1":"Angola","CountryName":"Angola","2":"AO","CountryISOCode1":"AO","3":"AGO","CountryISOCode2":"AGO"},{"0":"7","CountryID":"7","1":"Anguilla","CountryName":"Anguilla","2":"AI","CountryISOCode1":"AI","3":"AIA","CountryISOCode2":"AIA"},{"0":"9","CountryID":"9","1":"Antigua and Barbuda","CountryName":"Antigua and Barbuda","2":"AG","CountryISOCode1":"AG","3":"ATG","CountryISOCode2":"ATG"},{"0":"10","CountryID":"10","1":"Argentina","CountryName":"Argentina","2":"AR","CountryISOCode1":"AR","3":"ARG","CountryISOCode2":"ARG"},{"0":"11","CountryID":"11","1":"Armenia","CountryName":"Armenia","2":"AM","CountryISOCode1":"AM","3":"ARM","CountryISOCode2":"ARM"},{"0":"12","CountryID":"12","1":"Aruba","CountryName":"Aruba","2":"AW","CountryISOCode1":"AW","3":"ABW","CountryISOCode2":"ABW"},{"0":"13","CountryID":"13","1":"Australia","CountryName":"Australia","2":"AU","CountryISOCode1":"AU","3":"AUS","CountryISOCode2":"AUS"},{"0":"14","CountryID":"14","1":"Austria","CountryName":"Austria","2":"AT","CountryISOCode1":"AT","3":"AUT","CountryISOCode2":"AUT"},{"0":"15","CountryID":"15","1":"Azerbaijan","CountryName":"Azerbaijan","2":"AZ","CountryISOCode1":"AZ","3":"AZE","CountryISOCode2":"AZE"},{"0":"16","CountryID":"16","1":"Bahamas","CountryName":"Bahamas","2":"BS","CountryISOCode1":"BS","3":"BHS","CountryISOCode2":"BHS"},{"0":"17","CountryID":"17","1":"Bahrain","CountryName":"Bahrain","2":"BH","CountryISOCode1":"BH","3":"BHR","CountryISOCode2":"BHR"},{"0":"18","CountryID":"18","1":"Bangladesh","CountryName":"Bangladesh","2":"BD","CountryISOCode1":"BD","3":"BGD","CountryISOCode2":"BGD"},{"0":"19","CountryID":"19","1":"Barbados","CountryName":"Barbados","2":"BB","CountryISOCode1":"BB","3":"BRB","CountryISOCode2":"BRB"},{"0":"20","CountryID":"20","1":"Belarus","CountryName":"Belarus","2":"BY","CountryISOCode1":"BY","3":"BLR","CountryISOCode2":"BLR"},{"0":"21","CountryID":"21","1":"Belgium","CountryName":"Belgium","2":"BE","CountryISOCode1":"BE","3":"BEL","CountryISOCode2":"BEL"},{"0":"22","CountryID":"22","1":"Belize","CountryName":"Belize","2":"BZ","CountryISOCode1":"BZ","3":"BLZ","CountryISOCode2":"BLZ"},{"0":"23","CountryID":"23","1":"Benin","CountryName":"Benin","2":"BJ","CountryISOCode1":"BJ","3":"BEN","CountryISOCode2":"BEN"},{"0":"24","CountryID":"24","1":"Bermuda","CountryName":"Bermuda","2":"BM","CountryISOCode1":"BM","3":"BMU","CountryISOCode2":"BMU"},{"0":"25","CountryID":"25","1":"Bhutan","CountryName":"Bhutan","2":"BT","CountryISOCode1":"BT","3":"BTN","CountryISOCode2":"BTN"},{"0":"26","CountryID":"26","1":"Bolivia, Plurinational State of","CountryName":"Bolivia, Plurinational State of","2":"BO","CountryISOCode1":"BO","3":"BOL","CountryISOCode2":"BOL"},{"0":"27","CountryID":"27","1":"Bonaire, Sint Eustatius and Saba","CountryName":"Bonaire, Sint Eustatius and Saba","2":"BQ","CountryISOCode1":"BQ","3":"BES","CountryISOCode2":"BES"},{"0":"28","CountryID":"28","1":"Bosnia and Herzegovina","CountryName":"Bosnia and Herzegovina","2":"BA","CountryISOCode1":"BA","3":"BIH","CountryISOCode2":"BIH"},{"0":"29","CountryID":"29","1":"Botswana","CountryName":"Botswana","2":"BW","CountryISOCode1":"BW","3":"BWA","CountryISOCode2":"BWA"},{"0":"30","CountryID":"30","1":"Bouvet Island","CountryName":"Bouvet Island","2":"BV","CountryISOCode1":"BV","3":"BVT","CountryISOCode2":"BVT"},{"0":"31","CountryID":"31","1":"Brazil","CountryName":"Brazil","2":"BR","CountryISOCode1":"BR","3":"BRA","CountryISOCode2":"BRA"},{"0":"32","CountryID":"32","1":"British Indian Ocean Territory","CountryName":"British Indian Ocean Territory","2":"IO","CountryISOCode1":"IO","3":"IOT","CountryISOCode2":"IOT"},{"0":"33","CountryID":"33","1":"Brunei Darussalam","CountryName":"Brunei Darussalam","2":"BN","CountryISOCode1":"BN","3":"BRN","CountryISOCode2":"BRN"},{"0":"34","CountryID":"34","1":"Bulgaria","CountryName":"Bulgaria","2":"BG","CountryISOCode1":"BG","3":"BGR","CountryISOCode2":"BGR"},{"0":"35","CountryID":"35","1":"Burkina Faso","CountryName":"Burkina Faso","2":"BF","CountryISOCode1":"BF","3":"BFA","CountryISOCode2":"BFA"},{"0":"36","CountryID":"36","1":"Burundi","CountryName":"Burundi","2":"BI","CountryISOCode1":"BI","3":"BDI","CountryISOCode2":"BDI"},{"0":"37","CountryID":"37","1":"Cambodia","CountryName":"Cambodia","2":"KH","CountryISOCode1":"KH","3":"KHM","CountryISOCode2":"KHM"},{"0":"38","CountryID":"38","1":"Cameroon","CountryName":"Cameroon","2":"CM","CountryISOCode1":"CM","3":"CMR","CountryISOCode2":"CMR"},{"0":"39","CountryID":"39","1":"Canada","CountryName":"Canada","2":"CA","CountryISOCode1":"CA","3":"CAN","CountryISOCode2":"CAN"},{"0":"40","CountryID":"40","1":"Cape Verde","CountryName":"Cape Verde","2":"CV","CountryISOCode1":"CV","3":"CPV","CountryISOCode2":"CPV"},{"0":"41","CountryID":"41","1":"Cayman Islands","CountryName":"Cayman Islands","2":"KY","CountryISOCode1":"KY","3":"CYM","CountryISOCode2":"CYM"},{"0":"42","CountryID":"42","1":"Central African Republic","CountryName":"Central African Republic","2":"CF","CountryISOCode1":"CF","3":"CAF","CountryISOCode2":"CAF"},{"0":"43","CountryID":"43","1":"Chad","CountryName":"Chad","2":"TD","CountryISOCode1":"TD","3":"TCD","CountryISOCode2":"TCD"},{"0":"44","CountryID":"44","1":"Chile","CountryName":"Chile","2":"CL","CountryISOCode1":"CL","3":"CHL","CountryISOCode2":"CHL"},{"0":"45","CountryID":"45","1":"China","CountryName":"China","2":"CN","CountryISOCode1":"CN","3":"CHN","CountryISOCode2":"CHN"},{"0":"46","CountryID":"46","1":"Christmas Island","CountryName":"Christmas Island","2":"CX","CountryISOCode1":"CX","3":"CXR","CountryISOCode2":"CXR"},{"0":"47","CountryID":"47","1":"Cocos (Keeling) Islands","CountryName":"Cocos (Keeling) Islands","2":"CC","CountryISOCode1":"CC","3":"CCK","CountryISOCode2":"CCK"},{"0":"48","CountryID":"48","1":"Colombia","CountryName":"Colombia","2":"CO","CountryISOCode1":"CO","3":"COL","CountryISOCode2":"COL"},{"0":"49","CountryID":"49","1":"Comoros","CountryName":"Comoros","2":"KM","CountryISOCode1":"KM","3":"COM","CountryISOCode2":"COM"},{"0":"50","CountryID":"50","1":"Congo","CountryName":"Congo","2":"CG","CountryISOCode1":"CG","3":"COG","CountryISOCode2":"COG"},{"0":"52","CountryID":"52","1":"Cook Islands","CountryName":"Cook Islands","2":"CK","CountryISOCode1":"CK","3":"COK","CountryISOCode2":"COK"},{"0":"53","CountryID":"53","1":"Costa Rica","CountryName":"Costa Rica","2":"CR","CountryISOCode1":"CR","3":"CRI","CountryISOCode2":"CRI"},{"0":"59","CountryID":"59","1":"C\u00f4te d'Ivoire","CountryName":"C\u00f4te d'Ivoire","2":"CI","CountryISOCode1":"CI","3":"CIV","CountryISOCode2":"CIV"},{"0":"54","CountryID":"54","1":"Croatia","CountryName":"Croatia","2":"HR","CountryISOCode1":"HR","3":"HRV","CountryISOCode2":"HRV"},{"0":"55","CountryID":"55","1":"Cuba","CountryName":"Cuba","2":"CU","CountryISOCode1":"CU","3":"CUB","CountryISOCode2":"CUB"},{"0":"56","CountryID":"56","1":"Cura\u00e7ao","CountryName":"Cura\u00e7ao","2":"CW","CountryISOCode1":"CW","3":"CUW","CountryISOCode2":"CUW"},{"0":"57","CountryID":"57","1":"Cyprus","CountryName":"Cyprus","2":"CY","CountryISOCode1":"CY","3":"CYP","CountryISOCode2":"CYP"},{"0":"58","CountryID":"58","1":"Czech Republic","CountryName":"Czech Republic","2":"CZ","CountryISOCode1":"CZ","3":"CZE","CountryISOCode2":"CZE"},{"0":"60","CountryID":"60","1":"Denmark","CountryName":"Denmark","2":"DK","CountryISOCode1":"DK","3":"DNK","CountryISOCode2":"DNK"},{"0":"61","CountryID":"61","1":"Djibouti","CountryName":"Djibouti","2":"DJ","CountryISOCode1":"DJ","3":"DJI","CountryISOCode2":"DJI"},{"0":"62","CountryID":"62","1":"Dominica","CountryName":"Dominica","2":"DM","CountryISOCode1":"DM","3":"DMA","CountryISOCode2":"DMA"},{"0":"63","CountryID":"63","1":"Dominican Republic","CountryName":"Dominican Republic","2":"DO","CountryISOCode1":"DO","3":"DOM","CountryISOCode2":"DOM"},{"0":"64","CountryID":"64","1":"Ecuador","CountryName":"Ecuador","2":"EC","CountryISOCode1":"EC","3":"ECU","CountryISOCode2":"ECU"},{"0":"65","CountryID":"65","1":"Egypt","CountryName":"Egypt","2":"EG","CountryISOCode1":"EG","3":"EGY","CountryISOCode2":"EGY"},{"0":"66","CountryID":"66","1":"El Salvador","CountryName":"El Salvador","2":"SV","CountryISOCode1":"SV","3":"SLV","CountryISOCode2":"SLV"},{"0":"67","CountryID":"67","1":"Equatorial Guinea","CountryName":"Equatorial Guinea","2":"GQ","CountryISOCode1":"GQ","3":"GNQ","CountryISOCode2":"GNQ"},{"0":"68","CountryID":"68","1":"Eritrea","CountryName":"Eritrea","2":"ER","CountryISOCode1":"ER","3":"ERI","CountryISOCode2":"ERI"},{"0":"69","CountryID":"69","1":"Estonia","CountryName":"Estonia","2":"EE","CountryISOCode1":"EE","3":"EST","CountryISOCode2":"EST"},{"0":"70","CountryID":"70","1":"Ethiopia","CountryName":"Ethiopia","2":"ET","CountryISOCode1":"ET","3":"ETH","CountryISOCode2":"ETH"},{"0":"71","CountryID":"71","1":"Falkland Islands (Malvinas)","CountryName":"Falkland Islands (Malvinas)","2":"FK","CountryISOCode1":"FK","3":"FLK","CountryISOCode2":"FLK"},{"0":"72","CountryID":"72","1":"Faroe Islands","CountryName":"Faroe Islands","2":"FO","CountryISOCode1":"FO","3":"FRO","CountryISOCode2":"FRO"},{"0":"73","CountryID":"73","1":"Fiji","CountryName":"Fiji","2":"FJ","CountryISOCode1":"FJ","3":"FJI","CountryISOCode2":"FJI"},{"0":"74","CountryID":"74","1":"Finland","CountryName":"Finland","2":"FI","CountryISOCode1":"FI","3":"FIN","CountryISOCode2":"FIN"},{"0":"75","CountryID":"75","1":"France","CountryName":"France","2":"FR","CountryISOCode1":"FR","3":"FRA","CountryISOCode2":"FRA"},{"0":"76","CountryID":"76","1":"French Guiana","CountryName":"French Guiana","2":"GF","CountryISOCode1":"GF","3":"GUF","CountryISOCode2":"GUF"},{"0":"77","CountryID":"77","1":"French Polynesia","CountryName":"French Polynesia","2":"PF","CountryISOCode1":"PF","3":"PYF","CountryISOCode2":"PYF"},{"0":"78","CountryID":"78","1":"French Southern Territories","CountryName":"French Southern Territories","2":"TF","CountryISOCode1":"TF","3":"ATF","CountryISOCode2":"ATF"},{"0":"79","CountryID":"79","1":"Gabon","CountryName":"Gabon","2":"GA","CountryISOCode1":"GA","3":"GAB","CountryISOCode2":"GAB"},{"0":"80","CountryID":"80","1":"Gambia","CountryName":"Gambia","2":"GM","CountryISOCode1":"GM","3":"GMB","CountryISOCode2":"GMB"},{"0":"81","CountryID":"81","1":"Georgia","CountryName":"Georgia","2":"GE","CountryISOCode1":"GE","3":"GEO","CountryISOCode2":"GEO"},{"0":"82","CountryID":"82","1":"Germany","CountryName":"Germany","2":"DE","CountryISOCode1":"DE","3":"DEU","CountryISOCode2":"DEU"},{"0":"83","CountryID":"83","1":"Ghana","CountryName":"Ghana","2":"GH","CountryISOCode1":"GH","3":"GHA","CountryISOCode2":"GHA"},{"0":"84","CountryID":"84","1":"Gibraltar","CountryName":"Gibraltar","2":"GI","CountryISOCode1":"GI","3":"GIB","CountryISOCode2":"GIB"},{"0":"85","CountryID":"85","1":"Greece","CountryName":"Greece","2":"GR","CountryISOCode1":"GR","3":"GRC","CountryISOCode2":"GRC"},{"0":"86","CountryID":"86","1":"Greenland","CountryName":"Greenland","2":"GL","CountryISOCode1":"GL","3":"GRL","CountryISOCode2":"GRL"},{"0":"87","CountryID":"87","1":"Grenada","CountryName":"Grenada","2":"GD","CountryISOCode1":"GD","3":"GRD","CountryISOCode2":"GRD"},{"0":"88","CountryID":"88","1":"Guadeloupe","CountryName":"Guadeloupe","2":"GP","CountryISOCode1":"GP","3":"GLP","CountryISOCode2":"GLP"},{"0":"89","CountryID":"89","1":"Guam","CountryName":"Guam","2":"GU","CountryISOCode1":"GU","3":"GUM","CountryISOCode2":"GUM"},{"0":"90","CountryID":"90","1":"Guatemala","CountryName":"Guatemala","2":"GT","CountryISOCode1":"GT","3":"GTM","CountryISOCode2":"GTM"},{"0":"91","CountryID":"91","1":"Guernsey","CountryName":"Guernsey","2":"GG","CountryISOCode1":"GG","3":"GGY","CountryISOCode2":"GGY"},{"0":"92","CountryID":"92","1":"Guinea","CountryName":"Guinea","2":"GN","CountryISOCode1":"GN","3":"GIN","CountryISOCode2":"GIN"},{"0":"93","CountryID":"93","1":"Guinea-Bissau","CountryName":"Guinea-Bissau","2":"GW","CountryISOCode1":"GW","3":"GNB","CountryISOCode2":"GNB"},{"0":"94","CountryID":"94","1":"Guyana","CountryName":"Guyana","2":"GY","CountryISOCode1":"GY","3":"GUY","CountryISOCode2":"GUY"},{"0":"95","CountryID":"95","1":"Haiti","CountryName":"Haiti","2":"HT","CountryISOCode1":"HT","3":"HTI","CountryISOCode2":"HTI"},{"0":"96","CountryID":"96","1":"Heard Island and McDonald Islands","CountryName":"Heard Island and McDonald Islands","2":"HM","CountryISOCode1":"HM","3":"HMD","CountryISOCode2":"HMD"},{"0":"97","CountryID":"97","1":"Holy See (Vatican City State)","CountryName":"Holy See (Vatican City State)","2":"VA","CountryISOCode1":"VA","3":"VAT","CountryISOCode2":"VAT"},{"0":"98","CountryID":"98","1":"Honduras","CountryName":"Honduras","2":"HN","CountryISOCode1":"HN","3":"HND","CountryISOCode2":"HND"},{"0":"99","CountryID":"99","1":"Hong Kong","CountryName":"Hong Kong","2":"HK","CountryISOCode1":"HK","3":"HKG","CountryISOCode2":"HKG"},{"0":"100","CountryID":"100","1":"Hungary","CountryName":"Hungary","2":"HU","CountryISOCode1":"HU","3":"HUN","CountryISOCode2":"HUN"},{"0":"101","CountryID":"101","1":"Iceland","CountryName":"Iceland","2":"IS","CountryISOCode1":"IS","3":"ISL","CountryISOCode2":"ISL"},{"0":"103","CountryID":"103","1":"Indonesia","CountryName":"Indonesia","2":"ID","CountryISOCode1":"ID","3":"IDN","CountryISOCode2":"IDN"},{"0":"104","CountryID":"104","1":"Iran, Islamic Republic of","CountryName":"Iran, Islamic Republic of","2":"IR","CountryISOCode1":"IR","3":"IRN","CountryISOCode2":"IRN"},{"0":"105","CountryID":"105","1":"Iraq","CountryName":"Iraq","2":"IQ","CountryISOCode1":"IQ","3":"IRQ","CountryISOCode2":"IRQ"},{"0":"106","CountryID":"106","1":"Ireland","CountryName":"Ireland","2":"IE","CountryISOCode1":"IE","3":"IRL","CountryISOCode2":"IRL"},{"0":"107","CountryID":"107","1":"Isle of Man","CountryName":"Isle of Man","2":"IM","CountryISOCode1":"IM","3":"IMN","CountryISOCode2":"IMN"},{"0":"108","CountryID":"108","1":"Israel","CountryName":"Israel","2":"IL","CountryISOCode1":"IL","3":"ISR","CountryISOCode2":"ISR"},{"0":"109","CountryID":"109","1":"Italy","CountryName":"Italy","2":"IT","CountryISOCode1":"IT","3":"ITA","CountryISOCode2":"ITA"},{"0":"110","CountryID":"110","1":"Jamaica","CountryName":"Jamaica","2":"JM","CountryISOCode1":"JM","3":"JAM","CountryISOCode2":"JAM"},{"0":"111","CountryID":"111","1":"Japan","CountryName":"Japan","2":"JP","CountryISOCode1":"JP","3":"JPN","CountryISOCode2":"JPN"},{"0":"112","CountryID":"112","1":"Jersey","CountryName":"Jersey","2":"JE","CountryISOCode1":"JE","3":"JEY","CountryISOCode2":"JEY"},{"0":"113","CountryID":"113","1":"Jordan","CountryName":"Jordan","2":"JO","CountryISOCode1":"JO","3":"JOR","CountryISOCode2":"JOR"},{"0":"114","CountryID":"114","1":"Kazakhstan","CountryName":"Kazakhstan","2":"KZ","CountryISOCode1":"KZ","3":"KAZ","CountryISOCode2":"KAZ"},{"0":"115","CountryID":"115","1":"Kenya","CountryName":"Kenya","2":"KE","CountryISOCode1":"KE","3":"KEN","CountryISOCode2":"KEN"},{"0":"116","CountryID":"116","1":"Kiribati","CountryName":"Kiribati","2":"KI","CountryISOCode1":"KI","3":"KIR","CountryISOCode2":"KIR"},{"0":"117","CountryID":"117","1":"Korea, Democratic People's Republic of","CountryName":"Korea, Democratic People's Republic of","2":"KP","CountryISOCode1":"KP","3":"PRK","CountryISOCode2":"PRK"},{"0":"118","CountryID":"118","1":"Korea, Republic of","CountryName":"Korea, Republic of","2":"KR","CountryISOCode1":"KR","3":"KOR","CountryISOCode2":"KOR"},{"0":"119","CountryID":"119","1":"Kuwait","CountryName":"Kuwait","2":"KW","CountryISOCode1":"KW","3":"KWT","CountryISOCode2":"KWT"},{"0":"120","CountryID":"120","1":"Kyrgyzstan","CountryName":"Kyrgyzstan","2":"KG","CountryISOCode1":"KG","3":"KGZ","CountryISOCode2":"KGZ"},{"0":"121","CountryID":"121","1":"Lao People's Democratic Republic","CountryName":"Lao People's Democratic Republic","2":"LA","CountryISOCode1":"LA","3":"LAO","CountryISOCode2":"LAO"},{"0":"122","CountryID":"122","1":"Latvia","CountryName":"Latvia","2":"LV","CountryISOCode1":"LV","3":"LVA","CountryISOCode2":"LVA"},{"0":"123","CountryID":"123","1":"Lebanon","CountryName":"Lebanon","2":"LB","CountryISOCode1":"LB","3":"LBN","CountryISOCode2":"LBN"},{"0":"124","CountryID":"124","1":"Lesotho","CountryName":"Lesotho","2":"LS","CountryISOCode1":"LS","3":"LSO","CountryISOCode2":"LSO"},{"0":"125","CountryID":"125","1":"Liberia","CountryName":"Liberia","2":"LR","CountryISOCode1":"LR","3":"LBR","CountryISOCode2":"LBR"},{"0":"126","CountryID":"126","1":"Libya","CountryName":"Libya","2":"LY","CountryISOCode1":"LY","3":"LBY","CountryISOCode2":"LBY"},{"0":"127","CountryID":"127","1":"Liechtenstein","CountryName":"Liechtenstein","2":"LI","CountryISOCode1":"LI","3":"LIE","CountryISOCode2":"LIE"},{"0":"128","CountryID":"128","1":"Lithuania","CountryName":"Lithuania","2":"LT","CountryISOCode1":"LT","3":"LTU","CountryISOCode2":"LTU"},{"0":"129","CountryID":"129","1":"Luxembourg","CountryName":"Luxembourg","2":"LU","CountryISOCode1":"LU","3":"LUX","CountryISOCode2":"LUX"},{"0":"130","CountryID":"130","1":"Macao","CountryName":"Macao","2":"MO","CountryISOCode1":"MO","3":"MAC","CountryISOCode2":"MAC"},{"0":"131","CountryID":"131","1":"Macedonia, the Former Yugoslav Republic of","CountryName":"Macedonia, the Former Yugoslav Republic of","2":"MK","CountryISOCode1":"MK","3":"MKD","CountryISOCode2":"MKD"},{"0":"132","CountryID":"132","1":"Madagascar","CountryName":"Madagascar","2":"MG","CountryISOCode1":"MG","3":"MDG","CountryISOCode2":"MDG"},{"0":"133","CountryID":"133","1":"Malawi","CountryName":"Malawi","2":"MW","CountryISOCode1":"MW","3":"MWI","CountryISOCode2":"MWI"},{"0":"134","CountryID":"134","1":"Malaysia","CountryName":"Malaysia","2":"MY","CountryISOCode1":"MY","3":"MYS","CountryISOCode2":"MYS"},{"0":"135","CountryID":"135","1":"Maldives","CountryName":"Maldives","2":"MV","CountryISOCode1":"MV","3":"MDV","CountryISOCode2":"MDV"},{"0":"136","CountryID":"136","1":"Mali","CountryName":"Mali","2":"ML","CountryISOCode1":"ML","3":"MLI","CountryISOCode2":"MLI"},{"0":"137","CountryID":"137","1":"Malta","CountryName":"Malta","2":"MT","CountryISOCode1":"MT","3":"MLT","CountryISOCode2":"MLT"},{"0":"138","CountryID":"138","1":"Marshall Islands","CountryName":"Marshall Islands","2":"MH","CountryISOCode1":"MH","3":"MHL","CountryISOCode2":"MHL"},{"0":"139","CountryID":"139","1":"Martinique","CountryName":"Martinique","2":"MQ","CountryISOCode1":"MQ","3":"MTQ","CountryISOCode2":"MTQ"},{"0":"140","CountryID":"140","1":"Mauritania","CountryName":"Mauritania","2":"MR","CountryISOCode1":"MR","3":"MRT","CountryISOCode2":"MRT"},{"0":"141","CountryID":"141","1":"Mauritius","CountryName":"Mauritius","2":"MU","CountryISOCode1":"MU","3":"MUS","CountryISOCode2":"MUS"},{"0":"142","CountryID":"142","1":"Mayotte","CountryName":"Mayotte","2":"YT","CountryISOCode1":"YT","3":"MYT","CountryISOCode2":"MYT"},{"0":"143","CountryID":"143","1":"Mexico","CountryName":"Mexico","2":"MX","CountryISOCode1":"MX","3":"MEX","CountryISOCode2":"MEX"},{"0":"144","CountryID":"144","1":"Micronesia, Federated States of","CountryName":"Micronesia, Federated States of","2":"FM","CountryISOCode1":"FM","3":"FSM","CountryISOCode2":"FSM"},{"0":"145","CountryID":"145","1":"Moldova, Republic of","CountryName":"Moldova, Republic of","2":"MD","CountryISOCode1":"MD","3":"MDA","CountryISOCode2":"MDA"},{"0":"146","CountryID":"146","1":"Monaco","CountryName":"Monaco","2":"MC","CountryISOCode1":"MC","3":"MCO","CountryISOCode2":"MCO"},{"0":"147","CountryID":"147","1":"Mongolia","CountryName":"Mongolia","2":"MN","CountryISOCode1":"MN","3":"MNG","CountryISOCode2":"MNG"},{"0":"148","CountryID":"148","1":"Montenegro","CountryName":"Montenegro","2":"ME","CountryISOCode1":"ME","3":"MNE","CountryISOCode2":"MNE"},{"0":"149","CountryID":"149","1":"Montserrat","CountryName":"Montserrat","2":"MS","CountryISOCode1":"MS","3":"MSR","CountryISOCode2":"MSR"},{"0":"150","CountryID":"150","1":"Morocco","CountryName":"Morocco","2":"MA","CountryISOCode1":"MA","3":"MAR","CountryISOCode2":"MAR"},{"0":"151","CountryID":"151","1":"Mozambique","CountryName":"Mozambique","2":"MZ","CountryISOCode1":"MZ","3":"MOZ","CountryISOCode2":"MOZ"},{"0":"152","CountryID":"152","1":"Myanmar","CountryName":"Myanmar","2":"MM","CountryISOCode1":"MM","3":"MMR","CountryISOCode2":"MMR"},{"0":"153","CountryID":"153","1":"Namibia","CountryName":"Namibia","2":"NA","CountryISOCode1":"NA","3":"NAM","CountryISOCode2":"NAM"},{"0":"154","CountryID":"154","1":"Nauru","CountryName":"Nauru","2":"NR","CountryISOCode1":"NR","3":"NRU","CountryISOCode2":"NRU"},{"0":"155","CountryID":"155","1":"Nepal","CountryName":"Nepal","2":"NP","CountryISOCode1":"NP","3":"NPL","CountryISOCode2":"NPL"},{"0":"156","CountryID":"156","1":"Netherlands","CountryName":"Netherlands","2":"NL","CountryISOCode1":"NL","3":"NLD","CountryISOCode2":"NLD"},{"0":"157","CountryID":"157","1":"New Caledonia","CountryName":"New Caledonia","2":"NC","CountryISOCode1":"NC","3":"NCL","CountryISOCode2":"NCL"},{"0":"158","CountryID":"158","1":"New Zealand","CountryName":"New Zealand","2":"NZ","CountryISOCode1":"NZ","3":"NZL","CountryISOCode2":"NZL"},{"0":"159","CountryID":"159","1":"Nicaragua","CountryName":"Nicaragua","2":"NI","CountryISOCode1":"NI","3":"NIC","CountryISOCode2":"NIC"},{"0":"160","CountryID":"160","1":"Niger","CountryName":"Niger","2":"NE","CountryISOCode1":"NE","3":"NER","CountryISOCode2":"NER"},{"0":"161","CountryID":"161","1":"Nigeria","CountryName":"Nigeria","2":"NG","CountryISOCode1":"NG","3":"NGA","CountryISOCode2":"NGA"},{"0":"162","CountryID":"162","1":"Niue","CountryName":"Niue","2":"NU","CountryISOCode1":"NU","3":"NIU","CountryISOCode2":"NIU"},{"0":"163","CountryID":"163","1":"Norfolk Island","CountryName":"Norfolk Island","2":"NF","CountryISOCode1":"NF","3":"NFK","CountryISOCode2":"NFK"},{"0":"164","CountryID":"164","1":"Northern Mariana Islands","CountryName":"Northern Mariana Islands","2":"MP","CountryISOCode1":"MP","3":"MNP","CountryISOCode2":"MNP"},{"0":"165","CountryID":"165","1":"Norway","CountryName":"Norway","2":"NO","CountryISOCode1":"NO","3":"NOR","CountryISOCode2":"NOR"},{"0":"166","CountryID":"166","1":"Oman","CountryName":"Oman","2":"OM","CountryISOCode1":"OM","3":"OMN","CountryISOCode2":"OMN"},{"0":"167","CountryID":"167","1":"Pakistan","CountryName":"Pakistan","2":"PK","CountryISOCode1":"PK","3":"PAK","CountryISOCode2":"PAK"},{"0":"168","CountryID":"168","1":"Palau","CountryName":"Palau","2":"PW","CountryISOCode1":"PW","3":"PLW","CountryISOCode2":"PLW"},{"0":"170","CountryID":"170","1":"Panama","CountryName":"Panama","2":"PA","CountryISOCode1":"PA","3":"PAN","CountryISOCode2":"PAN"},{"0":"171","CountryID":"171","1":"Papua New Guinea","CountryName":"Papua New Guinea","2":"PG","CountryISOCode1":"PG","3":"PNG","CountryISOCode2":"PNG"},{"0":"172","CountryID":"172","1":"Paraguay","CountryName":"Paraguay","2":"PY","CountryISOCode1":"PY","3":"PRY","CountryISOCode2":"PRY"},{"0":"173","CountryID":"173","1":"Peru","CountryName":"Peru","2":"PE","CountryISOCode1":"PE","3":"PER","CountryISOCode2":"PER"},{"0":"174","CountryID":"174","1":"Philippines","CountryName":"Philippines","2":"PH","CountryISOCode1":"PH","3":"PHL","CountryISOCode2":"PHL"},{"0":"175","CountryID":"175","1":"Pitcairn","CountryName":"Pitcairn","2":"PN","CountryISOCode1":"PN","3":"PCN","CountryISOCode2":"PCN"},{"0":"176","CountryID":"176","1":"Poland","CountryName":"Poland","2":"PL","CountryISOCode1":"PL","3":"POL","CountryISOCode2":"POL"},{"0":"177","CountryID":"177","1":"Portugal","CountryName":"Portugal","2":"PT","CountryISOCode1":"PT","3":"PRT","CountryISOCode2":"PRT"},{"0":"178","CountryID":"178","1":"Puerto Rico","CountryName":"Puerto Rico","2":"PR","CountryISOCode1":"PR","3":"PRI","CountryISOCode2":"PRI"},{"0":"179","CountryID":"179","1":"Qatar","CountryName":"Qatar","2":"QA","CountryISOCode1":"QA","3":"QAT","CountryISOCode2":"QAT"},{"0":"183","CountryID":"183","1":"R\u00e9union","CountryName":"R\u00e9union","2":"RE","CountryISOCode1":"RE","3":"REU","CountryISOCode2":"REU"},{"0":"180","CountryID":"180","1":"Romania","CountryName":"Romania","2":"RO","CountryISOCode1":"RO","3":"ROU","CountryISOCode2":"ROU"},{"0":"181","CountryID":"181","1":"Russian Federation","CountryName":"Russian Federation","2":"RU","CountryISOCode1":"RU","3":"RUS","CountryISOCode2":"RUS"},{"0":"182","CountryID":"182","1":"Rwanda","CountryName":"Rwanda","2":"RW","CountryISOCode1":"RW","3":"RWA","CountryISOCode2":"RWA"},{"0":"184","CountryID":"184","1":"Saint Barth\u00e9lemy","CountryName":"Saint Barth\u00e9lemy","2":"BL","CountryISOCode1":"BL","3":"BLM","CountryISOCode2":"BLM"},{"0":"185","CountryID":"185","1":"Saint Helena, Ascension and Tristan da Cunha","CountryName":"Saint Helena, Ascension and Tristan da Cunha","2":"SH","CountryISOCode1":"SH","3":"SHN","CountryISOCode2":"SHN"},{"0":"186","CountryID":"186","1":"Saint Kitts and Nevis","CountryName":"Saint Kitts and Nevis","2":"KN","CountryISOCode1":"KN","3":"KNA","CountryISOCode2":"KNA"},{"0":"187","CountryID":"187","1":"Saint Lucia","CountryName":"Saint Lucia","2":"LC","CountryISOCode1":"LC","3":"LCA","CountryISOCode2":"LCA"},{"0":"188","CountryID":"188","1":"Saint Martin (French part)","CountryName":"Saint Martin (French part)","2":"MF","CountryISOCode1":"MF","3":"MAF","CountryISOCode2":"MAF"},{"0":"189","CountryID":"189","1":"Saint Pierre and Miquelon","CountryName":"Saint Pierre and Miquelon","2":"PM","CountryISOCode1":"PM","3":"SPM","CountryISOCode2":"SPM"},{"0":"190","CountryID":"190","1":"Saint Vincent and the Grenadines","CountryName":"Saint Vincent and the Grenadines","2":"VC","CountryISOCode1":"VC","3":"VCT","CountryISOCode2":"VCT"},{"0":"191","CountryID":"191","1":"Samoa","CountryName":"Samoa","2":"WS","CountryISOCode1":"WS","3":"WSM","CountryISOCode2":"WSM"},{"0":"192","CountryID":"192","1":"San Marino","CountryName":"San Marino","2":"SM","CountryISOCode1":"SM","3":"SMR","CountryISOCode2":"SMR"},{"0":"193","CountryID":"193","1":"Sao Tome and Principe","CountryName":"Sao Tome and Principe","2":"ST","CountryISOCode1":"ST","3":"STP","CountryISOCode2":"STP"},{"0":"194","CountryID":"194","1":"Saudi Arabia","CountryName":"Saudi Arabia","2":"SA","CountryISOCode1":"SA","3":"SAU","CountryISOCode2":"SAU"},{"0":"195","CountryID":"195","1":"Senegal","CountryName":"Senegal","2":"SN","CountryISOCode1":"SN","3":"SEN","CountryISOCode2":"SEN"},{"0":"196","CountryID":"196","1":"Serbia","CountryName":"Serbia","2":"RS","CountryISOCode1":"RS","3":"SRB","CountryISOCode2":"SRB"},{"0":"197","CountryID":"197","1":"Seychelles","CountryName":"Seychelles","2":"SC","CountryISOCode1":"SC","3":"SYC","CountryISOCode2":"SYC"},{"0":"198","CountryID":"198","1":"Sierra Leone","CountryName":"Sierra Leone","2":"SL","CountryISOCode1":"SL","3":"SLE","CountryISOCode2":"SLE"},{"0":"199","CountryID":"199","1":"Singapore","CountryName":"Singapore","2":"SG","CountryISOCode1":"SG","3":"SGP","CountryISOCode2":"SGP"},{"0":"200","CountryID":"200","1":"Sint Maarten (Dutch part)","CountryName":"Sint Maarten (Dutch part)","2":"SX","CountryISOCode1":"SX","3":"SXM","CountryISOCode2":"SXM"},{"0":"201","CountryID":"201","1":"Slovakia","CountryName":"Slovakia","2":"SK","CountryISOCode1":"SK","3":"SVK","CountryISOCode2":"SVK"},{"0":"202","CountryID":"202","1":"Slovenia","CountryName":"Slovenia","2":"SI","CountryISOCode1":"SI","3":"SVN","CountryISOCode2":"SVN"},{"0":"203","CountryID":"203","1":"Solomon Islands","CountryName":"Solomon Islands","2":"SB","CountryISOCode1":"SB","3":"SLB","CountryISOCode2":"SLB"},{"0":"204","CountryID":"204","1":"Somalia","CountryName":"Somalia","2":"SO","CountryISOCode1":"SO","3":"SOM","CountryISOCode2":"SOM"},{"0":"205","CountryID":"205","1":"South Africa","CountryName":"South Africa","2":"ZA","CountryISOCode1":"ZA","3":"ZAF","CountryISOCode2":"ZAF"},{"0":"207","CountryID":"207","1":"South Sudan","CountryName":"South Sudan","2":"SS","CountryISOCode1":"SS","3":"SSD","CountryISOCode2":"SSD"},{"0":"208","CountryID":"208","1":"Spain","CountryName":"Spain","2":"ES","CountryISOCode1":"ES","3":"ESP","CountryISOCode2":"ESP"},{"0":"209","CountryID":"209","1":"Sri Lanka","CountryName":"Sri Lanka","2":"LK","CountryISOCode1":"LK","3":"LKA","CountryISOCode2":"LKA"},{"0":"210","CountryID":"210","1":"Sudan","CountryName":"Sudan","2":"SD","CountryISOCode1":"SD","3":"SDN","CountryISOCode2":"SDN"},{"0":"211","CountryID":"211","1":"Suriname","CountryName":"Suriname","2":"SR","CountryISOCode1":"SR","3":"SUR","CountryISOCode2":"SUR"},{"0":"212","CountryID":"212","1":"Svalbard and Jan Mayen","CountryName":"Svalbard and Jan Mayen","2":"SJ","CountryISOCode1":"SJ","3":"SJM","CountryISOCode2":"SJM"},{"0":"213","CountryID":"213","1":"Swaziland","CountryName":"Swaziland","2":"SZ","CountryISOCode1":"SZ","3":"SWZ","CountryISOCode2":"SWZ"},{"0":"214","CountryID":"214","1":"Sweden","CountryName":"Sweden","2":"SE","CountryISOCode1":"SE","3":"SWE","CountryISOCode2":"SWE"},{"0":"215","CountryID":"215","1":"Switzerland","CountryName":"Switzerland","2":"CH","CountryISOCode1":"CH","3":"CHE","CountryISOCode2":"CHE"},{"0":"216","CountryID":"216","1":"Syrian Arab Republic","CountryName":"Syrian Arab Republic","2":"SY","CountryISOCode1":"SY","3":"SYR","CountryISOCode2":"SYR"},{"0":"217","CountryID":"217","1":"Taiwan, Province of China","CountryName":"Taiwan, Province of China","2":"TW","CountryISOCode1":"TW","3":"TWN","CountryISOCode2":"TWN"},{"0":"218","CountryID":"218","1":"Tajikistan","CountryName":"Tajikistan","2":"TJ","CountryISOCode1":"TJ","3":"TJK","CountryISOCode2":"TJK"},{"0":"219","CountryID":"219","1":"Tanzania, United Republic of","CountryName":"Tanzania, United Republic of","2":"TZ","CountryISOCode1":"TZ","3":"TZA","CountryISOCode2":"TZA"},{"0":"220","CountryID":"220","1":"Thailand","CountryName":"Thailand","2":"TH","CountryISOCode1":"TH","3":"THA","CountryISOCode2":"THA"},{"0":"221","CountryID":"221","1":"Timor-Leste","CountryName":"Timor-Leste","2":"TL","CountryISOCode1":"TL","3":"TLS","CountryISOCode2":"TLS"},{"0":"222","CountryID":"222","1":"Togo","CountryName":"Togo","2":"TG","CountryISOCode1":"TG","3":"TGO","CountryISOCode2":"TGO"},{"0":"223","CountryID":"223","1":"Tokelau","CountryName":"Tokelau","2":"TK","CountryISOCode1":"TK","3":"TKL","CountryISOCode2":"TKL"},{"0":"224","CountryID":"224","1":"Tonga","CountryName":"Tonga","2":"TO","CountryISOCode1":"TO","3":"TON","CountryISOCode2":"TON"},{"0":"225","CountryID":"225","1":"Trinidad and Tobago","CountryName":"Trinidad and Tobago","2":"TT","CountryISOCode1":"TT","3":"TTO","CountryISOCode2":"TTO"},{"0":"226","CountryID":"226","1":"Tunisia","CountryName":"Tunisia","2":"TN","CountryISOCode1":"TN","3":"TUN","CountryISOCode2":"TUN"},{"0":"227","CountryID":"227","1":"Turkey","CountryName":"Turkey","2":"TR","CountryISOCode1":"TR","3":"TUR","CountryISOCode2":"TUR"},{"0":"228","CountryID":"228","1":"Turkmenistan","CountryName":"Turkmenistan","2":"TM","CountryISOCode1":"TM","3":"TKM","CountryISOCode2":"TKM"},{"0":"229","CountryID":"229","1":"Turks and Caicos Islands","CountryName":"Turks and Caicos Islands","2":"TC","CountryISOCode1":"TC","3":"TCA","CountryISOCode2":"TCA"},{"0":"230","CountryID":"230","1":"Tuvalu","CountryName":"Tuvalu","2":"TV","CountryISOCode1":"TV","3":"TUV","CountryISOCode2":"TUV"},{"0":"231","CountryID":"231","1":"Uganda","CountryName":"Uganda","2":"UG","CountryISOCode1":"UG","3":"UGA","CountryISOCode2":"UGA"},{"0":"232","CountryID":"232","1":"Ukraine","CountryName":"Ukraine","2":"UA","CountryISOCode1":"UA","3":"UKR","CountryISOCode2":"UKR"},{"0":"233","CountryID":"233","1":"United Arab Emirates","CountryName":"United Arab Emirates","2":"AE","CountryISOCode1":"AE","3":"ARE","CountryISOCode2":"ARE"},{"0":"234","CountryID":"234","1":"United Kingdom","CountryName":"United Kingdom","2":"GB","CountryISOCode1":"GB","3":"GBR","CountryISOCode2":"GBR"},{"0":"235","CountryID":"235","1":"United States","CountryName":"United States","2":"US","CountryISOCode1":"US","3":"USA","CountryISOCode2":"USA"},{"0":"236","CountryID":"236","1":"United States Minor Outlying Islands","CountryName":"United States Minor Outlying Islands","2":"UM","CountryISOCode1":"UM","3":"UMI","CountryISOCode2":"UMI"},{"0":"237","CountryID":"237","1":"Uruguay","CountryName":"Uruguay","2":"UY","CountryISOCode1":"UY","3":"URY","CountryISOCode2":"URY"},{"0":"238","CountryID":"238","1":"Uzbekistan","CountryName":"Uzbekistan","2":"UZ","CountryISOCode1":"UZ","3":"UZB","CountryISOCode2":"UZB"},{"0":"239","CountryID":"239","1":"Vanuatu","CountryName":"Vanuatu","2":"VU","CountryISOCode1":"VU","3":"VUT","CountryISOCode2":"VUT"},{"0":"240","CountryID":"240","1":"Venezuela, Bolivarian Republic of","CountryName":"Venezuela, Bolivarian Republic of","2":"VE","CountryISOCode1":"VE","3":"VEN","CountryISOCode2":"VEN"},{"0":"241","CountryID":"241","1":"Viet Nam","CountryName":"Viet Nam","2":"VN","CountryISOCode1":"VN","3":"VNM","CountryISOCode2":"VNM"},{"0":"242","CountryID":"242","1":"Virgin Islands, British","CountryName":"Virgin Islands, British","2":"VG","CountryISOCode1":"VG","3":"VGB","CountryISOCode2":"VGB"},{"0":"243","CountryID":"243","1":"Virgin Islands, U.S.","CountryName":"Virgin Islands, U.S.","2":"VI","CountryISOCode1":"VI","3":"VIR","CountryISOCode2":"VIR"},{"0":"244","CountryID":"244","1":"Wallis and Futuna","CountryName":"Wallis and Futuna","2":"WF","CountryISOCode1":"WF","3":"WLF","CountryISOCode2":"WLF"},{"0":"245","CountryID":"245","1":"Western Sahara","CountryName":"Western Sahara","2":"EH","CountryISOCode1":"EH","3":"ESH","CountryISOCode2":"ESH"},{"0":"246","CountryID":"246","1":"Yemen","CountryName":"Yemen","2":"YE","CountryISOCode1":"YE","3":"YEM","CountryISOCode2":"YEM"},{"0":"247","CountryID":"247","1":"Zambia","CountryName":"Zambia","2":"ZM","CountryISOCode1":"ZM","3":"ZMB","CountryISOCode2":"ZMB"},{"0":"248","CountryID":"248","1":"Zimbabwe","CountryName":"Zimbabwe","2":"ZW","CountryISOCode1":"ZW","3":"ZWE","CountryISOCode2":"ZWE"}]; var regions = []; for (k = 0; k < regions.length; k++) { //console.log(regions[k].region_name); } jQuery(document).ready(function($){ if($("input[rel^='sk_city']").length > 0) { $( "input[rel^='sk_city']" ).autocomplete({ source: function( request, response ) { $.ajax( { url: "https://festivals.premastrologer.com/includes/city_search.php", dataType: "jsonp", data: { term: request.term }, success: function( data ) { response( data ); } } ); }, minLength: 3, select: function( event, ui ) { if($(this).attr("data-countryid") != "") { cou_obj = jQuery($(this).attr("data-countryid")); if(cou_obj.length > 0) cou_obj.val(ui.item.CountryCode).change(); } if($(this).attr("data-regionid") != "") { reg2_obj = jQuery($(this).attr("data-regionid")); if(reg2_obj.length > 0) reg2_obj.val(ui.item.RegionCode); } } } ); } if($("select[rel^='sk_country']").length > 0) { $("select[rel^='sk_country']").each(function( index ) { country_string = ""; for (k = 0; k < countries.length; k++) { if($(this).attr("data-value") != null && $(this).attr("data-value") != undefined && $(this).attr("data-value") != "" && (String($(this).attr("data-value")).toLowerCase()==String(countries[k].CountryISOCode1).toLowerCase() || String($(this).attr("data-value")).toLowerCase()==String(countries[k].CountryName).toLowerCase())) country_string = country_string + ""; else country_string = country_string + ""; } $(this).empty(); $(this).append(country_string); $(this).on("change",function(){ ChangeRegionBox($(this)); }); ChangeRegionBox($(this)); }); } function ChangeRegionBox(obj) { reg_obj = jQuery(obj.attr("data-regionid")); parent_obj = reg_obj.parent().eq(0); region_string = ""; for (k = 0; k < countries.length; k++) { for (i = 0; i < regions.length; i++) { if(countries[k].CountryISOCode1==obj.val() && regions[i].country_id==countries[k].CountryID) { region_string = region_string + ""; } } } if(reg_obj.length > 0) { if(reg_obj.is('input')) { if(region_string != "") { if(reg_obj.parent("[data-select!='']").length > 0) { parent_obj.append(reg_obj.parent("[data-select!='']").attr("data-select")); reg_obj.remove(); } jQuery(obj.attr("data-regionid")).empty(); jQuery(obj.attr("data-regionid")).append(region_string); } else { } } if(reg_obj.is('select')) { reg_obj.empty(); if(region_string != "") { reg_obj.append(region_string); } else { if(reg_obj.parent("[data-input!='']").length > 0) { parent_obj.append(reg_obj.parent("[data-input!='']").attr("data-input")); reg_obj.remove(); } } } if(jQuery(obj.attr("data-regionid")).attr("value") != "") { jQuery(obj.attr("data-regionid")).val(jQuery(obj.attr("data-regionid")).attr("value")); } else if(jQuery(obj.attr("data-regionid")).attr("data-val") != "") { jQuery(obj.attr("data-regionid")).val(jQuery(obj.attr("data-regionid")).attr("data-val")); } if(obj.attr("data-regionval") != undefined) { jQuery(obj.attr("data-regionid")).val(obj.attr("data-regionval")); } } } }); function ShowModalView(source, title, type, el) { title = title ? title : ""; type = type ? type : "html"; switch (type) { case "iframe": BootstrapDialog.show({ title: title, size: BootstrapDialog.SIZE_WIDE, message: $('') }); break; case "image": BootstrapDialog.show({ title: title, size: BootstrapDialog.SIZE_WIDE, message: $('' + title + '') }); break; case "ajax": BootstrapDialog.show({ title: title, size: BootstrapDialog.SIZE_WIDE, //message: $('
').load(source), message: function (dialog) { var $message = $('
'); $message.load(source, function (response, status, xhr) { $message.removeClass("loading"); try { } catch (ex) { alert(ex); } }); return $message; }, onshow: function (dialogRef) { try { } catch (ex) { alert(ex); } } }); break; case "html": default: BootstrapDialog.show({ title: title, size: BootstrapDialog.SIZE_WIDE, message: $(source).html() }); break; } return false; }