function maximizeWin() {
if (window.screen) {
var aw = screen.availWidth; /* get the screen width */
var ah = screen.availHeight; /* get the screen height */

if (aw >= 1024) { /* check for 1024 x 768 resolution or greater */
aw = 1024
ah = screen.availHeight
AvailaWidth = screen.availWidth-1024
margin = AvailaWidth/2
window.moveTo(margin,0);
window.resizeTo(aw, ah);
} else {
if (aw <= 1023) { /* check for 800 x 600 resolution or smaller */
aw = screen.availWidth;
ah = screen.availHeight;
window.moveTo(0,0);
window.resizeTo(aw, ah);
}
}
}
}
maximizeWin()

if (window != top) top.location.href = location.href;
self.focus();
