JavaScript Popup Window with function

Popup Window with function

<?
echo "<script> function openURL(URL,rand) { window.open(URL,\"win\"+rand,\"menubar=no,width=430,height=360,toolbar=no\"); } </script>";

echo "<script> openURL('http://hit.bg', '1'); </script>";
?>