if (window.screen.width > 800) {
    dPage.style.width = "990px";
}
else
    dPage.style.width = "789px";
