Passing User ID to Script

I am sure this is something simple but I just can't seem to get passed it. I need to pass the User ID in a Java Script url but I keep getting the IP address instead. Here is the code:
<script type="text/javascript" src="http://xxxxxxxx?pub=xxxxx&subid="> & <?php echo S2MEMBER_CURRENT_USER_ID; ?> & <"></script>
I know nothing of javascript so I have no idea how exactly to do this. But it should be basic for someone out there who may know? I need to pass the &subid variable with the S2_MEMBER_CURRENT_USER_ID I am sure it's my sytax but I don't know the proper way. Any assistance would be greatly appreciated. Thanks
Terry Ladouceur
<script type="text/javascript" src="http://xxxxxxxx?pub=xxxxx&subid="> & <?php echo S2MEMBER_CURRENT_USER_ID; ?> & <"></script>
I know nothing of javascript so I have no idea how exactly to do this. But it should be basic for someone out there who may know? I need to pass the &subid variable with the S2_MEMBER_CURRENT_USER_ID I am sure it's my sytax but I don't know the proper way. Any assistance would be greatly appreciated. Thanks
Terry Ladouceur