postids = ["1173", "1174", "1176", "1177", "1178", "1180", "1181", "1183", "1184", "1188", "1189", ""]; counts = ["3", "3", "4", "6", "4", "3", "3", "2", "8", "2", "1", ""]; 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 = ["1176", "1178", "1181", "1182", "1186", "1189", ""]; tbcounts = ["5", "3", "1", "344", "3", "6", ""]; tbstart = 0; tbend = 7; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }