The script you've posted doesn't generate the error you've posted without a different error being fixed first. When the error you posted is fixed, a different error becomes apparent.
Did you copy/paste your actual script in to your post or type it all out?
Check your quotes and currency unit representations.
Also as already suggested, put your code blocks, it makes it a lot easier to read. Look for # button in toolbar when composing.