var ccount={'83':{c:3985,u:3817},'87':{c:693033,u:339430},'88':{c:245256,u:131320},'89':{c:252636,u:139974},'63':{c:23443,u:10012},'14':{c:19801,u:16733},'90':{c:32,u:32},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:184352,u:108951},'94':{c:289702,u:168830},'95':{c:136401,u:83236},'96':{c:1,u:1},'97':{c:865,u:815},'98':{c:16777,u:16667},'99':{c:10170,u:8299},'100':{c:36,u:36},'176':{c:26409,u:26381},'178':{c:127,u:92},'179':{c:248,u:206},'180':{c:4580,u:2744},'181':{c:135805,u:135803},'182':{c:11,u:11},'':{}}; 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); }