The onload() bit is needed to start the function but hack i'll rewrite it
And will answer back here ASAP
Thnx for the idea to ignore the onload and the function stuff
Solution
head_newpm (template) is now:
Code:
<script language="JavaScript">
input_box=confirm("You have a new private message. Click OK to view it, or cancel to hide this prompt.");
if (input_box==true) { // Output when OK is clicked
second_box=confirm("Open in new window?\n\n(Press cancel to open your Inbox in the current window.)");
if (second_box==true) {
window.open('private.php?','pmnew','width=600,height=500,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50');
} else {
window.location="private.php?";
}
} else {
// Output when Cancel is clicked
}
</script>