postids = ["1208", "1212", "1215", "1216", "1219", "1220", "1221", ""]; counts = ["1", "1", "5", "3", "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 = ["1210", "1215", "1216", "1218", "1220", ""]; tbcounts = ["121", "4", "307", "4", "5", ""]; tbstart = 0; tbend = 6; function trackbackCounter (postid) { for (i = tbstart; i < tbend; i++) { if (tbpostids[i] == postid) { document.write (tbcounts[i]); return } } document.write ("0"); return }