function trimWebsiteUri(uri,maxlength) {
  var length = (maxlength) ? maxlength : 30;
  var retval = uri.replace(/^http[s]?:\/\//,"");

  if(retval.length < length)
    return retval
  else
    return retval.substr(0,length) + "...";
}
/* for nicer display of website links, shorten long uris */
for nicer display of website links, shorten long uris
for nicer display of website links shorten long uris
function trimWebsiteUri(uri,maxlength) {
  var length = (maxlength) ? maxlength : 30;
  var retval = uri.replace(/^http[s]?:\/\//,"");
  if(retval.length < length)
    return retval
  else
    return retval.substr(0,length) + "...";
}
function trimWebsiteUri ( uri , maxlength ) { var length = ( maxlength ) ? maxlength : 30 ; var retval = uri . replace ( / ^http[s]?:\/\/ / , "" ) ; if ( retval . length < length ) return retval else return retval . substr ( 0 , length ) + "..." ; }
for nicer display of website links, shorten long uris
for nicer display of website links shorten long uris