Thanks for the help Pootergeist.
I have incorporated the code you suggested into my script. The problem I have now is that the script is continuoslly refreshing ie it is requesting the page from the server until the stop button on the browser is pressed or a page timeout occurs.
If I rename the page that I refresh to the code works fine.
Here is my code.
<?php session_start();
session_register('rz');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome</title>
Faulty Code
<script>
var rz=screen.width;
document.location.replace('/contact/contact.php?rz=' + rz);
</script>
Faulty code finished
<script src="/csstypecont.js" language="javascript" type="text/javascript"></script>
<script src="/quick.js" language="javascript" type="text/javascript"></script>
</head>
<body background="/wtw%20.gif" ONLOAD="preloadImages();">
<?php
if ($rz==1024){
virtual ("/header.txt");
}
else if ($rz==800){
virtual ("/header2.txt");
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<?php
virtual ("contop.txt");
?>
<td colspan="3" class="blue5main"><?php
if($rz==1024){
virtual ("/nav.txt");
}
else if($rz==800){
virtual ("/nav2.txt");
}
?> </td>
</tr>
<tr>
<td colspan="3" class="blue6main">
</td>
</tr>
<?php
virtual ("coninfo.txt");
?> <tr>
<?php
virtual ("/footer.txt");
?>
</table>
</body>
</html>Thanks in advance.