postids = ["1183", "1184", "1188", "1189", "1190", "1191", "1196", ""]; counts = ["2", "8", "2", "1", "1", "2", "1", ""]; 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 = ["1182", "1186", "1189", "1190", "1196", ""]; tbcounts = ["344", "3", "6", "148", "3", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }