/* *--------------------------------------------------- ÇÁ·Î±×·¥¸í : ¿ï»ê±³À°°úÇבּ¸¿ø ȨÆäÀÌÁö ÆÄÀϸí : _script/commonlib.js ÀÛ¼ºÀÚ : Á¶ÀÏȯ ÆÄÀϳ»¿ë : ÀÚ¹Ù½ºÅ©¸³Æ® Lib ¹öÀü : 1.0 ÀÛ¼ºÀÏ : 2008.03.18 ÃÖÁ¾¼öÁ¤ÀÏ : ¼öÁ¤³»¿ë : *--------------------------------------------------- */ /* FF¿Í IE°ü·Ã */ function setButAlign(obj) { obj.style.verticalAlign = "baseline"; } /* ÀͽºÇ÷η¯ ¹öÀüº° */ function setMainHeight(obj,size) { if (userAgent.indexOf('MSIE 7.0') < 1) { obj.style.height = size +"px"; } } function setMainWidth(obj,size) { if (userAgent.indexOf('MSIE 7.0') < 1) { obj.style.width = size +"px"; } } function setButMargin(obj) { obj.style.margin = "0px 0px 0px 0px"; } function setButWidth(obj) { obj.style.width = parseInt(obj.firstChild.offsetWidth,10) +"px"; obj.style.margin = "0px 2px 0px 3px"; } function setButHeight(obj) { obj.style.height = "20px"; } /* firstChildNode °¡ Àß ¾ÈµÉ¶§ */ /** * Throughout, whitespace is defined as one of the characters * "\t" TAB \u0009 * "\n" LF \u000A * "\r" CR \u000D * " " SPC \u0020 * * This does not use Javascript's "\s" because that includes non-breaking * spaces (and also some other characters). */ /** * Determine whether a node's text content is entirely whitespace. * * @param nod A node implementing the |CharacterData| interface (i.e., * a |Text|, |Comment|, or |CDATASection| node * @return True if all of the text content of |nod| is whitespace, * otherwise false. */ function is_all_ws( nod ) { // Use ECMA-262 Edition 3 String and RegExp features return !(/[^\t\n\r ]/.test(nod.data)); } /** * Determine if a node should be ignored by the iterator functions. * * @param nod An object implementing the DOM1 |Node| interface. * @return true if the node is: * 1) A |Text| node that is all whitespace * 2) A |Comment| node * and otherwise false. */ function is_ignorable( nod ) { return ( nod.nodeType == 8) || // A comment node ( (nod.nodeType == 3) && is_all_ws(nod) ); // a text node, all ws } /** * Version of |previousSibling| that skips nodes that are entirely * whitespace or comments. (Normally |previousSibling| is a property * of all DOM nodes that gives the sibling node, the node that is * a child of the same parent, that occurs immediately before the * reference node.) * * @param sib The reference node. * @return Either: * 1) The closest previous sibling to |sib| that is not * ignorable according to |is_ignorable|, or * 2) null if no such node exists. */ function node_before( sib ) { while ((sib = sib.previousSibling)) { if (!is_ignorable(sib)) return sib; } return null; } /** * Version of |nextSibling| that skips nodes that are entirely * whitespace or comments. * * @param sib The reference node. * @return Either: * 1) The closest next sibling to |sib| that is not * ignorable according to |is_ignorable|, or * 2) null if no such node exists. */ function node_after( sib ) { while ((sib = sib.nextSibling)) { if (!is_ignorable(sib)) return sib; } return null; } /** * Version of |lastChild| that skips nodes that are entirely * whitespace or comments. (Normally |lastChild| is a property * of all DOM nodes that gives the last of the nodes contained * directly in the reference node.) * * @param sib The reference node. * @return Either: * 1) The last child of |sib| that is not * ignorable according to |is_ignorable|, or * 2) null if no such node exists. */ function last_child( par ) { var res=par.lastChild; while (res) { if (!is_ignorable(res)) return res; res = res.previousSibling; } return null; } /** * Version of |firstChild| that skips nodes that are entirely * whitespace and comments. * * @param sib The reference node. * @return Either: * 1) The first child of |sib| that is not * ignorable according to |is_ignorable|, or * 2) null if no such node exists. */ function first_child( par ) { var res=par.firstChild; while (res) { if (!is_ignorable(res)) return res; res = res.nextSibling; } return null; } /** * Version of |data| that doesn't include whitespace at the beginning * and end and normalizes all whitespace to a single space. (Normally * |data| is a property of text nodes that gives the text of the node.) * * @param txt The text node whose data should be returned * @return A string giving the contents of the text node with * whitespace collapsed. */ function data_of( txt ) { var data = txt.data; // Use ECMA-262 Edition 3 String and RegExp features data = data.replace(/[\t\n\r ]+/g, " "); if (data.charAt(0) == " ") data = data.substring(1, data.length); if (data.charAt(data.length - 1) == " ") data = data.substring(0, data.length - 1); return data; } /* firstChildNode °¡ Àß ¾ÈµÉ¶§ */ /* ¹®ÀÚ¿­ üũ ÇÔ¼ö */ function isValidID(str) { var pattern = /^[a-zA-Z0-9_-]{3,20}$/; return (pattern.test(str)) ? true : false; } function isValidPW(str) { var pattern = /^[a-z0-9_-`~!@#$%^&*)(+]{4,20}$/; return (pattern.test(str)) ? true : false; } function isValidPhone(str) { var pattern = /(^0[0-9]{1,2})-([1-9][0-9]{1,3})-([0-9]{4})/; return (pattern.test(str)) ? true : false; } function isValidNumber(str) { var pattern = /(^[0-9])/; return (pattern.test(str)) ? true : false; } /* ¹®ÀÚ¿­ üũ ÇÔ¼ö */ /* ¸Þ´º ·Ñ¿À¹ö ÇÔ¼ö */ var originPosition = 0; var originAxis = null; function rollOver(obj, size, axis) { if(appName == "Microsoft Internet Explorer") { originAxis = axis; if (axis == "X") { var bgPositionX = ""; var bgPositionY = ""; if (obj.currentStyle) { bgPositionX = obj.currentStyle["backgroundPositionX"]; bgPositionY = obj.currentStyle["backgroundPositionY"]; } originPosition = bgPositionY; obj.style.backgroundPosition = bgPositionX +" -"+ size +"px "; } else { var bgPositionX = ""; var bgPositionY = ""; if (obj.currentStyle) { bgPositionX = obj.currentStyle["backgroundPositionX"]; bgPositionY = obj.currentStyle["backgroundPositionY"]; } originPosition = bgPositionX; //alert(obj.style.backgroundPosition) obj.style.backgroundPosition = " -"+ size +"px "+ bgPositionY; } } } function rollOut(obj) { if(appName == "Microsoft Internet Explorer") { if (originAxis == "X") { var bgPositionX = ""; if (obj.currentStyle) { bgPositionX = obj.currentStyle["backgroundPositionX"]; } obj.style.backgroundPosition = bgPositionX +" "+ originPosition; } else { var bgPositionY = ""; if (obj.currentStyle) { bgPositionY = obj.currentStyle["backgroundPositionY"]; } obj.style.backgroundPosition = originPosition +" "+ bgPositionY; } } } /* ¸µÅ© ÇÔ¼ö */ function gotoUrl(strUrl) { window.location.href = strUrl; } function gotoUrlMenu(strUrl, linktype, size) { if (linktype == "N") { window.location.href = strUrl; } else if (linktype == "blank") { window.open(strUrl); } else if (linktype == "all") { mbookzView2(strUrl,'OiizDNBTA5Tztohh',1,'Y','namgu'); } else { var sizeA = size.split(","); var popStr = "width="+ sizeA[0] +", height="+ sizeA[1] +", top=5, left=5, toolbar=no, location=no,"; popStr += "directories=no, status=yes, menubar=no, scrollbars="+ sizeA[2] +", resizable=no" var newWin = window.open(strUrl, "", popStr); } } function ffCurrentStyle (obj, stl) { var computedStyle; computedStyle = document.defaultView.getComputedStyle(obj, null); return computedStyle[stl]; } /* strReplace */ function strReplace(org, dest, str) { var reg = new RegExp(org, "g"); return str.replace(reg, dest); } /* Ltrim */ function LTrim(strVal) { i =0; if (strVal != "") { len = strVal.length; if (len == 0) { return strVal; } while (1) { if (strVal.substr(i, 1) == " ") { i++; continue; } else { b = strVal.substring(i, len); return b; break; } } } else { return ""; } } /* ¸Þ´º »ý¼º */ function initMenu(objName, size, axis) { var gap = "0px"; var codination = 0; var totalGap = 0; var obj = document.getElementById(objName); var menuItem = obj.getElementsByTagName("li"); var j = 0; gotoMenuUrl = function(obj) { window.location.href = obj.getElementsByTagName("a").item(0).href } for (i=0;i < menuItem.length; i++) { var linkItem = menuItem[i].getElementsByTagName("a"); if (linkItem.length > 0) { if (menuItem.item(i).className == "menuOn") { gap = -size +"px "; } else { gap = "0px"; } if (axis == "Y") { codination = menuItem[i].clientHeight; menuItem.item(i).style.backgroundPosition = gap +" "+ -(codination * j) +"px"; } else { codination = menuItem[i].clientWidth; menuItem.item(i).style.backgroundPosition = -(codination * j) +"px "+ gap; } menuItem.item(i).style.cursor = "pointer"; menuItem.item(i).title = linkItem.item(0).firstChild.nodeValue; var linkUrl = linkItem.item(0).href; gotoUrlThis = function () { gotoMenuUrl(this) } rollOverThis = function () { rollOver(this, size, axis) } rollOutthis = function () { rollOut(this) } if (window.addEventListener) { menuItem.item(i).addEventListener("click", gotoUrlThis, false); menuItem.item(i).addEventListener("mouseover", rollOverThis, false); menuItem.item(i).addEventListener("mouseout", rollOutthis, false); } else { menuItem.item(i).setAttribute("onclick", gotoUrlThis); menuItem.item(i).setAttribute("onmouseover", rollOverThis); menuItem.item(i).setAttribute("onmouseout", rollOutthis); } j++; } } } /* ¹öư»çÀÌÁî Á¶Àý */ function initButton(objName) { var firstChildItem = document.getElementById(objName).childNodes[0]; if (firstChildItem.nodeName == "#text") firstChildItem = document.getElementById(objName).childNodes[1]; var totWidth = 0; var totHeight = 0; var elmLength = firstChildItem.childNodes.length; for (i=elmLength-1;i>=0;i--) { if (firstChildItem.childNodes[i].nodeName != "#text") { totWidth += firstChildItem.childNodes[i].offsetWidth; totHeight = firstChildItem.childNodes[i].offsetHeight; } else { firstChildItem.removeChild(firstChildItem.childNodes[i]); } } firstChildItem.style.width = totWidth +"px"; firstChildItem.style.height = (totHeight) +"px"; firstChildItem.parentNode.style.width = totWidth +"px"; firstChildItem.parentNode.style.height = (totHeight) +"px"; } /* ¹öư»çÀÌÁî Á¶Àý */ /* Select ÄÞº¸¹Ú½º µðÀÚÀÎ - ÀÛ¾÷Áß */ function beautyCombo(obj) { //alert(obj.offsetWidth) var cLength = obj.length; var parentObj = obj.parentNode; var ulObj = document.createElement("ul"); ulObj.id = obj.id +"_view"; ulObj.style.width = obj.offsetWidth +"px"; ulObj.style.height = "20px"; ulObj.style.height = "auto"; ulObj.style.margin = "0px 0px 0px 0px"; ulObj.style.padding = "0px 0px 0px 0px"; ulObj.style.border = "1px solid #CCCCCC"; ulObj.style.listStyle = "none"; parentObj.appendChild(ulObj); var liObj = document.createElement("li"); liObj.style.width = (obj.offsetWidth-10) +"px"; liObj.style.height = "18px"; liObj.style.margin = "0px 0px 0px 0px"; liObj.style.padding = "2px 0px 0px 0px"; liObj.style.listStyle = "none"; liObj.style.cssFloat = "left"; var newText = document.createTextNode(obj[0].text); liObj.appendChild(newText); ulObj.appendChild(liObj); obj.style.display = "none"; } // Fade È¿°ú ¸Þ´º function fadeMenu(objname,after) { var obj = document.getElementById(objname); var text_field = document.getElementById("image_exp"); var zoomButton = document.getElementById("zoombut"); var downButton = document.getElementById("downbut"); if (document.all) { obj.filters.blendTrans.stop(); obj.filters.blendTrans.Apply(); obj.src = after; obj.filters.blendTrans.Play(); } else { fadeImg(objname,after); obj.style.opacity = 1; } } function fadeImg(objname,afteri) { timer=setInterval("modOpaci('"+objname+"','O');",20); } function modOpaci(objName,drct){ var obje = document.getElementById(objName); var opacityVal; if (Browser.indexOf('MSIE') < 0) { opacityVal = parseFloat(obje.style.opacity); } else { opacityVal = parseFloat(obje.filters.alpha.opacity); } if(drct == "I") { if (Browser.indexOf('MSIE') < 0) { if (opacityVal < 1) { opacityVal += 0.1; obje.style.opacity = opacityVal; } else { clearInterval(timer); } } else { if (opacityVal < 100) { opacityVal += 10; obje.filters.alpha.opacity = opacityVal; obje.filters.alpha.style = "2"; obje.filters.alpha.finishopacity = opacityVal; } else { clearInterval(timer); } } } if(drct == "O") { if (Browser.indexOf('MSIE') < 0) { if (opacityVal > 0.1) { opacityVal -= 0.1; obje.style.opacity = opacityVal; } else { clearInterval(timer); } } else { if (opacityVal > 10) { opacityVal -= 10; obje.filters.alpha.opacity = opacityVal; obje.filters.alpha.style = "2"; obje.filters.alpha.finishopacity = opacityVal; } else { clearInterval(timer); } } } } /* È­¸é °¡¸®±â (¹ÝÅõ¸í) */ function objEclipse() { disSelectObj = document.createElement("DIV"); document.body.appendChild(disSelectObj); disSelectObj.style.position = "absolute"; disSelectObj.style.top = "0px"; disSelectObj.style.left = "0px"; disSelectObj.style.width = "100%"; disSelectObj.style.height = "100%"; iframeObj = document.createElement("iframe"); disSelectObj.appendChild(iframeObj); iframeObj.style.width = "100%"; iframeObj.style.height = "100%"; iframeObj.style.margin = "0"; iframeObj.style.border = "0 none transparent"; disSelectObj.style.display = "block"; if (Browser.indexOf('MSIE') > -1) { if (disSelectObj.offsetHeight < document.body.scrollHeight) { disSelectObj.style.height = document.body.scrollHeight +"px"; } } else { if (disSelectObj.offsetHeight < document.documentElement.scrollHeight) { disSelectObj.style.height = document.documentElement.scrollHeight +"px"; } } disSelectObj.style.zIndex = "205"; disSelectObj.style.backgroundColor = "#FFFFFF"; if (Browser.indexOf('MSIE') < 0) { disSelectObj.style.opacity = 0.8; } else { disSelectObj.style.filter = "alpha(opacity=80, style=2, finishopacity=80)"; } } /* °¡¸° È­¸é ¿ø·¡´ë·Î */ function disobjEclipse() { iframeObj = null; disSelectObj.style.position = "absolute"; disSelectObj.style.top = "0px"; disSelectObj.style.left = "0px"; disSelectObj.style.width = "0px"; disSelectObj.style.height = "0px"; disSelectObj.style.display = "none"; disSelectObj = null; } /* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸° ÈÄ) */ function showMessageObj(Inhtml){ messageObj = document.createElement("DIV"); document.body.appendChild(messageObj); var scrollGap = 0; if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") { scrollGap = document.body.scrollTop; } else { scrollGap = document.documentElement.scrollTop; } if (!disSelectObj) { objEclipse(); } messageObj.style.position = "absolute"; messageObj.style.top = "40%"; messageObj.style.left = "50%"; messageObj.style.padding = "2px 2px 2px 2px"; messageObj.style.display = "block"; messageObj.innerHTML = Inhtml; var firstChild = first_child(messageObj); var leftGap = parseInt((firstChild.offsetWidth/2),10); var topGap = parseInt((firstChild.offsetHeight/2),10); messageObj.style.marginTop = (-1*(topGap-scrollGap)) +"px"; messageObj.style.marginLeft = (-1*leftGap) +"px"; messageObj.style.zIndex = "206"; } /* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½) */ function showMessageObjNon(Inhtml,srcObj,posi){ if (messageObj == null || messageObj == "undefined") { messageObj = document.createElement("DIV"); //document.body.appendChild(messageObj); //srcObj.insertAdjacentElement("afterEnd", messageObj); document.body.appendChild(messageObj); } //srcObj.clientWidth; messageObj.style.position = "absolute"; messageObj.style.width = "auto"; messageObj.style.height = "auto"; messageObj.innerHTML = ""; innerMessage = document.createElement("DIV"); messageObj.appendChild(innerMessage); innerMessage.style.position = "relative"; innerMessage.style.background = "#FFFFFF"; //innerMessage.style.padding = "2px 2px 2px 2px"; innerMessage.style.top = "0px"; innerMessage.style.left = "0px"; innerMessage.style.border = "1px solid #c0c0c0"; innerMessage.style.display = "block"; dataObj = document.createElement("DIV"); innerMessage.appendChild(dataObj); dataObj.innerHTML = Inhtml; var wWidth = dataObj.firstChild.offsetWidth; var wHeight = dataObj.firstChild.offsetHeight; dataObj.style.position = "absolute"; dataObj.style.width = wWidth +"px"; dataObj.style.height = wHeight +"px"; dataObj.style.top = "0px"; dataObj.style.left = "0px"; dataObj.style.zIndex = "203"; dataObj.style.display = "block"; var ifStr = ""; innerMessage.innerHTML = innerMessage.innerHTML + ifStr; var scrollGap = 0; if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") { scrollGap = document.body.scrollTop; } else { scrollGap = document.documentElement.scrollTop; } messageObj.style.background = "#FFFFFF"; messageObj.style.position = "absolute"; messageObj.style.top = "50%"; messageObj.style.left = "50%"; messageObj.style.padding = "2px 2px 2px 2px"; var firstChild = first_child(messageObj); var leftGap = parseInt((firstChild.offsetWidth/2),10); var topGap = parseInt((firstChild.offsetHeight/2),10); messageObj.style.marginTop = (-1*(topGap-scrollGap)) +"px"; messageObj.style.marginLeft = (-1*leftGap) +"px"; messageObj.style.display = "block"; messageObj.style.zIndex = "202"; } /* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½, À§Ä¡ÁöÁ¤) */ function showMessageObjNonPos(Inhtml,srcObj, posX, posY){ if (PopObj == null || PopObj == "undefined") { PopObj = document.createElement("DIV"); //document.body.appendChild(PopObj); //srcObj.insertAdjacentElement("afterEnd", PopObj); document.body.appendChild(PopObj); } //srcObj.clientWidth; PopObj.style.position = "absolute"; PopObj.style.width = "auto"; PopObj.style.height = "auto"; PopObj.innerHTML = ""; innerMessage = document.createElement("DIV"); PopObj.appendChild(innerMessage); innerMessage.style.position = "relative"; //innerMessage.style.background = "#FFFFFF"; //innerMessage.style.padding = "2px 2px 2px 2px"; innerMessage.style.top = "0px"; innerMessage.style.left = "0px"; //innerMessage.style.border = "1px solid #c0c0c0"; innerMessage.style.display = "block"; dataObj = document.createElement("DIV"); innerMessage.appendChild(dataObj); dataObj.innerHTML = Inhtml; var wWidth = dataObj.firstChild.offsetWidth; var wHeight = dataObj.firstChild.offsetHeight; dataObj.style.position = "absolute"; dataObj.style.width = wWidth +"px"; dataObj.style.height = wHeight +"px"; dataObj.style.top = "0px"; dataObj.style.left = "0px"; dataObj.style.zIndex = "203"; dataObj.style.display = "block"; //var ifStr = ""; //innerMessage.innerHTML = innerMessage.innerHTML + ifStr; var scrollGap = 0; if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") { scrollGap = document.body.scrollTop; } else { scrollGap = document.documentElement.scrollTop; } //PopObj.style.background = "#FFFFFF"; PopObj.style.position = "absolute"; PopObj.style.top = posY +"px"; PopObj.style.left = posX +"px"; PopObj.style.padding = "2px 2px 2px 2px"; PopObj.style.display = "block"; if (Browser.indexOf('MSIE') < 0) { disSelectObj.style.opacity = 0.8; } else { disSelectObj.style.filter = "alpha(opacity=80, style=2, finishopacity=80)"; } PopObj.style.zIndex = "202"; } /* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½, À§Ä¡ÁöÁ¤) + Fade in*/ function showMsgONPFade(Inhtml,srcObj, posX, posY){ if (PopObj == null || PopObj == "undefined") { PopObj = document.createElement("DIV"); PopObj.id = "PopObj"; //document.body.appendChild(PopObj); //srcObj.insertAdjacentElement("afterEnd", PopObj); document.body.appendChild(PopObj); } //srcObj.clientWidth; PopObj.style.position = "absolute"; PopObj.style.width = "auto"; PopObj.style.height = "auto"; PopObj.innerHTML = ""; innerMessage = document.createElement("DIV"); PopObj.appendChild(innerMessage); innerMessage.style.position = "relative"; //innerMessage.style.background = "#FFFFFF"; //innerMessage.style.padding = "2px 2px 2px 2px"; innerMessage.style.top = "0px"; innerMessage.style.left = "0px"; //innerMessage.style.border = "1px solid #c0c0c0"; innerMessage.style.display = "block"; dataObj = document.createElement("DIV"); dataObj.id = "dataObj"; innerMessage.appendChild(dataObj); dataObj.innerHTML = Inhtml; var wWidth = dataObj.firstChild.offsetWidth; var wHeight = dataObj.firstChild.offsetHeight; dataObj.style.position = "absolute"; dataObj.style.width = wWidth +"px"; dataObj.style.height = wHeight +"px"; dataObj.style.top = "0px"; dataObj.style.left = "0px"; dataObj.style.zIndex = "203"; dataObj.style.display = "block"; //var ifStr = ""; //innerMessage.innerHTML = innerMessage.innerHTML + ifStr; var scrollGap = 0; if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") { scrollGap = document.body.scrollTop; } else { scrollGap = document.documentElement.scrollTop; } //PopObj.style.background = "#FFFFFF"; PopObj.style.position = "absolute"; PopObj.style.top = posY +"px"; PopObj.style.left = posX +"px"; PopObj.style.padding = "2px 2px 2px 2px"; PopObj.style.zIndex = "202"; PopObj.style.display = "block"; if (Browser.indexOf('MSIE') < 0) { PopObj.style.opacity = 0.1; timer=setInterval("modOpaci('PopObj','I');",20); } else { var tempObj = document.getElementById("detailFrame"); tempObj.style.filter = "alpha(opacity=10, style=2, finishopacity=10)"; timer=setInterval("modOpaci('detailFrame','I');",20); } //timer=setInterval("modOpaci('PopObj','I');",80); } /* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¸¸ ¾ø¾Ö±â */ function hidePopObj() { PopObj.style.position = "absolute"; PopObj.style.top = "0"; PopObj.style.left = "0"; PopObj.innerHTML = ""; PopObj.style.marginTop = "0"; PopObj.style.marginLeft = "0"; PopObj.style.zIndex = "1"; PopObj.style.display = "none"; PopObj = null; } /* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¸¸ ¾ø¾Ö±â */ function hideMessageObj() { messageObj.style.position = "absolute"; messageObj.style.top = "0"; messageObj.style.left = "0"; messageObj.innerHTML = ""; messageObj.style.marginTop = "0"; messageObj.style.marginLeft = "0"; messageObj.style.zIndex = "1"; messageObj.style.display = "none"; messageObj = null; } /* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¿Í ¹ÝÅõ¸í È­¸é ¾ø¾Ö±â */ function clearMessageObj() { messageObj.style.position = "absolute"; messageObj.style.top = "0"; messageObj.style.left = "0"; messageObj.innerHTML = ""; messageObj.style.marginTop = "0"; messageObj.style.marginLeft = "0"; messageObj.style.zIndex = "1"; messageObj.style.display = "none"; messageObj = null; disobjEclipse(); } function nextFocus(obj,length) { var tForm = obj.form; var thisIndex = 0; if (obj.value.length >= length) { for (i=0;i"; inHtml += "
"; inHtml += ""; inHtml += "
"; inHtml += error_str; inHtml += "
"; inHtml += "
"; inHtml += "
"; inHtml += ""; inHtml += "
"; inHtml += "
"; inHtml += "
"; inHtml += ""; showMessageObj(inHtml); errorCall = function () {alertFocus(obj,del,sel,focusing);clearMessageObj();} var alertBut = document.getElementById('alertBut'); if (window.addEventListener) { alertBut.addEventListener("click", errorCall, false); } else { alertBut.setAttribute("onclick", errorCall); } } else { errorCall(); } } /* »õ·Î¿î Confirm */ function confirmNew(error_str, time) { var inHtml = ""; inHtml += "
"; inHtml += "
"; inHtml += "
    "; inHtml += "
  • Error
  • "; inHtml += "
  • \"´Ý±â\"
  • "; inHtml += "
"; inHtml += "
"; inHtml += error_str; inHtml += "
"; inHtml += "
"; inHtml += "
"; inHtml += ""; inHtml += ""; inHtml += "
"; inHtml += "
"; inHtml += "
"; inHtml += "
"; showMessageObj(inHtml); confirmCall = function () {clearMessageObj(); return true;} cancleCall = function () {clearMessageObj(); return false;} var confirmBut = document.getElementById('confirmBut'); var cancelBut = document.getElementById('cancelBut'); if (window.addEventListener) { confirmBut.addEventListener("click", confirmCall, false); cancelBut.addEventListener("click", cancleCall, false); } else { confirmBut.setAttribute("onclick", confirmCall); cancelBut.setAttribute("onclick", cancleCall); } } /* alert Focus */ function alertFocus(obj,del,sel,focusing){ if (focusing!="F") { if (obj.type == "radio") { obj.focus(); } else { if (del=="T") { obj.value=""; } if (sel=="T") { obj.select(); } obj.focus(); } } } /** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64._utf8_encode(input); while (i < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, // public method for decoding decode : function (input) { var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < input.length) { enc1 = this._keyStr.indexOf(input.charAt(i++)); enc2 = this._keyStr.indexOf(input.charAt(i++)); enc3 = this._keyStr.indexOf(input.charAt(i++)); enc4 = this._keyStr.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } } output = Base64._utf8_decode(output); return output; }, // private method for UTF-8 encoding _utf8_encode : function (string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; }, // private method for UTF-8 decoding _utf8_decode : function (utftext) { var string = ""; var i = 0; var c = c1 = c2 = 0; while ( i < utftext.length ) { c = utftext.charCodeAt(i); if (c < 128) { string += String.fromCharCode(c); i++; } else if((c > 191) && (c < 224)) { c2 = utftext.charCodeAt(i+1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2; } else { c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return string; }, URLEncode : function (string) { return escape(this._utf8_encode(string)); }, // public method for url decoding URLDecode : function (string) { return this._utf8_decode(unescape(string)); } } /*12 -> 0012 ó¾ö 0 ä¿ì±â*/ function zeroFill(inputvalue,demandLength){ inputvalue = "" + inputvalue; var spaceValue = ""; for (var i = 0; i < demandLength-inputvalue.length;i++){ spaceValue += "0"; } return spaceValue+inputvalue; } /* ³¯Â¥¼±ÅÃ¿ë ´Þ·Â */ //±â³äÀÏ¿¡ ÇØ´çÇÏ´Â ¹è¿­ Àü¿ªº¯¼ö(ÀÌ´Â ¼­¹ö»çÀ̵忡¼­ µ¿ÀûÀ¸·Î »ý¼º½ÃÄÑÁà¾ßÇÔ); var anniversary = new Array(); function viewCal(selectDate, srcObj, inputObj) { //selectDateÀ̽´°¡ µÇ´Â ³¯Â¥, calDivObj´Þ·ÂÀ» »Ñ¸± DIVÅÂ±× ¾ÆÀ̵ð //Àü¿ªº¯¼ö1 - À̽´°¡ µÇ´Â ³¯Â¥ ÁöÁ¤ var selectDate = selectDate; today = new Date(); // ¿À´Ã³¯Â¥ ÁöÁ¤ toDate = today.getFullYear() + zeroFill((today.getMonth()+1), 2) + zeroFill(today.getDate(), 2); //alert(toDate); if (selectDate == '') { selectDate = toDate; } var preMonDate; var nextMonDate; preMonDate= selectDate.substr(0,4) + zeroFill((parseInt(selectDate.substr(4,2), 10)-1), 2) + selectDate.substr(6,2); nextMonDate= selectDate.substr(0,4) + zeroFill((parseInt(selectDate.substr(4,2), 10)+1), 2) + selectDate.substr(6,2); //alert(selectDate+":"+ preMonDate +":"+ nextMonDate); if (selectDate.substr(4,2) == '01') preMonDate = (parseInt(selectDate.substr(0,4), 10)-1) + '12' + selectDate.substr(6,2); if(selectDate.substr(4,2)=='12') nextMonDate= (parseInt(selectDate.substr(0,4), 10)+1) + '01' + selectDate.substr(6,2); //alert(selectDate+":"+ preMonDate +":"+ nextMonDate); var firstDay = getFirstDay(selectDate.substr(0,4), selectDate.substr(4,2)); // ù¹øÂ° ¿äÀÏÀÇ ¼ýÀÚ°ª var lastDay = getLastDay(selectDate.substr(0,4), selectDate.substr(4,2)); // ¸¶Áö¸· ¿äÀÏÀÇ ¼ýÀÚ°ª var daysOfMonth = getDaysOfMonth(selectDate.substr(0,4), selectDate.substr(4,2)); // 28, 29, 30, 31 Áß Çϳª //alert(firstDay+":"+ lastDay +":"+ daysOfMonth); var calString;//´Þ·Â HTMLÀ» ÀúÀåÇϱâ À§ÇÑ º¯¼ö´Ù. var curM_week_cnt = Math.ceil( (parseInt(firstDay,10)+parseInt(daysOfMonth,10))/7 ); var preYeadate = (parseInt(selectDate.substr(0,4))-1)+ selectDate.substr(4,4); var nextYeadate = (parseInt(selectDate.substr(0,4))+1)+ selectDate.substr(4,4); calString = "
"; calString += "
"; calString += "\"ÀÛ³â\""; calString += "\"Áö³­´Þ\""; calString += selectDate.substr(0,4) +"³â "+ selectDate.substr(4,2) +"¿ù"; calString += "\"´ÙÀ½´Þ\""; calString += "\"³»³â\""; calString += " \"´Ý±â\""; calString += "
"; calString += "
"; calString += "
    "; calString += "
  • S
  • "; calString += "
  • M
  • "; calString += "
  • T
  • "; calString += "
  • W
  • "; calString += "
  • T
  • "; calString += "
  • F
  • "; calString += "
  • S
  • "; calString += "
"; var topdistance = 0; var topdistance_detail = 0; var tempcell = 0; var currentNum = 0; // ³¯Â¥ Ç¥½Ã¿ë var classW = ""; var classD = ""; var classD_link = ""; for (row=1;row<=curM_week_cnt;row++) { calString += "
    "; for(var col = 0;col < 7;col++) { colNum = ((row-1) * 7) + (col+1); thisDay = colNum-firstDay; onclick = "inputDate('"+selectDate.substr(0,4)+"-"+selectDate.substr(4,2)+"-"+ zeroFill(thisDay+"",2) +"','"+ inputObj +"')"; //´Þ·Â¿¡ ³¯Â¥°¡ ³ª¿Í¾ß µÇ´Â Á¶°Ç if (colNum > firstDay && colNum < (firstDay + daysOfMonth + 1)) { if (col == 0 || col == 6) { classW = " class=\"week"+ col +"\""; } else { classW = " class=\"week\""; } calString += "
  • "+ thisDay +"
  • "; } else { calString += "
  • "; } } calString += "
