//================================================================================================================================= // 파일명 : common.js - 공통 Javascript // 작성자 : eclips // 생성일 : 2007-12-13 // 최종수정일 : 2007-12-13 //================================================================================================================================= //================================================================================================================================= // 팝업 띄우기 //================================================================================================================================= function openWin(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //================================================================================================================================= // 링크 점선 없애기 //================================================================================================================================= /* function bluring() { if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") { document.documentElement.focus(); } } document.onfocusin=bluring; */ //================================================================================================================================= // 레이어 보이기_감추기 //================================================================================================================================= function show(obj) { document.getElementById([obj]).style.display ='block'; } function hide(obj) { document.getElementById([obj]).style.display ='none'; } //================================================================================================================================= // 투명이미지 //================================================================================================================================= function setPng24(obj) { obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } //================================================================================================================================= // 쿠키 생성 //================================================================================================================================= function setCookie( name, value, expiredays ) { var todayDate = new Date(); // name=value · cookie ?μ expiredays ? ? todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } //================================================================================================================================= // 쿠키 가져오기 //================================================================================================================================= function getCookie(name) { var Found = false var start, end var i = 0 // cookie ? u ? while(i <= document.cookie.length) { start = i end = start + name.length // name ? ?? if(document.cookie.substring(start, end) == name) { Found = true break } i++ } // name ? cookie a?? if(Found == true) { start = end + 1 end = document.cookie.indexOf(";", start) // κ? ?( ";" ) if(end < start) end = document.cookie.length // name ?? value ? ?. return document.cookie.substring(start, end) } // a ?? return "" } // closeWin : ?絿 a u?? onClick ?? // ? ?? function closeWin(idname){ setCookie(idname, "no" , 1); document.getElementById(idname).style.display="none"; } //================================================================================================================================= // 팝업창 닫고 링크페이지 이동 //================================================================================================================================= function PopCloseLink(linkPage){ var linkPage opener.location.href = linkPage; self.close(); } //================================================================================================================================= // 영역 인쇄 //================================================================================================================================= function printDiv () { if (document.all && window.print) { window.onbeforeprint = beforeDivs; window.onafterprint = afterDivs; window.print(); } } function beforeDivs () { if (document.all) { bodyWrap.style.display = 'none'; bodySelection.innerHTML = document.all['printDiv'].innerHTML; } } function afterDivs () { if (document.all) { bodyWrap.style.display = 'block'; bodySelection.innerHTML = ""; } } //================================================================================================================================= // showHideLayers //================================================================================================================================= function MM_showHideLayers() { //v9.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } //================================================================================================================================= // swap Image //================================================================================================================================= function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i한국광기술원 :: 이미지 미리보기" +"" +"" +""); } //=================================================================================================================================== //NeverSpam //================================================================================================================================== function AntiSpam(id, bid) { window.open('/antispam/antispamin.jsp?UniqId='+id+'&Category=' + bid,'AntiSpam','width=180,height=263,left=1,top=1'); }