It can be, that webtest is not able to execute this JavaScript, because this function is in a .js file and I don't know if this files are correctly included. At the moment I'm not able to give you access to the site.
I use webtest R_1683. Till Dreier

