postids = ["2326", "2328", "2329", "2332", "2333", "2334", "2338", "2340", "2341", "2342", "2345", ""]; counts = ["4", "2", "2", "2", "6", "1", "1", "1", "2", "3", "2", ""]; start = 0; end = 12; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = [""]; tbcounts = [""]; tbstart = 0; tbend = 1; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }