window.onload = function(){
var links = document.getElementById(hrefs);
var attrs = [];
var as = links.getElementsByTagName(a);
for (var i = 0, len = as.length; i < len; i++) {
as[i].onclick = function(){
var lTitle = this.getAttribute(title);
var lName = this.getAttribute(name);
var lDefault = this.getAttribute(default);
attrs.push(lTitle, lName, lDefault);
ClickEvent(attrs);
//return false;
}
}
}
function ClickEvent(attrs){
lens = attrs.length;
for (var j = 0; j < lens; j++) {
document.getElementById(print).innerHTML += attrs[j] +
;
}
}