var ccount={'83':{c:4028,u:3860},'87':{c:714066,u:354096},'88':{c:253755,u:138161},'89':{c:257839,u:144601},'63':{c:24110,u:10448},'14':{c:19896,u:16828},'90':{c:102,u:102},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:189867,u:113563},'94':{c:379398,u:226734},'95':{c:136492,u:83291},'96':{c:1,u:1},'97':{c:953,u:903},'98':{c:17941,u:17826},'99':{c:13699,u:11443},'100':{c:95,u:95},'176':{c:26936,u:26887},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4626,u:2790},'181':{c:135808,u:135806},'182':{c:128,u:128},'':{}}; 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); }