<script language='JavaScript' src='{THEME}/lineage/js/purse.js'></script>

<form class="standartForm" method="POST" action='/?do=lineage&module=donation&action=purse&act=pay'>
<center>
<table style="width:500px;" cellspacing="1px">

	<tr><td width="150px"><b>Способ перевода:</b><td>
		<select name=billing id=billingList onchange="changeBilling()">
		<option value=''>Выберите способ перевода</option>
		[wm]<option value='webmoney'>Webmoney</option>[/wm]
		[sms]<option value='sms'>СМС-сообщение</option>[/sms]
		</select>
	
	<tr style='display:none' id='tr_unit'><td width="150px"><b>Вид валюты:</b><br />
		<td>
			[wmz]<input type=radio class=radio name='unit' value='wmz' id='wmz' onclick='changeBilling()' onchange='changeBilling()' checked>USD[/wmz]
			[wmr]<input type=radio class=radio name='unit' value='wmr' id='wmr' onclick='changeBilling()' onchange='changeBilling()'>RUB[/wmr]
			[wme]<input type=radio class=radio name='unit' value='wme' id='wme' onclick='changeBilling()' onchange='changeBilling()'>EUR[/wme]
			[wmu]<input type=radio class=radio name='unit' value='wmu' id='wmu' onclick='changeBilling()' onchange='changeBilling()'>UKR[/wmu]
	<tr style='display:none' id='tr_amount'><td width="150px"><b>Вы получите:</b><td><input type=text class=field id='local_amount' name='amount' onchange='changeBillingAmount(true)' style='width:150px' value=10> кредитов<br />
	<tr style='display:none' id='tr_price'><td width="150px"><b>Сумма:</b><td><input type=text class=field id='local_price' onchange='changeBillingAmount()'><br />
	<tr style='display:none' id='tr_1'><td width="150px" colspan=2>&nbsp;<br />
	<tr style='display:none' id='tr_desc'><td width="150px" style="vertical-align: middle"><b>Описание:</b></td><td valign=top colspan=2 class=left><div id='desc'></div><br />
	<tr style='display:none' id='tr_2'><td width="150px" colspan=2>&nbsp;<br />
	<tr style='display:none' id='tr_next'><td width="150px" colspan=2 align=center nowrap><input type=submit name=payit class=submit value="Продолжить"  style='width:100px' >
</table>
</center>
</form>

<div id='webmoney' style='display:none'>WebMoney это быстрый способ пожертвования, переводы в котором происходят мгновенно. Кредиты зачисляются мгновенно.</div>

<script language='JavaScript'>
	var summa = parseFloat('{$summa}');
	rates['wmz'] = 1;
	rates['wmr'] = parseFloat('{rate_wmr}');
	rates['wme'] = parseFloat('{rate_wme}');
	rates['wmu'] = parseFloat('{rate_wmu}');
	changeBilling();
</script>
