SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to see the array as an array, you can say
alert(JSON.stringify(aCustomers));
instead of all those document.writes.
document.write
http://jsfiddle.net/5b2eb/
However, if you want to display them cleanly, one per line, in your popup, do this:
alert(aCustomers.join("\n"));
http://jsfiddle.net/5b2eb/1/