var ccount={'83':{c:3985,u:3817},'87':{c:692783,u:339266},'88':{c:245137,u:131227},'89':{c:252565,u:139907},'63':{c:23425,u:10000},'14':{c:19800,u:16732},'90':{c:30,u:30},'91':{c:2,u:2},'92':{c:3,u:3},'93':{c:184287,u:108892},'94':{c:288396,u:167920},'95':{c:136401,u:83236},'96':{c:1,u:1},'97':{c:863,u:813},'98':{c:16774,u:16664},'99':{c:10130,u:8259},'100':{c:34,u:34},'176':{c:26405,u:26377},'178':{c:127,u:92},'179':{c:248,u:206},'180':{c:4578,u:2742},'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); }