var NS = 1; if( document.all) NS = 0; // 프린터하기 function PrintOption(type1,type2){ //네스케이프일 경우 if (NS) { window.print(); //익스플로러일 경우 } else { var active = ''; document.body.insertAdjacentHTML('beforeEnd', active); active1.ExecWB(type1,type2); active1.outerHTML =""; } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } /* 화면크기 */ var nowZoom = 100; var maxZoom = 120; var minZoom = 90; function zoomInOut(how) { var browser = navigator.userAgent; //alert(browser); if(browser.indexOf('MSIE') < 0 && browser.indexOf('Safari') < 0 && browser.indexOf('Chrome') < 0 && browser.indexOf('Firefox') < 0){ alert('Zoom 기능이 지원되지 않는 브라우저입니다. \nCtrl키를 누른 상태에서 +/-키를 누르세요.'); return false; } if (how == 'in' && nowZoom < maxZoom) { nowZoom += 5; } else if (how == 'out' && nowZoom > minZoom) { nowZoom -= 5; } else if (how == 'init') { nowZoom = 100; }else { return false; } document.body.style.zoom = nowZoom + "%"; if(browser.indexOf('MSIE 7.0') > 0 ){ document.body.style.position = "absolute"; }else if(browser.indexOf('MSIE 8.0') > 0){ document.body.style.width = "100%"; document.body.style.position = "absolute"; }else if(browser.indexOf('Firefox') > 0){ tmpZoom = nowZoom/100; document.getElementById('wrap').style.MozTransform = "scale("+ tmpZoom +")"; document.getElementById('wrap').style.MozTransformOrigin = "0 0"; } return false; } function doReport() { document.getElementById('mw_temp1').style.display='block'; $("#mw_temp1").focus(); return false; // location.href = "./regist.do"; } function notice_getCookie( name ){ var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } if ( notice_getCookie( "Notice" ) != "done" ) { // document.getElementById("mw_temp").style.display="block"; } function notice_setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"; } function notice_closeWin() { // notice_setCookie( "Notice", "done" , 1); // 1 = 1일동안 공지창 열지 않음 document.getElementById("mw_temp").style.display="none"; } function notice_closeWin1() { // notice_setCookie( "Notice", "done" , 1); 1 = 1일동안 공지창 열지 않음 document.getElementById("mw_temp1").style.display="none"; } function na_call(str){ eval(str);} /* 주민등록번호 인증/ 공공I-PIN 인증*/ /*function AuthSendPop(type) { var w = ""; wWidth = 360; wHight = 120; if(type == 1) { // 웹페이지 일때 wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; w = window.open("http://www.119.go.kr/G-PIN/Sample-AuthRequest.jsp?page_name=http://192.168.16.10:8080/center119/regist.do", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); // location.href = "http://10.32.120.34/center119/regist.do?certify=G"; } else { // 모바일웹페이지 일 때 wX = 360; wY = 120; w = window.open("http://www.119.go.kr/G-PIN/Sample-AuthRequest.jsp?page_name=http://192.168.16.10:8080/center119/mobile/regist.do", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); } }*/ function AuthSendPop(type) { var w = ""; wWidth = 360; wHight = 120; if(type == 1) { // 웹페이지 일때 wX = (window.screen.width - wWidth) / 2; wY = (window.screen.height - wHight) / 2; w = window.open("http://www.119.go.kr/G-PIN/Sample-AuthRequest.jsp?page_name=regist.do?certify=R", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); } else { // 모바일웹페이지 일 때 wX = 360; wY = 120; w = window.open("http://www.119.go.kr/G-PIN/Sample-AuthRequest.jsp?page_name=mobile/regist.do?certify=R", "gPinLoginWin", "directories=no,toolbar=no,left="+wX+",top="+wY+",width="+wWidth+",height="+wHight); } } /* 주민등록번호 인증/ 공공I-PIN 인증*/ function registMove() { window.location.href="./regist.do?certify=R"; } /* 안심콜 서비스 로그인 */ function login(){ /*var ajax_set = { url:"./relievedCallLogin.do", param:"user_id="+$("#user_id").val()+"&password="+$("#password").val(), return_fn:function(jdata){submit_loginInfo(jdata);} }; get_detail(ajax_set);*/ window.location.href="http://u119.nfa.go.kr/web/member/wpLogin.jsp"; } /* 안심콜 서비스 로그인 */ function submit_loginInfo(jdata) { if (jdata.errCd == "1") { showAjaxModal('./commonPopup.do?type=S&title='+encodeURIComponent("로그인") +'&titleSub='+encodeURIComponent("로그인") +'&url=./main.do',400); return false; } else { showAjaxModal('./commonPopup.do?type=F&title=' +encodeURIComponent("로그인") +'&titleSub='+encodeURIComponent("로그인") +'&titleSub2='+encodeURIComponent("에") +'&titleEtc='+encodeURIComponent("실패하였습니다."),400); return false; } } /* 안심콜 서비스 로그인 */ function logOut(){ var ajax_set = { url:"./relievedCallLoginOut.do", return_fn:function(jdata){submit_logOut(jdata);} }; get_detail(ajax_set); } /* 안심콜 서비스 로그인 */ function submit_logOut(jdata) { if (jdata.errCd == "1") { showAjaxModal('./commonPopup.do?type=S&title='+encodeURIComponent("로그아웃")+ '&titleSub='+encodeURIComponent("로그아웃")+ '&url=./main.do',400); return false; } } /* 마이페이지 이동 */ function go_mypage(jdata) { window.location.href="./relievedCallMyInformation.do"; }