As Jared says, it isn't directly possible. The trick I use is to have a piece of javascript on my index.php3 that detects the size and then redirects to main.php3?width=1024&height=768
<script>
top.location = "target.php3?width="+screen.width+"&height="+screen.height;
</script>
I leave a page with hard links on in case people have javascript turned off, and I also use the php page to session register the sizes and redirect to itself without the query string do that users don't see what's going on, but you don't need to do that to get it working.
HTH