if(document.title != "") {top.document.title = document.title;} function WindowOpen(tURL, tName, tWidth, tHeight, tScrollBar, tToolBar) { open(tURL, tName, "width=" + tWidth + ",height=" + tHeight + ",scrollbars=" + tScrollBar + ",toolbar=" + tToolBar); } function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if(document.cookie.substring(i, j) == arg) return getCookieVal(j) i = document.cookie.indexOf(" ", i) + 1 if (i == 0) break } return null } function getCookieVal(offset) { var endstr = document.cookie.indexOf(";", offset) if (endstr == -1) endstr = document.cookie.length return unescape(document.cookie.substring(offset, endstr)) } function StrTrim(strText) { var txt = ""; var i_tmp; for(i_tmp=0;i_tmp <= strText.length - 1;i_tmp++) { if(strText.charAt(i_tmp) != " ") { txt = txt + strText.charAt(i_tmp); } } return txt; } function FormatComma(StrN) { var StrA = "" + ReplaceComma(StrN) + ""; var StrB = ""; var j = 0 for(k=StrA.length - 1;k >= 0;k--) { if(j == 3) { StrB = StrA.charAt(k) + "," + StrB; j = 0; } else { StrB = StrA.charAt(k) + "" + StrB; } j++; } return StrB; } function ReplaceComma(StrText) { var StrA = "" + StrText + ""; var StrB = ""; for(k = 0;k <= StrA.length - 1;k++) { if(StrA.charAt(k) != ",") { StrB = StrB + "" + StrA.charAt(k); } } return StrB; } function FormReset(form) { if(!confirm("\n¼±ÅÃÇϽоç½ÄÀÌ ÃʱâÈ­ µË´Ï´Ù !!!\n\n°è¼ÓÇϽðڽÀ´Ï±î ?")) {return;} form.reset(); } function FontStyleinit(MenuStr, ct) { if (Number(ct) <= 0) {return;} for(i=1;i <= ct;i++) { var MenuID = document.all[MenuStr + "" + i]; MenuID.style.cssText = document.all[MenuStr + "CSSOut" + i].innerHTML; } } function FontStyleOver(MenuStr, ct) { var MenuID = document.all[MenuStr + "" + ct]; MenuID.style.cssText = document.all[MenuStr + "CSSOver" + ct].innerHTML; } function FontStyleOut(MenuStr, ct) { var MenuID = document.all[MenuStr + "" + ct]; MenuID.style.cssText = document.all[MenuStr + "CSSOut" + ct].innerHTML; } function msgposit() { message.style.posLeft = event.x + 5 + document.body.scrollLeft; message.style.posTop = event.y + 22 + document.body.scrollTop; message.style.visibility = "visible"; } function msgset(str) { var text; text =''; text += '
' + str + '
';message.innerHTML=text; } function msghide() { message.innerHTML=''; message.style.posLeft = 0; message.style.posTop = 0; message.style.visibility = "hidden"; } function logout() { if(!confirm("\nÁ¤¸» ·Î±×¾Æ¿ô ÇϽðڽÀ´Ï±î ?")) {return;} top.location.href = "/SSO/Logout.php?"; } function OpenLogout() { //open("/SSO/Logout.Check.html", "LogoutCheck", "width=0,height=0,left=13000,top=13000,scrollbars=0,resizable=yes"); } function NumberCheck(NumStr) { if ( isNaN(Number(ReplaceComma(StrTrim(NumStr)))) ) { return false; } else { return true; } } var ieVer; if (navigator.userAgent.indexOf ("MSIE 4") != -1) { ieVer = 4; } else if (navigator.userAgent.indexOf ("MSIE 5") != -1) { ieVer = 5; } else if (navigator.userAgent.indexOf ("MSIE 5.5") != -1) { ieVer = 5.5; } else if (navigator.userAgent.indexOf ("MSIE 6") != -1) { ieVer = 6; } else if (navigator.userAgent.indexOf ("MSIE 7") != -1) { ieVer = 7; } function infoMenu(ID) { infomenulay.style.posLeft = event.x + 15 + document.body.scrollLeft; infomenulay.style.posTop = event.y - 28 + document.body.scrollTop; var str = "" str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += ""; str += "
"; str += " " + ID + ""; str += "
"; str += "   ÂÊÁöº¸³»±â"; str += "
"; str += "   Ä£±¸·Î µî·Ï"; str += "
"; str += "   ¼ö½Å°ÅºÎÀÚ µî·Ï"; str += "
"; str += "Close "; str += "
"; document.all.infomenulay.innerHTML = str; infomenulay.style.visibility = "visible"; } function infoMenu_Userinfo(ID) { open("/User/User.info.php?ID=" + ID, "Userinfo_window", "width=100,height=100,scrollbars=0"); infoMenu_close(); } function infoMenu_SendMessage(ID) { open("/Message/MSG.send.php?ID_RE=" + ID, "MSG_send_window", "width=100,height=100,scrollbars=0"); infoMenu_close(); } function infoMenu_add_fr(ID) { if(!confirm("\n¼±ÅÃÇϽоÆÀ̵𰡠챏·Î µî·ÏµË´Ï´Ù !!!")) { infoMenu_close(); return; } HiddeniFrame.location.href = "/Message/MSG.fr.add.php?ID_RE=" + ID; infoMenu_close(); } function infoMenu_add_de(ID) { if(!confirm("\n¼±ÅÃÇϽоÆÀ̵𰡠¼ö½Å°ÅºÎ ¸ñ·Ï¿¡ µî·ÏµË´Ï´Ù !!!")) { infoMenu_close(); return; } HiddeniFrame.location.href = "/Message/MSG.de.add.php?ID_RE=" + ID; infoMenu_close(); } function infoMenu_close() { infomenulay.style.visibility = "hidden"; infomenulay.style.posLeft = 0; infomenulay.style.posTop = 0; } function FindZipCode(FormName, id, HeadStr) { open("/FindZipCode.php?FormName=" + FormName + "&id=" + id + "&HeadStr=" + HeadStr + "&PageVersion=", "FindZipCode", "width=1,height=1,scrollbars=1"); } function POPUP_open(SERIALNO, POS_X, POS_Y,P_WIDTH,P_HEIGHT) { var pos_str = "width="+P_WIDTH+",height="+P_HEIGHT; if (StrTrim(POS_X) != "") { pos_str = pos_str + ",left=" + POS_X; } if (StrTrim(POS_Y) != "") { pos_str = pos_str + ",top=" + POS_Y } pos_str = pos_str + ",scrolling=no"; open("/PopupWindow/index.php?SERIALNO=" + SERIALNO + "&admin=1", "POPUP" + SERIALNO, pos_str); } function openWin(sURL, sWindowName, w, h, sScroll) { // È­¸é Áß¾ÓÀ¸·Î Popup ¶ç¿ì±â.. ½ºÅ©·Ñ¹Ù´Â ¿É¼Ç.. // ex) // openWin("test.asp", "winTest", 400, 300); ¢Ñ ½ºÅ©·Ñ¹Ù ¾øÀ½ // openWin("test.asp", "winTest", 400, 300, "yes"); ¢Ñ ½ºÅ©·Ñ¹Ù ÀÖÀ½ // openWin("test.asp", "winTest", 400, 300, "auto"); ¢Ñ ½ºÅ©·Ñ¹Ù ÀÚµ¿ var x = (screen.width - w) / 2; var y = (screen.height - h) / 2; if (sScroll==null) sScroll = "no"; var sOption = ""; sOption = sOption + "toolbar=no, channelmode=no, location=no, directories=no, resizable=no, menubar=no"; sOption = sOption + ", scrollbars=" + sScroll + ", left=" + x + ", top=" + y + ", width=" + w + ", height=" + h; var win = window.open(sURL, sWindowName, sOption); //return win; } function mail_send(host, to, id) { if (id) { openWin(host + '/mail/mail_send.htm?p_to=' + to + '&p_id=' + id.substr(1) + '&p_mode=' + id.substr(0, 1), 'mail', 650, 500, 'yes'); } else openWin(host + '/mail/mail_send.htm?p_to=' + to, 'mail', 650, 500, 'yes'); } 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