When you see undefined it usually means that a variable is being referenced that has not been defined first or a bad value is being referenced.
Could you post back with a copy of the page in a zip archive? Also, if you could include some screen shots of exactly what you are seeing so we have a good reference.