mixtape,
window.onload = function(){
var sec = gt(document, "SECTION"),
area = gi("area");
for(var i = 0; i < sec.length; i++){
var link = gt(sec[i], "A")[0];
link.onclick = function(e){e.preventDefault(); area.value = "[CODE]" + this.firstChild.nodeValue + "[/CODE], " + area.value;};
}
};
function gi(id){
return document.getElementById(id);
}
function gt(obj, tag){
return obj.getElementsByTagName(tag);
}