i would like have a centered pop up window when a user clicks on the link. im having some trouble here since all it does is open the link in the same page and nothing pops up.

Code:
<script language="javascript">
var popupWindow = null;
function centeredPopup(url,winName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(url,winName,settings)
}
</script>
this is a snippet off google maps api. clicking on the link works, but the page doesnt display in a pop up window.

Code:
 var point = new GPoint(-123.001063, 49.31505);
      var marker = createMarker(point,"Starbucks","Starbucks<br>US<br>test<br><a href='http://maps.google.com/maps/sv?cbp=12,306.07,,1,0.91&amp;cbll=44.977333,-93.268143&amp;panoid=&amp;v=1&amp;hl=en&amp;gl=' onclick='centeredPopup(this.href,'winName','400','250','yes');return false'>Centered Popup Street View</a>")
      map.addOverlay(marker);