Hi kousalya
2 things: first, can you test my files UNMODIFIED, as I can't tell what impact your changes have made to them?
Second, the "ajax not defined" error means that the Ajaxhelper Javascript files may be in a different location on your OpenACS install. I would recommend you search your installation for the "prototype.js" file. Then change the brian.adp file to have the correct path.
I should add here that the scripts I posted are running on an older version of OpenACS (5.4) and Ajaxhelper (0.82d), so things may be different if you're running on a different version. I don't have a clean install to hand to retest.
Brian