<script type="text/javascript"> <!-- var userName = "$bbuserinfo[username]"; var userID = "$bbuserinfo[userid]"; // --> </script>