var blAttrCacheEnable = true;
var arrAttrCache = new Array();
var arrAjaxUpdaters = new Array();

function showAttrDesc(strUpdaterUrl, strElementId)
{
	strUpdaterUrl = strUpdaterUrl.replace("&amp;","&");
	
    if ( blAttrCacheEnable && arrAttrCache[strUpdaterUrl])
    {
        return overlib( arrAttrCache[strUpdaterUrl]);
    }
    else if ( blAttrCacheEnable )
    {
        arrAttrCache[strUpdaterUrl] = 'Pobieram dane...';
        arrAjaxUpdaters[strUpdaterUrl] = new Ajax.Request(
            strUpdaterUrl,
            {
                method: 'get',
                onComplete: function(request) {
                    arrAttrCache[strUpdaterUrl] = request.responseText;
                    $('overDiv').innerHTML = '<table bgcolor="#333399" border="0" cellpadding="1" cellspacing="0" width="200"><tbody><tr><td><table style="background-repeat: no-repeat; background-position: center;" bgcolor="#ccccff" border="0" cellpadding="2" cellspacing="0" width="100%"><tbody><tr><td valign="top" style="font-size: 10px; font-family: Verdana, Arial,Helvetica;">'+request.responseText+'</td></tr></tbody></table></td></tr></tbody></table>';
                }
                //onComplete: function(request) { arrAttrCache[strUpdaterUrl] = request.responseText; return overlib(request.responseText); }
            }
        );
        return overlib( arrAttrCache[strUpdaterUrl]);
    }

}
