This is not quite the same as maximizing the browser window. It just resizes the browser window to the total width and total height of the screen.
<script type="text/javascript">//<![CDATA[
function maximize() {
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height);
}
maximize();
//]]></script>