Hello everyone,

I currently have a problem with some Javascript code that I can't seem to figure out.
Full disclosure: I've never really played with Javascript before. I've used (X)HTML, CSS and PHP, but that's about it. I was never really a fan of it, but I was recently tasked with creating a site for someone and we included Google Maps in it.
Thus, there wasn't really any better way of learning than to dive right in, head-first.

Anyway, after perusing the Google Maps API documentation and combining the JS syntax and logic with what I remember from PHP, I have the map itself working properly.

The problem I am having right now is that I am trying to create a function to automatically populate an InfoWindow.
Specifically, the problem seems to be that if I pass numbers to the function, it works fine, but when I attempt to pass letters to the function, it breaks and my tools are telling me that the argument is undefined. I'm trying to look around for an answer, but I am far too new at this to figure out Javascript's intricacies just yet.

My function is as follows:
PHP Code:
//Function to grab icons for lines requested
function mtaSmall() {
iconArray = Array.prototype.slice.call(arguments);
addIcons "";
    for (var 
0iconArray.lengthi++) {
addIcons addIcons "<img src = \"/res/img/icons/mta/s/" iconArray[i] + ".gif\" alt = \"" iconArray[i] + "\"></img>";

//Requests icons for Lines 1, 2, and 3
var trainInfo = new google.maps.InfoWindow({

//Requests icons for Lines A, B, and C
//Does not work - "A is not defined"
var trainInfo = new google.maps.InfoWindow({
Any ideas?