<a href='#' target='_self' onClick=javascript:profilewindow('paul', 'contents/content_userprofile.php?username=');>
Was ist hier falsch?
Eigentlich nichts. Was sagt die Fehlermeldung (im Mozilla, die im IE ist i.d.R. unbrauchbar).
und warum sperrst du JS abschalter aus?
<a href='contents/content_userprofile.php?username=paul' target='_self' onClick="profilewindow('', this.href);return false;">
Struppi.