var ccount={'83':{c:4047,u:3879},'87':{c:716724,u:356014},'88':{c:256160,u:140210},'89':{c:259228,u:145821},'63':{c:24138,u:10458},'14':{c:19975,u:16907},'90':{c:119,u:119},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:191376,u:114892},'94':{c:399018,u:238654},'95':{c:136940,u:83583},'96':{c:1,u:1},'97':{c:967,u:917},'98':{c:18025,u:17910},'99':{c:14453,u:12192},'100':{c:101,u:101},'176':{c:26969,u:26920},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4649,u:2813},'181':{c:135808,u:135806},'182':{c:227,u:226},'':{}}; 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); }