This is actually more a suggestion then a bug.
Anyway, instead of:
<a href="#" onclick="popup('animedb.pl?show=pop&pop=agvote&id=ID',380,160,0,0,'agvote')">
put:
<a href="animedb.pl?show=pop&pop=agvote&id=ID" onclick="popup('animedb.pl?show=pop&pop=agvote&id=ID',380,160,0,0,'agvote'); return(0);" target="_blank">
This way, browsers that do not understand or were set to ignore JavaScript will open the rating popup page in a new window (target="_blank") and JS-aware browsers will perform the popup JavaScript but ignore the link itself due to the added "return(0);".
Quirk in Anime-Group-Vote JavaScript [FIXED]
Moderator: AniDB
Yup. This behaviour has been implemented since the very first JS implementation in Netscape Navigator. There are, afaik, two browsers (a certain Opera version and some *nix browser I forgot) that do not follow this, but in these cases the deviating behavior is really a bug in the browser. To be really honest, I didn't actually test this, but took this info from a JS resources website I spidered a while ago.