function wm()
{
	var sum = parseFloat(document.WM.sum.value);
	if(sum > 0)
	{                                 
		var kurs = new Array(1,32,0.76,8.1,9000,2100);
		var maxk = new Array(50,1500,50,250,100000,50000);
		var kom = 0.008*sum;
		var fin;
		var cash = parseInt(document.WM.cash.value);
		if(kom > maxk[cash]) kom = maxk[cash];
		fin = sum/kurs[cash];
		document.WM.kom.value = sum+kom;
		document.WM.fin.value = Math.floor(fin);
	}
}

function counter()
{
	js = 11;
	d=document;var a='';
	a+=';r='+escape(d.referrer);
	a+=';j='+navigator.javaEnabled();
	s=screen;a+=';s='+s.width+'*'+s.height;
	a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth);
	d.write('<a href="http://top.mail.ru/jump?from=665202"'+' target=_blank><img src="http://top.list.ru/counter'+'?id=665202;t=69;js='+js+a+';rand='+Math.random()+'" alt="Рейтинг@Mail.ru"'+' border=0 height=31 width=38><\/a> ');
	d.write(' <a href="http://www.liveinternet.ru/click" '+
	'target=_blank><img src="http://counter.yadro.ru/hit?t44.2;r'+
	escape(d.referrer)+((typeof(screen)=='undefined')?'':
	';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?
	screen.colorDepth:screen.pixelDepth))+';u'+escape(d.URL)+
	';'+Math.random()+
	'" border=0 width=31 height=31 alt="liveinternet.ru"></a>');
}
