Darn. Limitations in dasBlog Macros

I tried to add one of those "action bars" under my posts -- you know "email it! | digg it! | del.icio.us it!" but couldn't get the dasBlog template to work. The \<%permalink%> macro expands, not to a URI, but to HTML.

Update:

 <SCRIPT TYPE="TEXT/JAVASCRIPT">  function StripPermalink(pl)  {    pl.match(/href=\"(.*?)\"/gi);    return RegExp.$1;  } </SCRIPT>