return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";
return "<a href=\"$rightlink\" target=\"".iif(strstr($rightlink,"YOURDOMAIN.COM"),"_top","_blank")."\">$text</a>";