function setplz(t) {
	new Ajax.Request('ajax/getplzfromort.php',
		{
			asynchronous:true,
			method:'post',
			postBody: 'value='+t.value+'&update=sst_plz',
			onSuccess: updateinput
		}
	);
}
function setort(plz) {
	new Ajax.Request('ajax/getortfromplz.php',
		{
			asynchronous:true,
			method:'post',
			postBody: 'value='+plz+'&update=sst_ort',
			onSuccess: updateinput
		}
	);
}	

function getentfernung() {
	new Ajax.Request('ajax/getentfernung.php',
		{
			asynchronous:true,
			method:'post',
			postBody: 
			'start='+document.getElementById('plz_start').value+'&ziel='+document.getElementById('plz_ziel').value+'&update=entfernung',
			onSuccess: updateinput
		}
	);		
}

function updateinput(t) {
	var pices = t.responseText.split('#');
	document.getElementById(pices[1]).value = pices[0];
}
