postids = ["1196", "1200", "1201", "1203", "1208", ""]; counts = ["1", "4", "1", "4", "1", ""]; start = 0; end = 6; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1196", ""]; tbcounts = ["3", ""]; tbstart = 0; tbend = 2; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }