var ccount={'83':{c:4044,u:3876},'87':{c:716362,u:355699},'88':{c:255470,u:139586},'89':{c:258879,u:145519},'63':{c:24137,u:10457},'14':{c:19935,u:16867},'90':{c:118,u:118},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:191070,u:114640},'94':{c:394611,u:235869},'95':{c:136524,u:83310},'96':{c:1,u:1},'97':{c:964,u:914},'98':{c:18012,u:17897},'99':{c:14297,u:12036},'100':{c:101,u:101},'176':{c:26962,u:26913},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4642,u:2806},'181':{c:135808,u:135806},'182':{c:208,u:207},'':{}}; function ccount_display(id) { document.write(ccount[id]['c'].formatThousands('UK')); } function ccount_unique(id) { document.write(ccount[id]['u'].formatThousands('UK')); } Number.prototype.formatThousands = function(notation) { var n = this, separator = ""; switch (notation) { case "US": separator = ","; break; case "UK": separator = "."; break; case "FR": separator = " "; break; default: return n; } n = parseInt(n) + ""; j = (j = n.length) > 3 ? j % 3 : 0; return (j ? n.substr(0, j) + separator : "") + n.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + separator); }