Ciao lupoz,

la funzione modificala così
codice:
<script type="text/javascript">
 function commenti(id) {
   var w = 700;
   var h = 320;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("commenti.php?id_sito="+id,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
 //-->
</script>
e poi la richiami passando l'id
codice:
commenti(567);