postids = ["1039", "1040", "1041", "1042", "1045", "1047", "1048", ""]; counts = ["4", "3", "3", "2", "2", "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 = ["1037", "1039", "1041", "1046", ""]; tbcounts = ["7", "331", "1", "143", ""]; tbstart = 0; tbend = 5; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }