/* resources.views.js.CDO_create_div */ /* ** 기존에 선언되지 않은 경우만 */ if (typeof(CDO_defined) == "undefined") { /* ** 함수가 선언됨을 표시 */ var CDO_defined = 1; function CDO_create_div(div_name) { if (div_name == false || div_name == '' || ! div_name) return false; var oSideViewLayer = document.getElementById(div_name); if (oSideViewLayer == null) { oSideViewLayer = document.createElement("DIV"); oSideViewLayer.id = div_name; oSideViewLayer.style.position = 'absolute'; oSideViewLayer.style.display = "none"; oSideViewLayer.style.zIndex = 10; oSideViewLayer.style.left = 0; oSideViewLayer.style.top = 0; document.body.appendChild(oSideViewLayer); } else { oSideViewLayer.style.position = 'absolute'; oSideViewLayer.style.display = "none"; oSideViewLayer.style.zIndex = 10; oSideViewLayer.style.left = 0; oSideViewLayer.style.top = 0; } /* ** 만들어진 객체를 반환 */ return oSideViewLayer; } /* ** zIndex를 부여 */ function CDO_create_div_exp(div_name, indx) { if (div_name == false || div_name == '' || ! div_name) return false; /* ** 1 ~ 999 만 허용 */ if (/^[1-9][0-9]?[0-9]?$/.test(indx) == false) return false; var obj = CDO_create_div(div_name); if (obj != null) obj.style.zIndex = indx; return obj; } }