/** * Firefox is telling me that convertPercent is not defined * when i call it in showAddress() */ function convertPercent(population, customers) { return ((customers / population) * 100); } for(i = 0; i < address.length; i++) { showAddress(address[i], the_icons[i], spending_capacity[i], customers_in_area[i], graphs[i], area_population[i], convertPercent(area_population[i], customers_in_area[i])); }