Okay I hate coming here without presenting any attempted solutions, but I really have no idea why I'm still getting this reference error. The function works fine for the Company Name portion but the ensuing (contacttable, companyprofile etc) functions aren't working and I'm getting the aforementioned reference error. I'd be really appreciative if someone could hint at what to do. I'd love the luxary to be able to try and sit here and problem solve for the entire summer as I fear the next project that they're going to assign me, but I'm on a kind of on a non-binding deadline of sorts. By this I mean my superior would like this finished by this week. Am I going to get fired if it's not done? I doubt it. But it would probably look very good if I could complete it on time. I think he underestimates the difficulty of teaching oneself a computer language and writing a (relatively?) advanced script with it... And as always I wanted to thank everyone who's helped thus far, especially Arevos for all his time and effort.
Also, going back to the problem on hand, when I test it using the following:
output = [name, companyprofile, contacttable, z, keypeople]
return output
The function works fine and returns the above information. Thus, I think it has something to do with embedding the information in a table? I also realized that I need to add "\n" to create new table cells after each "<td>" tag. I think at least...