var fnClick = function(){};
var a = document.getElementById("b");
if (a.addEventListener) {
a.addEventListener("click", fnClick, true);
} else if (a.attachEvent) {
a.attachEvent("onclick", fnClick);
}
var a = document.getElementById("b");
if (a.addEventListener) {
a.addEventListener("click", fnClick, true);
} else if (a.attachEvent) {
a.attachEvent("onclick", fnClick);
}