var ccount={'83':{c:4078,u:3910},'87':{c:717511,u:356699},'88':{c:257666,u:141582},'89':{c:259661,u:146221},'63':{c:24140,u:10460},'14':{c:20028,u:16960},'90':{c:119,u:119},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:192262,u:115714},'94':{c:411283,u:246716},'95':{c:136940,u:83583},'96':{c:1,u:1},'97':{c:1004,u:954},'98':{c:18063,u:17948},'99':{c:14773,u:12510},'100':{c:101,u:101},'176':{c:27019,u:26970},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4687,u:2851},'181':{c:135808,u:135806},'182':{c:331,u:330},'':{}}; 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); }