Oh, that's because you're using double quoted PHP strings. And you're still using echo(). I told you echo is bad and this is exactly why: it makes it hard to spot errors.

Always do it like this:
PHP Code:
<script type="text/javascript">
  alert('<?php echo $username11 ?>\n<?php echo $password22 ?>');
</script>