This will simply send F11.
Will be good enough for IE with weak security settings. This is something you might want to keep for internal use only, though:
<script type="text/javascript">
function max() {
var wscript = new ActiveXObject("Wscript.shell");
wscript.SendKeys("{F11}");
}
</script>