<?xml version="1.0" encoding="UTF-8"?><ajax>
	<cmd p="title"><![CDATA[ SMS payment]]></cmd>
	<cmd p="content"><![CDATA[
	<div style="padding:5px;font-size:12px;" id="sms_ajaxform" class="sms_ajaxform">
		<div style="padding-bottom:5px" id="enter_code" class="enter_code"></div>
		<div style="padding-bottom:5px" id="select_country" class="select_country"></div>
		<div style="padding-bottom:5px" id="select_provider" class="select_provider"></div>
		<div style="padding-bottom:5px" id="sms_info" class="sms_info"></div>
	</div>

	<script>
	sms_info_msg="To receive a password, send a message <span style=\"padding:0 2px;background-color:#fbf7a7;color:#000000;font-weight:bold;\">%PREFIX% %KEY%</span> to <span style=\"padding:0 2px;background-color:#fbf7a7;color:#000000;font-weight:bold;\">%NUMBER%</span>. The cost of the message is <span style=\"padding:0 2px;background-color:#fbf7a7;color:#000000;font-weight:bold;\">%PRICE% %CURRENCY% (%VAT%)</span>. You will receive a password in the reply message. Pay attention to the format of the message and the space between the words. All the letters in the message should be Latin. If there is an error in the message, the service is considered to be paid. ";
	ucoz_countrylist={'_AD':'Andorra','_AE':'United Arab Emirates','_AF':'Afghanistan','_AG':'Antigua and Barbuda','_AL':'Albania','_AM':'Armenia','_AN':'Netherlands Antilles','_AO':'Angola','_AR':'Argentina','_AS':'American Samoa','_AT':'Austria','_AU':'Australia','_AW':'Aruba','_AZ':'Azerbaijan','_BA':'Bosnia and Herzegovina','_BB':'Barbados','_BD':'Bangladesh','_BE':'Belgium','_BF':'Burkina Faso','_BG':'Bulgaria','_BH':'Bahrain','_BI':'Burundi','_BJ':'Benin','_BM':'Bermuda','_BN':'Brunei Darussalam','_BO':'Bolivia','_BR':'Brazil','_BS':'Bahamas','_BT':'Bhutan','_BW':'Botswana','_BY':'Belarus','_BZ':'Belize','_CA':'Canada','_CD':'Congo','_CF':'Central African Republic','_CG':'Congo','_CH':'Switzerland','_CI':'Cote D`Ivoire','_CK':'Cook Islands','_CL':'Chile','_CM':'Cameroon','_CN':'China','_CO':'Colombia','_CR':'Costa Rica','_RS':'Serbia','_CU':'Cuba','_CV':'Cape Verde','_CY':'Cyprus','_CZ':'Czech Republic','_DE':'Germany','_DJ':'Djibouti','_DK':'Denmark','_DM':'Dominica','_DO':'Dominican Republic','_DZ':'Algeria','_EC':'Ecuador','_EE':'Estonia','_EG':'Egypt','_ER':'Eritrea','_ES':'Spain','_ET':'Ethiopia','_FI':'Finland','_FJ':'Fiji','_FK':'Falkland Islands (Malvinas)','_FM':'Federated States of Micronesia','_FO':'Faroe Islands','_FR':'France','_GA':'Gabon','_GB':'United Kingdom','_GD':'Grenada','_GE':'Georgia','_GF':'French Guiana','_GH':'Ghana','_GI':'Gibraltar','_GL':'Greenland','_GM':'Gambia','_GN':'Guinea','_GP':'Guadeloupe','_GQ':'Equatorial Guinea','_GR':'Greece','_GT':'Guatemala','_GU':'Guam','_GW':'Guinea-Bissau','_GY':'Guyana','_HK':'Hong Kong','_HN':'Honduras','_HR':'Croatia','_HT':'Haiti','_HU':'Hungary','_ID':'Indonesia','_IE':'Ireland','_IL':'Israel','_IN':'India','_IO':'British Indian Ocean Territory','_IQ':'Iraq','_IR':'Iran','_IS':'Iceland','_IT':'Italy','_JM':'Jamaica','_JO':'Jordan','_JP':'Japan','_KE':'Kenya','_KG':'Kyrgyzstan','_KH':'Cambodia','_KI':'Kiribati','_KM':'Comoros','_KN':'Saint Kitts and Nevis','_KR':'Korea','_KW':'Kuwait','_KY':'Cayman Islands','_KZ':'Kazakhstan','_LA':'Lao People`s Democratic Republic','_LB':'Lebanon','_LC':'Saint Lucia','_LI':'Liechtenstein','_LK':'Sri Lanka','_LR':'Liberia','_LS':'Lesotho','_LT':'Lithuania','_LU':'Luxembourg','_LV':'Latvia','_LY':'Libyan Arab Jamahiriya','_MA':'Morocco','_MC':'Monaco','_MD':'Moldova','_MG':'Madagascar','_MH':'Marshall Islands','_MK':'Macedonia','_ML':'Mali','_MM':'Myanmar','_MN':'Mongolia','_MO':'Macao','_MP':'N. Mariana Islands','_MQ':'Martinique','_MR':'Mauritania','_MT':'Malta','_MU':'Mauritius','_MV':'Maldives','_MW':'Malawi','_MX':'Mexico','_MY':'Malaysia','_MZ':'Mozambique','_NA':'Namibia','_NC':'New Caledonia','_NE':'Niger','_NG':'Nigeria','_NI':'Nicaragua','_NL':'Netherlands','_NO':'Norway','_NP':'Nepal','_NR':'Nauru','_NZ':'New Zealand','_OM':'Oman','_PA':'Panama','_PE':'Peru','_PF':'French Polynesia','_PG':'Papua New Guinea','_PH':'Philippines','_PK':'Pakistan','_PL':'Poland','_PR':'Puerto Rico','_PS':'Palestinian Territory','_PT':'Portugal','_PW':'Palau','_PY':'Paraguay','_QA':'Qatar','_RE':'Reunion','_RO':'Romania','_RU':'Russian Federation','_RW':'Rwanda','_SA':'Saudi Arabia','_SB':'Solomon Islands','_SC':'Seychelles','_SD':'Sudan','_SE':'Sweden','_SG':'Singapore','_SI':'Slovenia','_SK':'Slovakia','_SL':'Sierra Leone','_SM':'San Marino','_SN':'Senegal','_SO':'Somalia','_SR':'Suriname','_ST':'Sao Tome and Principe','_SV':'El Salvador','_SY':'Syrian Arab Republic','_SZ':'Swaziland','_TC':'Turks and Caicos Islands','_TD':'Chad','_TF':'French Southern Territories','_TG':'Togo','_TH':'Thailand','_TJ':'Tajikistan','_TK':'Tokelau','_TL':'Timor-Leste','_TM':'Turkmenistan','_TN':'Tunisia','_TO':'Tonga','_TR':'Turkey','_TT':'Trinidad and Tobago','_TV':'Tuvalu','_TW':'Taiwan','_TZ':'Tanzania','_UA':'Ukraine','_UG':'Uganda','_US':'United States','_UY':'Uruguay','_UZ':'Uzbekistan','_VA':'Vatican City State','_VC':'Saint Vincent and the Grenadines','_VE':'Venezuela','_VG':'Virgin Islands (UK)','_VI':'Virgin Islands (US)','_VN':'Viet Nam','_VU':'Vanuatu','_WS':'Samoa','_YE':'Yemen','_ZA':'South Africa','_ZM':'Zambia','_ZW':'Zimbabwe','_AI':'Anguilla','_AQ':'Antarctica','_AX':'Åland Islands','_BV':'Bouvet Island','_GS':'South Georgia and the South Sandwich Islands','_IM':'Isle of Man','_JE':'Jersey','_ME':'Montenegro','_MS':'Montserrat','_NF':'Norfolk Island','_NU':'Niue','_UM':'United States Minor Outlying Islands','_WF':'Wallis and Futuna','_YT':'Mayotte','_KP':'Guernsey and Alderney','_SH':'Korea (North)','_PM':'Saint Helena','_SJ':'Saint Pierre and Miquelon','_EH':'Svalbard and Jan Mayen','_PN':'Western Sahara'};
	ucoz_countrylist['_UK']=ucoz_countrylist['_GB'];
	$(document).ready(function() {
		jQuery.getScript("http://key.smscoin.com/language/english/json/key/", function() {
			var country_detected=-1;
			var smscode='<div style="padding-bottom:5px;">If you have already received a message with a password, type it in here:</div>'
				+ '<form method="POST"><input type="hidden" name="s_key" value="" /><input name="s_pair" type="text" value="" />&nbsp;<input type="submit" value="Continue" onclick="this.form.action=window.location.pathname"></form>';
			JSONResponse.sort(sortfunction);
			var countrylist='<hr><label for="s_country">Select the country:&nbsp;</label><select name="s_country" id="s_country" onchange="showproviders($(this).val())">'
				+ '<option value="-1" selected>-----</option>';
			$.each(JSONResponse, function(i,item) {
				if (item.country == 'US') {
					countrylist += '<option value="' + i + '" selected>' + ucoz_countrylist['_'+item.country] + '</option>';
					country_detected=i;
				} else countrylist += '<option value="' + i + '">' + (typeof ucoz_countrylist['_'+item.country] != 'undefined' ? ucoz_countrylist['_'+item.country] : item.country_name) + '</option>';
			});
			countrylist += '</select>';
			$('#enter_code').html(smscode);
			$('#select_country').html(countrylist);
			if (country_detected >= 0) showproviders(country_detected);
		});
	});

	function showproviders(countryidx) {
		var providerslist;
		if (countryidx<0) {
			$('#select_provider').html('');
			$('#sms_info').html('');
		} else if (typeof JSONResponse[countryidx].providers[0] != 'undefined') {
			$('#sms_info').html('');
			providerslist='<label for="s_provider">Select the mobile network operator:&nbsp;</label><select name="s_provider" id="s_provider" onchange="showsmsinfo($(this).val())">'+
			'<option value="'+countryidx+'|-1" selected>-----</option>';
			$.each(JSONResponse[countryidx].providers,function(i,item) {providerslist += '<option value="'+countryidx+"|"+i+'">'+item.name+'</option>';});
			providerslist += '</select>';
			$('#select_provider').html(providerslist);
		} else {
			var smsdata=JSONResponse[countryidx];
			$('#select_provider').html('');
			$('#sms_info').html(sms_info_msg.replace(/%([A-Z]+)%/g,function(str,p1) {
				if (p1 == 'PREFIX')   return (smsdata.rewrite != '' ? smsdata.rewrite : smsdata.prefix);
				if (p1 == 'KEY')      return ;
				if (p1 == 'NUMBER')   return smsdata.number;
				if (p1 == 'PRICE')    return smsdata.price;
				if (p1 == 'CURRENCY') return smsdata.currency;
				if (p1 == 'VAT')      return (smsdata.vat ? "including VAT" : "not including VAT");
			})+(smsdata.special != '' ? " "+smsdata.special : ""));
		}
	}

	function showsmsinfo(smsinfoobject) {
		var smsdata,idxdata,
		idxdata=smsinfoobject.split("|");
		if ((idxdata[0]<0) || (idxdata[1]<0)) $('#sms_info').html('');
		else {
			smsdata=JSONResponse[idxdata[0]].providers[idxdata[1]];
			$('#sms_info').html(sms_info_msg.replace(/%([A-Z]+)%/g,function(str,p1) {
				if (p1 == 'PREFIX')   return (smsdata.rewrite != '' ? smsdata.rewrite : smsdata.prefix);
				if (p1 == 'KEY')      return ;
				if (p1 == 'NUMBER')   return smsdata.number;
				if (p1 == 'PRICE')    return smsdata.price;
				if (p1 == 'CURRENCY') return smsdata.currency;
				if (p1 == 'VAT')      return (smsdata.vat ? "including VAT" : "not including VAT");
			})+(smsdata.special != '' ? " "+smsdata.special : ""));
		}
	}

	function sortfunction(a, b) {
		var v1=(typeof ucoz_countrylist['_'+a.country] != 'undefined' ? ucoz_countrylist['_'+a.country] : a.country_name);
		var v2=(typeof ucoz_countrylist['_'+b.country] != 'undefined' ? ucoz_countrylist['_'+b.country] : b.country_name);
		if (v1>v2) return 1;
		else if (v1<v2) return -1;
		else return 0;
	}
	</script> ]]></cmd></ajax>