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 =""; } } /* 화면크기 */ 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);}