Seguendo i tuoi consigli ho modificato il codice come segue, purtroppo però non mi funziona ancora, penso sia qualche inezia che crea il problema, ma non riesco proprio a trovarla:

Pagina .html di prova (riporto solo le cose essenziali)
Codice PHP:
<script type="text/javascript" src="/postitmenu/popup.js"></script>
[url="javascript:autoPopup()"]Post-it[/url] 
file .js contenente la funzione autoPopup() (riporto solo le cose essenziali)

Codice PHP:
function autoPopup() {
    var stili = "top=10, left=10, width=400, height=250, status=no, menubar=no, toolbar=no scrollbar=no";
      var testo = window.open("", "_blank", stili);

    testo.document.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
    
testo.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n");
    
testo.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"ltr\" xml:lang=\"it\">\n");

    
testo.document.write("\t<head>\n");
          
testo.document.write("\t\t<title>Post-it</title>\n");
    
testo.document.write("\t\t<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"css/popstyle.css\" />\n");
          
testo.document.write("\t</head>\n");

          
testo.document.write("\t<body>\n");
    
testo.document.write("bla bla");
          
testo.document.write("\t</body>\n");

          
testo.document.write("</html>");
          
testo.document.close();
}