function max()
{
var obj = new ActiveXObject("Wscript.shell");
obj.SendKeys("{f11}");
}

body 'in onload ına max functionunu koyman yeterli