Intro
Does not leak.
function init() { createLinks(); var x = document.getElementsByTagName('a'); for (var i=0;i<x.length;i+=2) { treatOneLink(x[i]); } } function treatOneLink(obj) { if (!obj.nextSibling) return; obj.relatedElement = obj.nextSibling; }