im trying to get it so my bbbuttons work but forsome reason my javascript cde does ot work

Code:
 <a href="javascript:void(0);" onclick="surroundText('', ''); return false;"><img style="border: none;" src="url.gif" alt="enterurl" /></a>
i click link and nothing happens and the hover just shows javascript:void(0) ... i think this could be wrong here onclick="surroundText('', '');