
	
function get_currency() {
currency_from = "EUR";
currency_to = "PLN";

/* If no currencies are selected then tell the user */
/* Send the request to the server */
var url1 = "currency_conv.php?" + "currency_from=" + currency_from + "&currency_to=" + currency_to;
var url2 = "currency_conv.php?" + "currency_from=" + currency_to + "&currency_to=" + currency_from;
$.get(url1, function(data){
	data=parseFloat(data)*$("#convert1").val();
	$("#result_area1").html(data+" [PLN]");
});
$.get(url2, function(data){
	data=parseFloat(data)*$("#convert2").val();
	$("#result_area2").html(data+" [EUR]");
});


}
