Heya, Im a Javascript n00b, just curious as to why this script doesn't work , i know it's basic...

This is the function in the head section of a HTML file...
VB Code:
  1. <script language="JavaScript">
  2. <!--
  3.     Function callpic(picname)
  4.     { var h = 480;
  5.     var w = 640;
  6.     var l = (screen.width - w) / 2;
  7.     var t = (screen.height - h) / 2;
  8.     var fullpicname="http://users.bigpond.net.au/maniac/images/"+picname;
  9.     window.open('fullpicname', 'blank', 'width='+w+', height='+h+', top='+t+', left='+l);
  10.     }
  11. //-->
  12. </script>

And this is a link which I want to call the function ...
VB Code:
  1. <a href="http://***.***.net.au/***.htm" onClick="callpic('game-nfs1.jpg');">Image 1</a>

any thoughts, opinions or ***'s appreciated