if (screen.width < 801) {
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
var PosicioEsquerra = (screen.width) ? (screen.width-400)/2 : 0;
var PosicioDalt = (screen.height) ? (screen.height-400)/2 : 0;
if (screen.width > 400) {
self.moveTo((PosicioEsquerra),(PosicioDalt))
self.resizeTo(("400"),("400")) 
void(outerWidth=400);  
void(outerHeight=400);
}

window.onresize = function (evt) {
  if (screen.width > 400) {
self.moveTo((PosicioEsquerra),(PosicioDalt))
self.resizeTo(("400"),("400")) 
void(outerWidth=400);  
void(outerHeight=400);
}
}

