Welcome to the forum, Ivan.
For anyone to test or correct your code they would have to type it all out again. Please see Wiki - how to post code on this forum.
Also, if you hover over the Error_ScriptEval message at the bottom of the dialog it will give you a good clue to the nature of the problem. Be sure to include the error details when seeking help.