var ccount_link = new Array(); ccount_link[1]=0; ccount_link[2]=0; ccount_link[3]=0; function ccount_display(id) { document.write(ccount_link[id]); }