function pLogin(){ var n = document.all.pharosLogin.style.display; if(n=='none') { document.all.pharosLogin.style.display=""; document.userLogin.clickState.value=""; } else { document.all.pharosLogin.style.display="none"; document.userLogin.clickState.value="1"; } } function fnAutoResize(){ var strWidth; var strHeight; if (window.innerWidth && window.innerHeight && window.outerWidth && window.outerHeight) { strHeight = $('body').outerHeight() + (window.outerHeight - window.innerHeight); } else { var strDocumentWidth = $(document).outerWidth(); var strDocumentHeight = $(document).outerHeight(); window.resizeTo(strDocumentWidth, strDocumentHeight); var strMenuWidth = strDocumentWidth - $(window).width(); var strMenuHeight = strDocumentHeight - $(window).height(); strHeight = $('body').outerHeight() + strMenuHeight; } if(strHeight > 900){ strHeight = 900; } window.resizeTo(1920, 900); } function openLayer() { var nesLayer = document.querySelector(".popupLayer"); nesLayer.classList.toggle("popupLayer-show"); } function closeLayer() { var nesLayer = document.querySelector(".popupLayer"); var closeButton = document.querySelector(".popup_btn"); nesLayer.classList.toggle("popupLayer-show"); //document.getElementById("popupLayer").style.display = "none"; nesLayer.style.display = "none"; }