function re(s) {
	var r="";
	for (var i=0;i<s.length;i++)
	if (s.charAt(i)==",")
		r=r+".";
	else
		r=r+s.charAt(i);
	var v=parseFloat(r);
	if (isNaN(v)) v=0;
	return v;
}
function Conv(a) 
{
	a.answer.value=re(a.amount.value)*a.sell.options[a.sell.selectedIndex].value / a.buy.options[a.buy.selectedIndex].value;
}
function Conv1(a) 
{
	a.amount.value=re(a.answer.value)*a.buy.options[a.buy.selectedIndex].value / a.sell.options[a.sell.selectedIndex].value;
}