"; } calString += "
"; showMessageObjNon(calString, srcObj, "C"); var preYBut = document.getElementById("preYBut"); var preMBut = document.getElementById("preMBut"); var nextMBut = document.getElementById("nextMBut"); var nextYBut = document.getElementById("nextYBut"); var viewCal01 = function () { viewCal(preYeadate, srcObj, inputObj); } var viewCal02 = function () { viewCal(preMonDate, srcObj, inputObj); } var viewCal03 = function () { viewCal(nextMonDate, srcObj, inputObj); } var viewCal04 = function () { viewCal(nextYeadate, srcObj, inputObj); } if (window.addEventListener) { preYBut.addEventListener("click", viewCal01, false); preMBut.addEventListener("click", viewCal02, false); nextMBut.addEventListener("click", viewCal03, false); nextYBut.addEventListener("click", viewCal04, false); } else { preYBut.setAttribute("onclick", viewCal01); preMBut.setAttribute("onclick", viewCal02); nextMBut.setAttribute("onclick", viewCal03); nextYBut.setAttribute("onclick", viewCal04); } } /////////////////////////³¯Â¥ °ü·ÃµÈ ¿¬»ê ÇÔ¼öµé//////////////////////////// function getDaysOfMonth(year, month) { var DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Non-Leap year Month days.. var lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Leap year Month days.. /* Check for leap year .. 1.Years evenly divisible by four are normally leap years, except for... 2.Years also evenly divisible by 100 are not leap years, except for... 3.Years also evenly divisible by 400 are leap years. */ if ((year % 4) == 0) { if ((year % 100) == 0 && (year % 400) != 0) return DOMonth[parseInt(month, 10)-1]; return lDOMonth[parseInt(month, 10)-1]; } else return DOMonth[parseInt(month, 10)-1]; } // ù¹øÂ° ¿äÀÏ ±¸Çϱâ function getFirstDay(year, month) { var tmpDate = new Date(); tmpDate.setDate(1); tmpDate.setMonth(parseInt(month, 10)-1); tmpDate.setFullYear(year); return tmpDate.getDay(); } // ¸¶Áö¸· ¿äÀÏ ±¸Çϱâ function getLastDay(year, month) { var tmpDate = new Date(); tmpDate.setDate( getDaysOfMonth(year,month) ); tmpDate.setMonth(parseInt(month, 10)-1); tmpDate.setFullYear(year); return tmpDate.getDay(); } function inputDate(dateval, inputObj) { var input_obj = document.getElementById(inputObj); input_obj.value = dateval; hideMessageObj(); } /* email ÁÖ¼Ò Ã¼Å© */ function isValidEmail(str){ var pattern = /^[-_a-zA-Z0-9]+@[\.a-zA-Z0-9-]+\.[a-zA-Z]+$/; return (pattern.test(str)) ? true : false; } // Áֹεî·Ï¹øÈ£ üũ function checkJumin(jm_bh1,jm_bh2) { var tot=0, result=0, re=0, se_arg=0; var chk_num=""; chk_jm_bh = jm_bh1 + jm_bh2; if (chk_jm_bh.length != 13) { return false; } else { for (var i=0; i < 12; i++) { if (isNaN(chk_jm_bh.substr(i, 1))) return false; se_arg = i; if (i >= 8) se_arg = i - 8; tot = tot + Number(chk_jm_bh.substr(i, 1)) * (se_arg + 2) } if (chk_num != "err") { re = tot % 11; result = 11 - re; if (result >= 10) result = result - 10; if (result != Number(chk_jm_bh.substr(12, 1))) return false; if ((Number(chk_jm_bh.substr(6, 1)) < 1) || (Number(chk_jm_bh.substr(6, 1)) > 4)) return false; } } return true; } //¼ýÀÚ¸¸ ÀÔ·Â function numOnly(obj,frm,isCash){ //»ç¿ë¿¹ : //¼¼ÀÚ¸® ÄÞ¸¶ »ç¿ë½Ã true , ¼ýÀÚ¸¸ ÀÔ·Â ½Ã false if (event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39) return; var returnValue = ""; for (var i = 0; i < obj.value.length; i++){ if (obj.value.charAt(i) >= "0" && obj.value.charAt(i) <= "9"){ returnValue += obj.value.charAt(i); }else{ returnValue += ""; } } if (isCash){ obj.value = cashReturn(returnValue); return; } obj.focus(); obj.value = returnValue; } //3ÀÚ¸® , Ãß°¡ function cashReturn(numValue){ //numOnlyÇÔ¼ö¿¡ ¸¶Áö¸· ÆÄ¶ó¹ÌÅ͸¦ true·Î ÁÖ°í numOnly¸¦ ºÎ¸¥´Ù. var cashReturn = ""; for (var i = numValue.length-1; i >= 0; i--){ cashReturn = numValue.charAt(i) + cashReturn; if (i != 0 && i%3 == numValue.length%3) cashReturn = "," + cashReturn; } return cashReturn; } function removeComma(cash){ //ÄÞ¸¶¸¦ ¾ø¾ÖÁØ´Ù. //»ç¿ë¹ý : document.ÆûÀ̸§.ÇʵåÀ̸§.value = removeComma(document.ÆûÀ̸§.ÇʵåÀ̸§.value); var returnValue = ""; for (var i = 0; i < cash.length; i++){ if (cash.charAt(i) != ","){ returnValue += cash.charAt(i); } } return returnValue; } // ÇØ´ç±æÀ̰¡ µÇ¸é ´ÙÀ½À¸·Î Ä¿¼­ À̵¿ function moveChk(thisObj,nextObj,len) { if (thisObj.value.length == len) { nextObj.focus(); } } //·Î±×ÀÎ ÆË¾÷ function openLogin() { window.open(_URL["board"] +"/login/login.asp","Login","width=340,height=190,scrollbars=no"); } // °Ô½ÃÆÇ Top 5 function getBoard(obj, srcObj, table, linkUrl, listItem, strSubj, strConts, orderItem, orderBy, searchCase, searchStr){ //alert(obj); if (!table) { alert("°Ô½ÃÆÇÀ» ¸ÕÀú ÀÔ·ÂÇϽʽÿä!"); } else { if (!listItem) listItem = ""; if (!strConts) strConts = ""; if (!orderItem) orderItem = ""; if (!orderBy) orderBy = ""; if (!searchCase) searchCase = ""; if (!searchStr) searchStr = ""; var postUrl = _URL["brdexec"] +"/listAjax.asp"; var posrVal = "table="+ table +"&listItem="+ listItem +"&orderItem="+ orderItem +"&orderBy="+ orderBy +"&searchCase="+ searchCase +"&searchStr="+ searchStr +"&strSubj="+ strSubj +"&strConts="+ strConts; var boardReq = new cubeXMLHttpRequest(); baordInputReq = function () {baordInput(obj, srcObj, linkUrl)} boardReq.onreadystatechange = baordInputReq; boardReq.open("POST", postUrl, true); boardReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); boardReq.send(posrVal); } function baordInput(obj, srcObj, linkUrl) { if (boardReq.readyState == 4) { if (boardReq.status == 200) { var tmphtml = boardReq.responseText; var brdArray = tmphtml.split("¤"); var defStr = document.getElementById(obj).innerHTML; var Inhtml = ""; var defStrIn = ""; for (i=0;i< brdArray.length;i++) { var brdArray2 = brdArray[i].split("–"); var linkStr = ""+ brdArray2[1] +""; defStrIn = strReplace("subjStr", linkStr, defStr); defStrIn = strReplace("dateStr", brdArray2[5], defStrIn); Inhtml += defStrIn; } document.getElementById(srcObj).innerHTML = Inhtml; } else { document.getElementById(srcObj).innerHTML = '¼­¹ö ¿À·ù ÀÔ´Ï´Ù.'; } } } } /* ÄíŰ °ü·Ã */ function setCookie( name, value, expiredays ) { var todayDate = new Date(); 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 while(i <= document.cookie.length) { start = i end = start + name.length if(document.cookie.substring(start, end) == name) { Found = true break } i++ } if(Found == true) { start = end + 1 end = document.cookie.indexOf(";", start) if(end < start) end = document.cookie.length return document.cookie.substring(start, end) } return "" } function viewDetail() { var htmlStr = document.getElementById("sitemapDiv").innerHTML; //alert(htmlStr) //var inHtmlStr = strReplace("dataHere", htmlStr, ""); showMsgONPFade(htmlStr,'', "225", "55"); } function myfolder1(tbName, seq, idx, title){ var newwin; path ="/kmss/filediv/up1.jsp?tbName="+tbName+"&seq="+seq+"&idx="+idx+"&title="+title; newwin = window.open( "", "folderup","status=no,resizable=true,menubar=no,scrollbars=no,top=100,left=100,width=500,height=120"); newwin.location=path; newwin.focus(); } // °Ô½ÃÆÇ Top 5 function getBoard(obj, srcObj, table, linkUrl, listItem, strSubj, strConts, orderItem, orderBy, searchCase, searchStr){ //alert(obj); if (!table) { alert("°Ô½ÃÆÇÀ» ¸ÕÀú ÀÔ·ÂÇϽʽÿä!"); } else { if (!listItem) listItem = ""; if (!strConts) strConts = ""; if (!orderItem) orderItem = ""; if (!orderBy) orderBy = ""; if (!searchCase) searchCase = ""; if (!searchStr) searchStr = ""; var postUrl = _URL["board"] +"/listAjax.php"; var posrVal = "table="+ table +"&listItem="+ listItem +"&orderItem="+ orderItem +"&orderBy="+ orderBy +"&searchCase="+ searchCase +"&searchStr="+ searchStr +"&strSubj="+ strSubj +"&strConts="+ strConts; var boardReq = new cubeXMLHttpRequest(); baordInputReq = function () {baordInput(obj, srcObj, linkUrl)} boardReq.onreadystatechange = baordInputReq; boardReq.open("POST", postUrl, true); boardReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); boardReq.send(posrVal); } function baordInput(obj, srcObj, linkUrl) { if (boardReq.readyState == 4) { if (boardReq.status == 200) { var tmphtml = boardReq.responseText; var brdArray = tmphtml.split("¤"); var defStr = document.getElementById(obj).innerHTML; var Inhtml = ""; var defStrIn = ""; for (i=0;i< brdArray.length;i++) { var brdArray2 = brdArray[i].split("–"); if (brdArray2[0] == 0) { var linkStr = brdArray2[1]; defStrIn = strReplace("subjStr", linkStr, defStr); defStrIn = strReplace("dateStr", "", defStrIn); Inhtml += defStrIn; } else { var linkStr = ""+ brdArray2[1] +""; defStrIn = strReplace("subjStr", linkStr, defStr); defStrIn = strReplace("dateStr", brdArray2[5], defStrIn); Inhtml += defStrIn; } } document.getElementById(srcObj).innerHTML = Inhtml; } else { document.getElementById(srcObj).innerHTML = '¼­¹ö ¿À·ù ÀÔ´Ï´Ù.'; } } } } function moveTicker() { var itemW = 300; var itemH = 20; var itemsView = 1; var stopTime = 2000; var mvTime = 100; var mvPixel = 4; var newItem = itemsView; var tempmvPixel = mvPixel; var tickerObj = null; var itemS = new Array(); var objItem; var nowItemI = 0; var nowItemGap = 0; this.objSet = objSet; this.config = config; this.addItem = addItem; this.moveItem = moveItem; this.initMove = initMove; this.tickerStart = tickerStart; this.intervalF = intervalF; function objSet(ticker) { tickerObj = document.getElementById(ticker); } function config(iWidth, iHeight, sItems, sTime, mTime, mPixel) { itemW = iWidth; itemH = iHeight; itemsView = sItems; stopTime = sTime; mvTime = mTime; mvPixel = mPixel; newItem = sItems; tempmvPixel = mvPixel; } function addItem(itemStr) { itemS[itemS.length] = itemStr; } function moveItem(itemId, moveGap) { objItem = document.getElementById("slider"+ itemId); var topGap = parseInt(objItem.style.top.replace("px",""),10) - mvPixel; objItem.style.top = topGap +"px"; moveGap -= mvPixel; var _tempGap = parseInt(objItem.style.top.replace("px",""),10) - mvPixel; if (moveGap > 0) { nowItemI = itemId; nowItemGap = moveGap; //setTimeout(intervalF, mvTime); setTimeout("moveTicker.moveItem("+ itemId +","+ moveGap +")", mvTime); } else if (_tempGap < -mvPixel) { objItem.style.top = (itemsView * itemH) +"px"; newItem++; if (newItem == itemS.length) newItem = 0; objItem.innerHTML = itemS[newItem]; tickerStart(); } } function initMove() { tickerFchile = document.createElement("DIV"); tickerObj.appendChild(tickerFchile); tickerObj.style.width = itemW +"px"; tickerObj.style.height = (itemH * itemsView) +"px"; tickerObj.style.position = "relative"; tickerObj.style.overflow = "hidden"; tickerObj.style.display = "block"; for (ii=0; ii <= itemsView; ii++) { var itemObj = document.createElement("DIV"); tickerObj.appendChild(itemObj); itemObj.id = "slider"+ ii; itemObj.style.width = itemW +"px"; itemObj.style.height = itemH +"px"; itemObj.style.top = (ii * itemH) +"px"; itemObj.style.left = "0px"; itemObj.style.position = "absolute"; itemObj.style.overflow = "hidden"; itemObj.style.display = "block"; itemObj.innerHTML = itemS[ii]; itemObj.style.marginTop = "0px"; mouseOverF = function () {mvPixel=0;} mouseOutF = function () {mvPixel=tempmvPixel;} if (window.addEventListener) { itemObj.addEventListener("mouseover", mouseOverF, false); itemObj.addEventListener("mouseout", mouseOutF, false); } else { itemObj.setAttribute("onmouseover", mouseOverF); itemObj.setAttribute("onmouseout", mouseOutF); } } } function tickerStart() { nowItemI = 0; for (j=0; j<=itemsView; j++) { setTimeout("moveTicker.moveItem("+ j +","+ itemH +")", stopTime); } } function intervalF(tmpTime) { moveItem(tmpTime, nowItemGap); } } /* ·Î±×ÀΠüũ */ function checkLogin(tForm) { if (tForm.id.value == "") { alert("¾ÆÀ̵𸦠ÀÔ·ÂÇϽʽÿÀ."); tForm.id.focus(); return false; } if (tForm.passwd.value == "") { alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϽʽÿÀ."); tForm.passwd.focus(); return false; } if(tForm.sslChk.checked){ tForm.action = "https://te.ulsanedu.kr/_inc/logIn.jsp"; }else{ tForm.action = "/_inc/logIn.jsp"; } return true; } /* ·Î±×ÀΠüũ */ /* µå¸²À§¹ö ÀÚµ¿»ý¼ºµÈ ¸¶¿ì½º ¿À¹ö ½ºÅ©¸³Æ® */ function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&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