function convert()
{
	var divConv = document.getElementById('jsConv');
	divConv.innerHTML = "...";
	var xhttp = null;
	if (window.XMLHttpRequest)
	{
		xhttp=new XMLHttpRequest();
	}
	else
	{
		xhttp=new ActiveXObject('Microsoft.XMLHTTP');
	}
	var amount = document.getElementById('amount').innerHTML;
	var from = document.getElementById('from');
	from = from.options[from.selectedIndex].text;
	var to = document.getElementById('to');
	to = to.options[to.selectedIndex].text;
	var qurl = '/exchange-rate/'+from+'-'+to+'.xml';
	// alert(qurl);
	xhttp.open('GET',qurl,false);
	xhttp.send('');
	var xmlDoc = xhttp.responseXML;
	var rate = xmlDoc.getElementsByTagName("exchangerate")[0].getAttribute("rate");
	divConv.innerHTML = '(@'+rate+')';
}

