> Here is the problematic line of script: > > th3s[i].addEventListener('click', 'changeTab('+i+')', false); > The second argument to addEventListener needs to be a function, not a string. J