When you say your script is “not working”, can you be a little more specific?
Are any of your alerts being run? On what pages?
Do you know whether your script is being loaded on to any pages? Using a browser’s developer tools, can you locate the contents of your script in one of the product’s batch files at runtime?
Are you seeing any JavaScript errors in the console when the code is run?
Is the element ID you are looking for present on the page?
It also seems that your XML fragment for the web-resource is incomplete. Could you fix up the formatting so we can see what the actual code looks like?