//	---------------------------------------------------------------------------
/**	@brief	function that creates the ajax request for updating text
*
* 	@param sPostUrl	(string) Ajax Request Post Url
* 	@param sTextTag	(string) FN TextTag to be loaded
* 	@param sDivId	(string) Id of a html blocklevel element
*
*	@author	au
*
*	@date	16.05.07	Start
*	@date	28.08.07	Modified/au
*						-	JQuery 1.1.4 Update -> Ajax Timeout Änderung
*/
//	---------------------------------------------------------------------------
function FNAjaxUpdateTextByTextTag(sPostUrl, sTextTag, sDivId)
{
	$.ajaxSetup({timeout: 5000});
	$("#loading").css("display", "block");
	$.post(sPostUrl, {sTextTag:sTextTag}, function(data) {FNUpdateTextForId(data, sDivId);});
}

//	---------------------------------------------------------------------------
/**	@brief	function that is called after the ajax request finished - is responsible
*			for setting the received text
*
* 	@param sText	(string) Text / Html Elemente / etc.
* 	@param sDivId	(string) Id of a html blocklevel element
*
*	@author	au
*
*	@date	16.05.07	Start
*/
//	---------------------------------------------------------------------------
function FNUpdateTextForId(sText, sDivId)
{
	$("#"+sDivId).html(sText);
	$("#loading").css("display", "none");
}