The problem in the code is simple: the closing brace of the sclick event
is placed incorrectly. Instead of having it under the if ($did = 13) line,
move it to the bottom of the page.