in reply to Howto Include JavaScript to CGI.pm Script

Reguarding your update, I opened the "Error Console" in the "Tools" menu in Firefox and it showed the following error:

Error: twofastest has no properties Source File: http://defiant.i2r.a-star.edu.sg/~ewijaya/MotifVoter/cgi- +bin/mv_dispatch_js.cgi Line: 37

Looks like variable twofastest doesn't contain what it should. With simple backtracking, we see that
variable twofastest is null, because
document.getElementById('2 Fastest'); returns null, because
there is no element with id 2 Fastest.

USE THE ERROR CONSOLE!