It'd be useful to see the error that is returned.
Without that my guess is that you problem is this line:
<code>
char (op==65 && op==83 && op==77 && op==68)
</code>
It doesn't end in a semi colon, so the syntax is wrong, and it doesn't do anything AFAICS, maybe just delete it?
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com