function autocompleter( obj, func, typ )
{

	autocompleter_object = obj;
	this[ func ]( '&typ=' + typ + '&string=' + obj.value + '&' );

}


function autocompleter_auswahl( auswahl )
{

	if( 0 < auswahl.length && auswahl[ 0 ][ 1 ] )
	{
		ausgabe = '<ul class="ul_autocomleter">';
		for( index = 0; index < auswahl.length; index += 1 )
		{
			ausgabe += '<li>' + auswahl[ index ][ 1 ] + '</li>';
		}
		ausgabe += '</ul>';
	}
	else
	{
		ausgabe = '';
	}

	abstand = autocompleter_object;

	abstand_top = abstand.offsetTop;
	abstand_left = abstand.offsetLeft;
	while( abstand = abstand.offsetParent )
	{
		abstand_top += abstand.offsetTop;
		abstand_left += abstand.offsetLeft;
	}

	abstand_hoehe = document.getElementById( 'autocompleter_ausgabe' ).style.height.split( 'px' );
	abstand_breite = document.getElementById( 'autocompleter_ausgabe' ).style.width.split( 'px' );

	document.getElementById( 'autocompleter_ausgabe' ).innerHTML = ausgabe;
	document.getElementById( 'autocompleter_ausgabe' ).style.position = 'absolute';
	document.getElementById( 'autocompleter_ausgabe' ).style.left = abstand_left + 'px';
	document.getElementById( 'autocompleter_ausgabe' ).style.top = ( abstand_top + 22 ) + 'px';
	document.getElementById( 'autocompleter_ausgabe' ).style.zIndex = '500';
	document.getElementById( 'autocompleter_ausgabe' ).className = '';

}
