postids = ["1385", "1387", "1389", "1392", "1394", "1398", "1401", "1402", ""]; counts = ["0", "2", "2", "7", "2", "2", "1", "4", ""]; start = 0; end = 9; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1385", "1389", "1390", "1391", "1394", "1398", "1400", "1402", ""]; tbcounts = ["133", "311", "1", "2", "1", "116", "151", "5", ""]; tbstart = 0; tbend = 9; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }