For the resize to work, you'll also want to use window.moveTo(0,0), otherwise you'll have a full-size window with a lot of it off the screen.
In windows though, it's better to use window.moveTo(-2,-2); window.resizeTo(screen.width+4,screen.height+4); because it makes it look more like a proper maximised window due to the 2px border. I left windows in 2000, so XP might not be like that......