function resize() {
   return resizeWindow(1024, 768);
}

function resizeWindow(w, h) {
   //window.alert("Sie arbeiten mit dem '" + navigator.appName + "', Toll!");
   var w_newWidth;
   var w_newHeight;
   var w_minWidth=w;
   var w_minHeight=h;

   if (navigator.appName.indexOf("Microsoft") != -1) {
     w_newWidth=document.body.clientWidth;
     w_newHeight=document.body.clientHeight;
   } else {
     w_newWidth=window.innerWidth;
     w_newHeight=window.innerHeight;
   }

   var doResize = 0;
   if (w_newWidth<w_minWidth) {
     doResize = 1;
   }
   if (w_newHeight<w_minHeight) {
     doResize = 1;
   }
   if (doResize > 0) {
      window.resizeTo(w_minWidth, w_minHeight);
      window.scroll(0,0);
   }

   return 0;
}

