function tulip_getCookie(s){ var tmp=document.cookie.split('; '); for (var i=0; i= 0 ) { return true; } else { return false; } } function onresize_func() { if (typeof(SchSug_setcoor) == "function") { SchSug_setcoor(); } } //window.onresize = onresize_func;//각 페이지에서 설정.(다른 window.onresize 이벤트가 있을때 충돌나서 하나만 실행됨). function SchSug_setcoor() { if(isIE()){ var objText = document.getElementById("searchKeyword"); var obj = document.getElementById("SchSug"); with (obj.style) { top=getRealOffsetTop(objText)+objText.clientHeight; left=getRealOffsetLeft(objText); } var obj_set_sugicn = document.getElementById("set_sugicn"); obj_set_sugicn.style.top = getRealOffsetTop(objText) + 4; obj_set_sugicn.style.left = getRealOffsetLeft(objText)+ objText.offsetWidth - 17; var obj_set_sugicnUP = document.getElementById("set_sugicnUP"); obj_set_sugicnUP.style.top = getRealOffsetTop(objText) + 4; obj_set_sugicnUP.style.left = getRealOffsetLeft(objText)+ objText.offsetWidth - 17; document.getElementById('set_sugicn').style.display = ''; } else { document.getElementById('set_sugicn').style.display = 'none'; document.getElementById('set_sugicn').style.height = '0px'; document.getElementById('set_sugicn').style.width = '0px'; } } //객체의 top 길이를 반환한다. function getRealOffsetTop(o) { return o ? o.offsetTop + getRealOffsetTop(o.offsetParent) : 0; } //객체의 left 길이를 반환한다. function getRealOffsetLeft(o) { return o ? o.offsetLeft + getRealOffsetLeft(o.offsetParent) : 0; }