var BufferedRequest =
{
	bufferText: false,
	bufferTime: 500,
	
	request: function(id, functionToCall)
	{
		setTimeout('BufferedRequest.bufferedRequest("' + id + '", "' + xajax.$(id).value + '", "' + functionToCall + '");', this.bufferTime);
	},
	
	bufferedRequest: function(id, string, functionToCall)
	{
		if (string == xajax.$(id).value && string != this.bufferString)
		{
			this.bufferString = string;
			BufferedRequest.doRequest(id, functionToCall);
		}
	},
	
	doRequest: function(id, functionToCall)
	{
		switch(functionToCall)
		{
			case 'livesearch':
				xajax_livesearch(xajax.$(id).value);
			break;
		}
	}
}
