Odczyt atrybutu title

function get_title(obj) {
 var title = ”;
 if(obj.getAttribute(‚title’)) {
  title = obj.getAttribute(‚title’);
  title = title.substring(5);
 }
 return {title:title,value:title};
}