t.Print = function(aArr)
{
var
aEl = null, sPrefix = '', sColumn = '',
aResult = Array(), aRes = Array(),
iCnt = 0, tmp = 0, tmp_ = 0, bFirst = true,
oDiv = null, oSpan = null;
sPrefix = t.oDiv.id;
for (tmp_ in aArr)
{
// Math
aEl = aArr[tmp_];
aRes = Array();
aRes['ID'] = (aEl['ID'] && aEl['ID'].length > 0) ? aEl['ID'] : iCnt++;
aRes['GID'] = sPrefix + '_' + aRes['ID'];
locName = aEl['NAME'];
if (aEl['REGION_NAME'].length > 0 && locName.length <= 0)
locName = aEl['REGION_NAME'];
else if (aEl['REGION_NAME'].length > 0)
locName = locName +', '+ aEl['REGION_NAME'];
if (aEl['COUNTRY_NAME'].length > 0 && locName.length <= 0)
locName = aEl['COUNTRY_NAME'];
else if (aEl['COUNTRY_NAME'].length > 0)
locName = locName +', '+ aEl['COUNTRY_NAME'];
aRes['NAME'] = TCJsUtils.htmlspecialcharsEx(locName);
//aRes['CNT'] = aEl['CNT'];
aResult[aRes['GID']] = aRes;
t.oPointer.push(aRes['GID']);
// Graph
oDiv = t.oDiv.appendChild(document.createElement("DIV"));
oDiv.id = aRes['GID'];
oDiv.name = sPrefix + '_div';
oDiv.className = 'search-popup-row';
oDiv.onmouseover = function(){t.Init(); this.className='search-popup-row-active';};
oDiv.onmouseout = function(){t.Init(); this.className='search-popup-row';};
oDiv.onclick = function(){t.oActive = this.id};
//oSpan = oDiv.appendChild(document.createElement("DIV"));
//oSpan.id = oDiv.id + '_NAME';
//oSpan.className = "search-popup-el search-popup-el-cnt";
//oSpan.innerHTML = aRes['CNT'];
oSpan = oDiv.appendChild(document.createElement("DIV"));
oSpan.id = oDiv.id + '_NAME';
oSpan.className = "search-popup-el search-popup-el-name";
oSpan.innerHTML = aRes['NAME'];
}
t.oPointer.push('input_field');
t.oPointer_default = t.oPointer;
return aResult;
},