Originally posted by Basher
no because when it forwards to that page, essentially it is loading the same page again, just with the template (index.php) around it, so as it loads the page again, it will load the script again.
I've made a file with your script and uploaded it so you can see what i mean 
http://www.asginternational.com/testfw.php
(you'll prob have to 'stop' the page loading eventually as it just keeps loading the index page)
ok, ive just looked at it, and your including my script in the index.php file - why ?
once its done its job of forwarding to the index.php with the variables, you dont need to touch my script again.
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ASG - Agronomic Services Group - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="Style.css" rel="stylesheet" type="text/css">
</head>
<body vlink="#000000" alink="#006600">
<div align="center"> <strong><font size="+1" face="Verdana, Arial, Helvetica, sans-serif">
</font></strong>
<table width="723" border="0" cellpadding="0" cellspacing="0" bgcolor="cad599">
<!--DWLayoutTable-->
<tr>
<td height="150" colspan="7" valign="top"><img src="images/MainLogo.jpg" alt="Our Logo" width="723" height="150"></td>
</tr>
<tr>
<td width="1" rowspan="4" valign="top"><img src="images/SideLine.gif" alt="Border!" width="1" height="660"></td>
<td width="3" height="287"> </td>
<td width="115" rowspan="2" valign="top"><p><font size="+1" face="Verdana, Arial, Helvetica, sans-serif">Links</font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><font color="#000000"><a href="?page=about">
About ASG</a><br>
<br>
<a href="?page=SupportPro">Support Programme's</a><br>
<br>
<a href="?page=CorpStru">Corporate Structure<br>
</a><a href="?page=GlobalNetwork"><br>
Global Network</a><br>
<br>
<a href="?page=FeeStructure">Fee Structure</a><br>
<br>
<a href="?page=InfoManage">Information Management</a></font></font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><a href="?page=search">Search</a><strong><br>
</strong></font></p></td>
<td width="1" valign="top"><img src="images/SideLine.gif" width="1" height="287"></td>
<td width="9"></td>
<td width="593" rowspan="4" valign="top">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Agents Forwarding page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">location.href="http://www.asginternational.com/index.php?page=index";</script>
<body>
hi
</body>
</html>
</td>
<td width="1" rowspan="4" valign="top"><img src="images/SideLine.gif" alt="Border!" width="1" height="660"></td>
</tr>
<tr>
<td height="26"></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="160" colspan="4" valign="top"><img src="images/BottomLink.jpg" alt="A Golf Ball!" width="128" height="160"></td>
</tr>
<tr>
<td height="187"> </td>
<td> </td>
<td></td>
<td> </td>
</tr>
<tr>
<td height="23" colspan="7" valign="top"><img src="images/Bottom.gif" alt="Footer!" width="723" height="23"></td>
</tr>
</table>
</div>
</body>
</html>
Is what i get for index.php?page=testfw
You basicly have 2 HTML files in 1 PHP file - which is going to be killing the browser aswell due to the multiple <head> and <body> tags.