var ccount={'83':{c:4046,u:3878},'87':{c:716479,u:355794},'88':{c:255714,u:139813},'89':{c:258990,u:145611},'63':{c:24137,u:10457},'14':{c:19967,u:16899},'90':{c:119,u:119},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:191171,u:114718},'94':{c:396224,u:236859},'95':{c:136940,u:83583},'96':{c:1,u:1},'97':{c:964,u:914},'98':{c:18014,u:17899},'99':{c:14350,u:12089},'100':{c:101,u:101},'176':{c:26966,u:26917},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4645,u:2809},'181':{c:135808,u:135806},'182':{c:213,u:212},'':{}}; 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); }