var ccount={'83':{c:4021,u:3853},'87':{c:712886,u:353225},'88':{c:253146,u:137656},'89':{c:257399,u:144205},'63':{c:24068,u:10441},'14':{c:19879,u:16811},'90':{c:98,u:98},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:189081,u:112842},'94':{c:373622,u:223035},'95':{c:136488,u:83287},'96':{c:1,u:1},'97':{c:947,u:897},'98':{c:17879,u:17764},'99':{c:13416,u:11165},'100':{c:91,u:91},'176':{c:26926,u:26877},'178':{c:127,u:92},'179':{c:251,u:208},'180':{c:4624,u:2788},'181':{c:135808,u:135806},'182':{c:99,u:99},'':{}}; 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); }