//메인화면 창 사이즈 설정 function getWindowWidth(){ return (screen.width - (screen.width - screen.availWidth) > 1280) ? 1280 : screen.width - (screen.width - screen.availWidth); } function getWindowHeight(){ return (screen.height - (screen.height - screen.availHeight) > 990) ? 990 : screen.height - (screen.height - screen.availHeight); } function getScrollBarsYN(){ return (getWindowWidth() < 1280 || getWindowHeight() < 990) ? 'yes' : 'no'; } function setWindowSize() { var winWidth = getWindowWidth(); var winHeight = getWindowHeight(); if (winWidth == 1280 && winHeight < 990) { winWidth = winWidth + 20 ; } if (winWidth < 1280 && winHeight == 990) { winHeight = winHeight + 20 ; } resizeTo(winWidth, winHeight); } //scrollbar function setBodyScroll(){ document.body.scroll = getScrollBarsYN(); } //viewer object반환 function getViewerObject(name){ return document.all.item(systemcd+"_"+name); } //메인 닫기 클릭시 처리 function setWindowClose(mainstatus){ var status = getViewerObject("sysMessage");//message Object status.window.javascript.setGlobalVariable("mainclose", mainstatus); } //비밀번호 변경 function passwordUpdate() { var status = getViewerObject("sysMessage");//message Object status.window.javascript.modal("SPZUM01100", "", null, null, null, null, null, "width:505px;height:370px"); } //로그아웃 function userLogout() { var status = getViewerObject("sysMessage");//message Object if ( confirm("로그아웃 하시겠습니까?") ) { closePopupWindow(); delUserInfo(); hismainForm.action = "logout.live"; hismainForm.submit(); } } // 로그아웃(xrw 에서만 호출하기 위한 메소드) // 다수의 child 가 존재할 경우 해당 child 들을 모두 닫은 후에(xrw에서수행) 로그아웃하기 위해 새로 생성 function logout() { hismainForm.action = "logout.live"; hismainForm.submit(); } //로그아웃시 세션정보 삭제 function delUserInfo(){ var status = getViewerObject("sysMessage");//message Object var userInfoKeyStr = sessionFormat var userInfoKeyArr = userInfoKeyStr.split("|"); var len = userInfoKeyArr.length; for(i=0;i