function truncate( text, length, ellipsis )
{
   if (typeof length == 'undefined') var length = 20;
   if (typeof ellipsis == 'undefined') var ellipsis = '...';
   if (text.length <= length) {return text; }
   return text.substr(0, length) + ellipsis;
}

function short_rls_title(count,length)
{
	for(i=1;i<=count;i++){if(document.getElementById('r'+i)){
	ele = document.getElementById('r'+i); ele.innerHTML = truncate(ele.innerHTML,length,'...');}}
return true;
}
