if (screen.width >= 1024)
 {
   document.body.style.width = "1024px";
 }