For the record: The function setDiffstat in diffstat.js cannot work, since it uses a non existing domain. Therefore the code in stattrans.pl using .....onClick="setDiffstat.... can be removed.
On our webserver I cannot find any occurence of onClick="setDiffstat..." in any html file. It seems that the code (see above) in stattrans.pl is not used -- regards Thomas