postids = ["1387", "1389", "1392", "1394", "1398", "1401", "1402", "1403", "1406", ""]; counts = ["2", "2", "7", "2", "2", "1", "4", "3", "1", ""]; start = 0; end = 10; function commentCounter (postid) { for (i = start; i < end; i++) { if (postids[i] == postid) { document.write (counts[i]); return } } document.write ("0"); return } tbpostids = ["1389", "1390", "1391", "1394", "1398", "1400", "1402", "1405", ""]; tbcounts = ["311", "1", "2", "1", "116", "151", "5", "2", ""]; 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 }