Ran code through JSLint and fixed many issues.
Fixed incorrect variable names in built in uploadError function.
Authored by: jakeroberts 2008-01-30
Parent: [r694]
Child: [r696]