function popupPage(full) { if ((screen.width >= 1024) && (screen.height >= 768)) var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",left=144,top=70,width=736,height=552"; if ((screen.width <= 800) && (screen.height <= 600)) var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",left=32,top=-5,width=736,height=552"; var URL = full; popup = window.open(URL,"MenuPopup",windowprops); }