Simple mate
function NewWindow(loadfile) {
h="300";
w="300";
file = "misc.php?load=" + loadfile;
win = window.open(file,"win","height="+h+",width="+w+"re sizable=no,scrollbars=no");
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
Put that in your header. Then basically you do
<a href="javascript
:NewWindow('news.txt');">Click here to see latest news in new window</a>
<a href="javascript
:NewWindow('privacy.txt');">Privac y policy</a>
Then in misc.php file you put
<?php
require($_GET[$load]);
?>
The only bad thing about this is that it can cause security holes such as people having certain files load...so what you can do to get around this is... check and see what is being asked to be loaded...so
<?php
if ($_GET[$load] == "news") require("news.txt");
elseif ($_GET[$load] == "privacy") require("privacy.txt");
?>
etc.. hope this helped