function getChange() {
	if($F('xchUnit').length > 0) {
		$('xchInfo').innerHTML = 'Kis türelmet..';
		var unit	= $F('xchUnit');
		var from	= $F('xchFrom');
		var to		= $F('xchTo');
		var url   = './ajax/exchange.phtml';
		var pars  = 'fejezet=55&alfejezet=4&unit=' + unit + '&from=' + from + '&to=' + to;
		var myAjax = new Ajax.Request(url,
									{ method: 'get',
										parameters: pars,
										onComplete: showResponse,
									  onFailure: reportError });
	} else {
		alert('Kérem adjon meg egységet.');
	}
}

/**
 * put returned XML in the textarea
 */
function showResponse(originalRequest) {
		$('xchInfo').innerHTML = '';
		alert(originalRequest.responseText);
}

function reportError(request) {
	$('xchInfo').value = 'hiba';
}

function kheToplistChange(event)
{
  changed_select = Event.element(event);
  form = changed_select.up('form');
  form.submit();
}

Event.observe(window, "load", function() {
  if ($('kheChannelToplist')){Event.observe('kheChannelToplist','change',kheToplistChange);}
});