postids = ["1590", "1591", "1592", "1594", "1597", "1599", "1601", "1603", "1604", "1605", "1607", ""]; counts = ["2", "9", "0", "6", "5", "2", "7", "2", "2", "3", "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 = ["1593", "1598", "1599", "1600", ""]; tbcounts = ["5", "2", "2", "4", ""]; 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 }