postids = ["1062", "1065", "1066", "1067", "1068", "1073", "1075", ""]; counts = ["3", "2", "5", "3", "1", "3", "2", ""]; start = 0; end = 8; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1061", "1062", "1068", "1069", "1070", "1076", "1077", ""]; tbcounts = ["1", "1", "2", "1", "325", "1", "1", ""]; tbstart = 0; tbend = 8; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }