// ---------------------------------------------------
var currentLexikon = '';
function ajax_lexikon(ref, baselink, id)
{
	// reset
	if(currentLexikon != '') { document.getElementById(currentLexikon).innerHTML = '&nbsp;'; }
	currentLexikon = ref;

	// Print-Link
	document.getElementById('printLink').href = baselink+'/id/'+id+'/print/1/';

	// update
	new Ajax.Updater(ref, '/ajax/mode/lexikon/', {
		'method': 'post',
		'parameters': 'id='+id,
		'asynchronous': true,
		'evalScripts': true
	});

	return false;
}

