// JavaScript Document // window.onload Event function addLoadEvent(func){ var oldonload = window.onload; if(typeof window.onload != 'function'){ window.onload = func; }else{ window.onload = function(){ oldonload(); func(); } } } // 팝업 윈도우 function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } /* copyright 패밀리사이트 바로가기 */ function copyright_link_intro(){ if(!document.getElementById("copyright_link01")) return false; if(!document.getElementById("copyright_linkLry01")) return false; var btn01 = document.getElementById("copyright_link01"); var lry01 = document.getElementById("copyright_linkLry01"); btn01.onclick = function(nsEvent){ var theEvent = nsEvent ? nsEvent : window.event; if(theEvent.stopPropagation){ theEvent.stopPropagation(); }else{ event.cancelBubble = true; } lry01.style.display = "block"; this.src = this.src.replace("Top.gif", "Bottom.gif"); } // 객체모델테스트 if(document.addEventListener){ document.addEventListener("click", layerHidden, false); document.addEventListener("unload", cleanup, false); }else if(document.attachEvent){ document.attachEvent("onclick", layerHidden); document.attachEvent("onunload", cleanup); }else if(srch_lry.onlcick){ document.onlcick = layerHidden; document.onunload = cleanup; } function layerHidden(){ lry01.style.display = "none"; btn01.src = btn01.src.replace("Bottom.gif", "Top.gif"); } function cleanup(){ if(document.detachEvent){ document.detachEvent("ononclick", layerHidden); } } } addLoadEvent(copyright_link_intro); function img_rollover(){ if(!document.getElementById("img_rollover")) return false; var source = document.getElementById("img_rollover").getElementsByTagName("img"); for(i=0; i"); document.write(""); var target = document.getElementById('lnb_menu').getElementsByTagName("img") target[no].src = target[no].src.replace("_off", "_on"); } function reSearch(value){ var selection = document.getElementById("resifrm"); selection.src = "/jsp/portal/Company/intro/res"+value+".jsp" }