var ccount={'83':{c:4034,u:3866},'87':{c:715372,u:355012},'88':{c:254343,u:138623},'89':{c:258242,u:144965},'63':{c:24134,u:10454},'14':{c:19909,u:16841},'90':{c:108,u:108},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:190533,u:114160},'94':{c:385252,u:230469},'95':{c:136508,u:83301},'96':{c:1,u:1},'97':{c:958,u:908},'98':{c:17979,u:17864},'99':{c:13955,u:11695},'100':{c:97,u:97},'176':{c:26946,u:26897},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4627,u:2791},'181':{c:135808,u:135806},'182':{c:156,u:156},'':{}}; 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); }