in reply to Less-than-helpful warnings
If it is possible for one of your variables to be undefined I would suggest checking your values before using them. What about joining all you variables into an array, loop through them, and if undefined die with a message about the variable that is undefined?