postids = ["1068", "1073", "1075", "1078", "1079", "1082", "1083", ""]; counts = ["1", "3", "2", "1", "3", "7", "3", ""]; 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 = ["1068", "1069", "1070", "1076", "1077", "1082", "1083", ""]; tbcounts = ["2", "1", "325", "1", "1", "1", "173", ""]; 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 }