toc_ol=false; function toc(){ var tag,id,begin,end; var a = document.getElementsByTagName("h3"); if(toc_ol){ begin="
    "; end="
"; }else{ begin=""; } var b=[]; b.push(begin); for(var i=0; i "; if(h.id){ b.push("
  • "+date+" "+h.innerHTML+""); }else{ b.push("
  • "+date+" "+h.innerHTML); } h.innerHTML=date+h.innerHTML; } b.push(end); var t = document.getElementById("toc"); t.innerHTML=b.join(""); }