Ok, finally we get closer to the solution and I can put my chrystal ball back into its box. Now please go back to your code, add
at the top of the script and resolve all the errors that occur. If that doesn't resolve the issues you have (hint: undefined variables), feel free to come back.
. That only works in IE and doesn't for those of use who use a real browser.