var dir = "http://www.laputanlogic.com/blog-notes";
var threadIds = "";
function commentCount(id)
{
document.write(" ");
if (threadIds != "") threadIds += ",";
threadIds += id;
}
function updateCommentCounts()
{
document.write("");
var url = dir + "/ccount-if?ids=" + threadIds;
document.getElementById("ccount_if").src = url;
}
function updatePostLink(id,value) {
var tag = document.getElementById(id);
if (!tag) return;
var txt = tag.firstChild;
if (!txt) return;
txt.nodeValue = value;
}