/********************************************** 메뉴 **********************************************/ function Node(id, pid, Idx, Name, Img, Folder, Files, TitleYN, ExtraYN, PopCode){ this.id = id; this.pid = pid; this.Idx = Idx; this.Name = Name; this.Img = Img; this.Folder = Folder; this.Files = Files.split(","); this.TitleYN = TitleYN; // 상단 메인 타이틀 this.ExtraYN = ExtraYN; // 좌측 메뉴중 강의 상품 판매가 아닌 것 this.PopCode = PopCode this.ChildCnt = 0; this.Depth = 0; } function CMenu(oName, RootIdx){ this.Name = oName; this.aNodes = []; this.NowID = 4; this.ParentID = 0; this.RootIdx = RootIdx; this.ViewType = 2; this.Uri = "/GContents/CustomerCenter/Notice/Index.asp"; this.Folder = "/GContents/CustomerCenter/Notice/"; this.File = "Index.asp"; this.Super_Idx = "1"; this.Super_Name = "고객센터"; this.Super_Path = "/GContents/CustomerCenter/"; this.Super_File = "Index.asp"; this.Super_Sort = ""; this.Add = function(id, pid, Idx, Name, Img, Folder, Files, TitleYN, ExtraYN, PopCode){ this.aNodes[this.aNodes.length] = new Node(id, pid, Idx, Name, Img, Folder, Files, TitleYN, ExtraYN, PopCode); for(var i=0; i 1){ for(var i=0; i"; s += "" + item.Img + ""; s += "
" + item.Img + "
"; }else{ s += "
" + item.Name + "
"; s += "
" + item.Name + "
"; } s += "
"; s += ""; break; } } break; case "1": for(var i=0,item; item=this.aNodes[i]; i++) if("1" == item.TitleYN.toString() && "0" == item.ExtraYN.toString()) TitleCnt++; WidthCnt = (TitleCnt > 5) ? TitleCnt : 5; sWidth = parseInt(960/WidthCnt, 10); sWidth2 = 1200 - (sWidth * WidthCnt); WidthStyle = sWidth - 1; for(var i=0,item; item=this.aNodes[i]; i++){ UIFlag = item.TitleYN.toString() + item.ExtraYN.toString(); switch(UIFlag){ case "10": $(".WHeader-Header4").css("background", arrSubStyle[this.Super_Sort]); JustStyle = "height:35px;color:#FFFFFF;font-weight:bold;text-align:center;padding:7px 0px 0px 0px;font-size:15px;letter-spacing:-1px;"; OverStyle = "height:35px;background:" + arrSubOn[this.Super_Sort] + ";color:#333949;font-weight:bold;text-align:center;padding:7px 0px 0px 0px;font-size:15px;letter-spacing:-1px;"; if(this.NowID.toString() == item.id.toString()) JustStyle = OverStyle; s += "
"; if(item.id.toString() == "28"){ s += ""; }else{ s += "" + item.Name + "
"; s += "
" + item.Name + "
"; s += "
"; s += ""; break; } } for(var i=0; i<(WidthCnt-TitleCnt); i++){ s += "
 
"; } s += "
"; for(var i=0,item; item=this.aNodes[i]; i++){ UIFlag = item.TitleYN.toString() + item.ExtraYN.toString(); switch(UIFlag){ case "11": s += ""; break; } } s += "
"; break; case "3": s += ""; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += "
"; s += " 통합검색"; s += " "; s += "
"; s += " "; s += "
"; s += "
"; s += " "; s += "
" s += "
"; s += " "; s += " 주문배송   |   "; s += " 장바구니   |   "; s += " 내 강의교재"; s += " "; s += "
"; s += ""; break; default: } return s; } this.LeftMenu = function(){ var s = ""; var JustStyle = ""; var OverStyle = ""; var UIFlag = ""; var arrSubStyle = "#0f496e,#554977,#52760a,#073944,#0a7568,#0a768b,#a73630,#333949,#333949,#333949,#333949,#333949,#333949,#333949,#333949,#333949".split(","); switch(this.ViewType){ case 1: s = "
"; for(var i=1,item; item=this.aNodes[i]; i++){ UIFlag = item.TitleYN.toString() + item.ExtraYN.toString(); switch(UIFlag.toString()){ case "10": JustStyle = "font-weight:bold;"; OverStyle = "font-weight:bold;color:#00ADEF;"; if(this.NowID.toString() == item.id.toString()) JustStyle = OverStyle; s += "
"; if(item.id.toString() == "28"){ s += ""; }else{ s += ""; s += item.Name + "
"; s += "
" + item.Name + "
"; s += "
"; s += ""; break; default: if("1" == item.Depth.toString()){ JustStyle = "font-weight:bold;"; OverStyle = "font-weight:bold;color:#00ADEF;"; if(this.Folder == item.Folder) JustStyle = OverStyle; s += ""; s += "
" + item.Name + "
"; s += "
"; s += ""; if(item.ChildCnt > 0){ s += "
"; for(var j=1,item2; item2=this.aNodes[j]; j++){ JustStyle = "margin:10px 0px 10px 0px;"; OverStyle = "margin:10px 0px 10px 0px;color:#00ADEF;"; if(this.Folder == item2.Folder) JustStyle = OverStyle; if(item.id.toString() == item2.pid.toString()){ s += "· " + item2.Name + "
"; s += "
· " + item2.Name + "
"; s += "
"; } } s += ""; } } break; } } break; case 2: s = ""; for(var i=1,item; item=this.aNodes[i]; i++){ UIFlag = item.TitleYN.toString() + item.ExtraYN.toString(); switch(UIFlag.toString()){ case "10": break; default: if("1" == item.Depth.toString()){ JustStyle = "font-weight:bold;"; OverStyle = "font-weight:bold;color:#00ADEF;"; if(this.Folder == item.Folder) JustStyle = OverStyle; s += ""; s += "
" + item.Name + "
"; s += "
"; s += ""; if(item.ChildCnt > 0){ s += "
"; for(var j=1,item2; item2=this.aNodes[j]; j++){ JustStyle = "margin:10px 0px 10px 0px;"; OverStyle = "margin:10px 0px 10px 0px;color:#00ADEF;"; if(this.Folder == item2.Folder) JustStyle = OverStyle; if(item.id.toString() == item2.pid.toString()){ s += "· " + item2.Name + "
"; s += "
· " + item2.Name + "
"; s += "
"; } } s += ""; } } break; } } break; case 3: var MenuID = this.NowID;; if(this.ParentID != 0) MenuID = this.ParentID; s = ""; for(var i=1,item; item=this.aNodes[i]; i++){ UIFlag = item.TitleYN.toString() + item.ExtraYN.toString(); switch(UIFlag){ case "10": if("1" == item.pid.toString()){ JustStyle = "font-weight:bold;"; OverStyle = "font-weight:bold;color:#00ADEF;"; if(this.NowID.toString() == item.id.toString()) JustStyle = OverStyle; s += ""; s += "
" + item.Name + "
"; s += "
"; s += ""; if(item.ChildCnt > 0 && item.id.toString() == MenuID.toString()){ s += "
"; for(var j=1,itemsub; itemsub=this.aNodes[j]; j++){ JustStyle = "margin:10px 0px 10px 0px;"; OverStyle = "margin:10px 0px 10px 0px;color:#00ADEF;"; if(this.NowID.toString() == itemsub.id.toString()) JustStyle = OverStyle; if(item.id.toString() == itemsub.pid.toString()){ s += ""; s += "
· " + itemsub.Name + "
"; s += "
· " + itemsub.Name + "
"; s += "
"; } } s += "
"; } } break; default: JustStyle = "font-weight:bold;"; OverStyle = "font-weight:bold;color:#00ADEF;"; if(this.Folder == item.Folder) JustStyle = OverStyle; s += ""; s += "
" + item.Name + "
"; s += "
"; s += ""; break; } } break; default: } return s; } this.Nav = function(pid){ var s = ""; var flag = true; var UIFlag = ""; switch(pid){ case -1: for(var i=1,item; item=this.aNodes[i]; i++){ if(item.Folder.toUpperCase() == this.Folder.toUpperCase()){ s += this.Nav(item.pid); s += item.Name; s = s.split(","); s[s.length-1] = "" + s[s.length-1] + ""; s = s.join(" > "); } } s = "\"Home\" > " + s; break; case 0: for(var i=1,item; item=this.aNodes[i]; i++){ if(item.Folder.toUpperCase() == this.Folder.toUpperCase()){ if(this.NowID.toString()==item.id.toString()){ s += this.Nav(item.pid); s += item.Name; s = s.split(","); s[s.length-1] = "" + s[s.length-1] + ""; s = s.join(" > "); } if(this.NowID.toString()=="0"){ s += this.Nav(item.pid); s += item.Name; s = s.split(","); s[s.length-1] = "" + s[s.length-1] + ""; s = s.join(" > "); } } } s = "\"Home\" > " + s; break; default: for(var i=0,item; item=this.aNodes[i]; i++){ if(item.id == pid){ s += this.Nav(item.pid); s += item.Name + ","; break; } } break; } return s; } } var oMenu = null; oMenu = new CMenu("oMenu", 1); oMenu.Add(1, null, 1, "고객센터", "", "/GContents/CustomerCenter/", "Index.asp", 0, 0); oMenu.Add(4, 1, 5, "세무사", "", "/GContents/Course1/", "Index.asp?Category_Idx=4", 1, 0, 0); oMenu.Add(92, 1, 6, "회계/세무 강좌", "", "/GContents/Course4/", "Index.asp?Category_Idx=92", 1, 0, 0); oMenu.Add(10, 1, 8, "재경자격증", "", "/GContents/Course1/", "Index.asp?Category_Idx=10", 1, 0, 0); oMenu.Add(15, 1, 9, "전산세무회계", "", "/GContents/Course1/", "Index.asp?Category_Idx=15", 1, 0, 0); oMenu.Add(25, 1, 11, "경영자격증", "", "/GContents/Course3/", "Index.asp?Category_Idx=25", 1, 0, 0); oMenu.Add(33, 1, 14, "토익", "", "/GContents/Course5/", "Index.asp?Category_Idx=33", 1, 0, 0); oMenu.Add(223, 1, 1, "공지사항", "", "/GContents/CustomerCenter/Notice/", "Index.asp", 0, 1, 0); oMenu.Add(227, 1, 2, "모바일 이용안내", "", "/GContents/CustomerCenter/UseMobile/", "Index.asp", 0, 1, 0); oMenu.Add(229, 1, 3, "자주묻는 질문", "", "/GContents/CustomerCenter/FAQ/", "Index.asp", 0, 1, 0); oMenu.Add(231, 1, 4, "1:1 상담실", "", "/GContents/CustomerCenter/ManToMan/", "Index.asp", 0, 1, 0); oMenu.Add(247, 1, 5, "수강후기", "", "/GContents/CustomerCenter/StudyMemory/", "Index.asp", 0, 1, 0); oMenu.Add(407, 1, 6, "전체 시간표", "", "/GContents/CustomerCenter/TimeTableALL/", "Index.asp", 0, 1, 0); oMenu.Add(406, 1, 7, "시간표", "", "/GContents/CustomerCenter/TimeTable/", "Index.asp", 0, 1, 0); function SearchIDOK(){ var Params = ""; if(!$("#fSearch1 input[name=pMember_Name]").val()){ alert("이름을 입력해주세요."); $("#fSearch1 input[name=pMember_Name]").focus(); return; } switch(parseInt($("input[name=SearchMethod]").val(), 10)){ case 1: if(!HPPattern.test($("#fSearch1 select[name=pMember_HP1]").val() + "-" + $("#fSearch1 input[name=pMember_HP2]").val() + "-" + $("#fSearch1 input[name=pMember_HP3]").val())){ alert("휴대폰 번호가 올바르지 않습니다.\n\n다시 입력해 주세요"); return; } break; case 2: if(!EmailPattern.test($("#fSearch1 input[name=pMember_Email1]").val() + "@" + $("#fSearch1 input[name=pMember_Email2]").val())){ alert("이메일 주소가 올바르지 않습니다.\n\n다시 입력해 주세요"); return; } break; } Params += "SearchMethod=" + $("input[name=SearchMethod]").val(); Params += "&SearchKind=0"; Params += "&sMember_Name=" + $("#fSearch1 input[name=pMember_Name]").val(); Params += "&sMember_ID=MemberID"; Params += "&sMember_HP1=" + $("#fSearch1 select[name=pMember_HP1]").val(); Params += "&sMember_HP2=" + $("#fSearch1 input[name=pMember_HP2]").val(); Params += "&sMember_HP3=" + $("#fSearch1 input[name=pMember_HP3]").val(); Params += "&sMember_Email1=" + $("#fSearch1 input[name=pMember_Email1]").val(); Params += "&sMember_Email2=" + $("#fSearch1 input[name=pMember_Email2]").val(); $("#IDSearchResult").html("등록된 아이디를 검색중입니다."); $.ajax({ type: "POST", async : true, url: "/GContents/Include/Member/SearchID_Proc.asp", dataType: "json", data: Params, success: function(Data, Status, xhr){ var s = ""; if("OK" == Data.Result){ if(0 == parseInt(Data.rCnt, 10)){ s += "입력하신 정보로 등록된 아이디가 없습니다."; }else{ s += "회원님이 요청하신 아이디는 " + Data.Data[0].Member_ID + " 입니다."; } $("#IDSearchResult").html(s); }else{ alert(Data.Data); } }, error: function(xhr, Status, error){ //$("textarea[name=fe]").val(xhr.responseText); }, complete: function(xhr, Status){ //alert(xhr.responseText); } }); } function SearchPWDOK(){ var Params = ""; if(!$("#fSearch2 input[name=pMember_Name]").val()){ alert("이름을 입력해주세요."); $("#fSearch2 input[name=pMember_Name]").focus(); return; } if(!$("#fSearch2 input[name=pMember_ID]").val()){ alert("아이디를 입력해주세요."); $("#fSearch2 input[name=pMember_ID]").focus(); return; } switch(parseInt($("input[name=SearchMethod]").val(), 10)){ case 1: if(!HPPattern.test($("#fSearch2 select[name=pMember_HP1]").val() + "-" + $("#fSearch2 input[name=pMember_HP2]").val() + "-" + $("#fSearch2 input[name=pMember_HP3]").val())){ alert("휴대폰 번호가 올바르지 않습니다.\n\n다시 입력해 주세요"); return; } break; case 2: if(!EmailPattern.test($("#fSearch2 input[name=pMember_Email1]").val() + "@" + $("#fSearch2 input[name=pMember_Email2]").val())){ alert("이메일 주소가 올바르지 않습니다.\n\n다시 입력해 주세요"); return; } break; } Params += "SearchMethod=" + $("input[name=SearchMethod]").val(); Params += "&SearchKind=1"; Params += "&sMember_Name=" + $("#fSearch2 input[name=pMember_Name]").val(); Params += "&sMember_ID=" + $("#fSearch2 input[name=pMember_ID]").val(); Params += "&sMember_HP1=" + $("#fSearch2 select[name=pMember_HP1]").val(); Params += "&sMember_HP2=" + $("#fSearch2 input[name=pMember_HP2]").val(); Params += "&sMember_HP3=" + $("#fSearch2 input[name=pMember_HP3]").val(); Params += "&sMember_Email1=" + $("#fSearch2 input[name=pMember_Email1]").val(); Params += "&sMember_Email2=" + $("#fSearch2 input[name=pMember_Email2]").val(); $("#PWDSearchResult").html("등록된 아이디를 검색중입니다."); $.ajax({ type: "POST", async : true, url: "/GContents/Include/Member/SearchID_Proc.asp", dataType: "json", data: Params, success: function(Data, Status, xhr){ var s = ""; if("OK" == Data.Result){ if(0 == parseInt(Data.rCnt, 10)){ s += "입력하신 정보로 등록된 아이디의 비밀번호를 찾을 수 없습니다."; }else{ switch(parseInt($("input[name=SearchMethod]").val(), 10)){ case 1: if("Y" == Data.Data[0].SendResult){ s += "회원님이 요청하신 비밀번호는 휴대폰으로 전송되었습니다.
(통신사 사정에 따라 30초 ~ 1분 정도의 시간이 소요될 수 있습니다.)"; }else{ s += "휴대폰 전송에 오류가 생겼습니다. 잠시 후 다시 시도해 주세요."; } break; case 2: if("Y" == Data.Data[0].SendResult){ s += "회원님이 요청하신 비밀번호는 이메일로 전송되었습니다."; }else{ s += "이메일 전송에 오류가 생겼습니다. 잠시 후 다시 시도해 주세요."; } break; } } $("#PWDSearchResult").html(s); }else{ alert(Data.Data); } }, error: function(xhr, Status, error){ //$("textarea[name=fe]").val(xhr.responseText); }, complete: function(xhr, Status){ //alert(xhr.responseText); } }); } function ViewSample(){ var idx = arguments[0]; var vKind = arguments[1]; switch(vKind){ case "Goods": alert("널 슬프게 했던 다른 사람들과 나는 다를거야."); break; case "Lectures": alert("날 만나기위한 행운이었다고... 꼭 웃게할거야."); break; case "Teachers": alert("한 여름밤의 꿀... so sweet..."); break; } } /********************************************** 장바구니 **********************************************/ function GoodsBasket(Checked, Basket_Idx, Goods_Idx, Goods_Kind_Code, Extend_Idx){ this.Checked = Checked; this.Basket_Idx = Basket_Idx; this.Goods_Idx = Goods_Idx; this.Goods_Kind_Code = Goods_Kind_Code; this.Extend_Idx = Extend_Idx; } function BookBasket(Checked, Basket_Idx, Book_Idx, Place_Code, BookCount, Goods_Idx){ this.Checked = Checked; this.Basket_Idx = Basket_Idx; this.Book_Idx = Book_Idx; this.Place_Code = Place_Code; this.BookCount = BookCount; this.Goods_Idx = Goods_Idx; } function CBasket(oName){ this.Name = oName; this.ColumnBookBasket = ["Checked", "Basket_Idx", "Book_Idx", "Place_Code", "BookCount", "Goods_Idx"]; this.arrBookBasket = []; this.AddBookBasket = function(Checked, Basket_Idx, Book_Idx, Place_Code, BookCount, Goods_Idx){ this.arrBookBasket[this.arrBookBasket.length] = new BookBasket(Checked, Basket_Idx, Book_Idx, Place_Code, BookCount, Goods_Idx); } this.EditBookBasket = function(Checked, Basket_Idx, Book_Idx, Place_Code, BookCount, Goods_Idx){ for(var i=0,item; item=this.arrBookBasket[i]; i++){ if(Basket_Idx.toString() == item.Basket_Idx.toString() && Book_Idx.toString() == item.Book_Idx.toString()){ item.Checked = Checked; item.BookCount = BookCount; } } } } /********************************************** 아이파북스 검색 **********************************************/ function SearchKeyword(){ var Keyword = $("input[name=BooksKeyword]").val(); var pKeyword = ""; var s = ""; for(var i=0; i 12592 && Keyword.substr(i,1).charCodeAt(0) < 44032) ? "" : Keyword.substr(i,1); if(pKeyword.length < 2){ alert("2글자 이상으로 검색해주세요."); return; } $.ajax({ type: "POST", async : false, url: "/GContents/Include/Books/BookKeywordListAjax.asp", dataType: "json", data: "BooksKeyword=" + encodeURIComponent(pKeyword) + "&Use_Area_Code=2", success: function(Data, Status, xhr){ if("OK" == Data.Result){ var s = ""; var PageSize = 2; var BlockCount = 1; var item = null; s += "
"; s += " \"X\""; s += "
"; if(0 == parseInt(Data.rCnt, 10)){ s += "
등록된 서적이 없습니다.
" }else{ BlockCount = Math.floor((Data.rCnt-1)/PageSize)+1; s += ""; s += " "; s += " "; s += " "; s += " "; for(var i=0; i"; } else { s += ""; }else{ if(i==0) { s += "" } else { s += "" } } } s += ""; } s += "
"; } s += "
\""
"; s += " "; s += "
  
"; } $("#DivBooksKeywordList").html(s); $("#DivBooksKeywordList").slideDown(400); }else{ alert(Data.Data); } }, error: function(xhr, Status, error){}, complete: function(xhr, Status){} }); } function HideElement(){ $(arguments[0]).hide(); } // ***************************************************** 로그분석 /* var s = "http://search.naver.com/search.naver?where=nexearch&query=%EC%84%B8%EB%AC%B4%EC%82%AC&sm=top_hty&fbm=1&ie=utf8&url=http%3A%2F%2Fadcr.naver.com%2Fadcr%3Fx%3DoBS50LgkiplTcjcxnlZ3Xv%2F%2F%2Fw%3D%3DnaDOq6IkM3lABzmfl7uykPfPrOorrFNjpPQ7yYNUtVClu4k7lmTZ8YCZ2MHT9qt23PCfjbRo8l14qYqk88N3mWOAh7NKrD0Ac%2Bf6ebmRJWIA4%2BquiaFhuGKlS2WVLT2klxmzVLIt6CbXdNo2dNd3kCo7LysD%2F67O3bbG9wANMQ8JE%2B9nTGFPnqaPVaU23NadQCFbNiMpmkvzQowZvhSriYiJXezLPEaYkh4OpOCKkIh%2FFA5Z%2BVfpD7jNrJSHWMD%2F35B05vxsxwQl%2FHOZX%2BvzEaOPE8iUJ0MqN0tLiRK14r2IHQGQjFKlfz%2BU68DdSkdjrlT%2F1UaMeB0PVGGwdl6XsSGsHk%2B3IsS6kUj%2FpObko4Tqc5gsB0I9Y7U7Qdi%2BpymZMxoCwGqb16fLF%2BpFoMMKi4jitn9lmETYl2e9Rka56c88%3D%26p%3D1&ucs=PBOZVyvHx6p%2F"; var s2 = "http://search.naver.com/search.naver?sm=tab_hty.top&where=nexearch&ie=utf8&query=%ED%9A%8C%EA%B3%84%EC%82%AC&url=http%3A%2F%2Fadcr.naver.com%2Fadcr%3Fx%3Dam0VIFHtYnIEvPKdTlVn9P%2F%2F%2Fw%3D%3DnN50g2of0jWv5Jqsaw3sRafPrOorrFNjpPQ7yYNUtVCmQyZnRNqPmzkL%2BN16fkxrjeDgzw53FAYrkrBFM6mQkW6Xh9ZatK8nVla8laD3m5cEUsp%2B0GpIvblvPscraQlbOk8MYp8YxjJro6t%2FAQrap%2B1oFnDrFZtf%2F6WLHkv2BcxImvPmX0grp2eGT9jTgdABHmdVvr5zfxe623gry1sbk0gFekJ5eyHRX1nr%2BEFMOTkSp2emdvIofs%2FQY2jo9AcFxos%2B7PALEe9QABZcbNRugJXdSfICIkeUYcCw9EsHP7qj9qC1AIjSss6GZwrkhyp0e6gU%2FJ6xzXL4k0ylYVtTXqW9tw6dhPnD2gTlFxu8iKcn48vXu9IouWIERBb3JrEImfoHZ9WKf6jGAy0D%2FXK5hCgGYGzoyLojO%2F%2BaZI0MQzTZ%2BwIsOYH082p%2BaagzqnBVGYZ7ROAPGA4OLRWx8W1oJVY9KYCq5pzl7RaZKgUlmMAy242OuXOqUO2Z14Rd3OXF7PtiF3Zp3Rg7SZSPBm58SP1YpcS6r%2FODgv7SXxbs1X80%3D%26p%3D1&ucs=FqVMZdQQI%2BxI"; var s3 = "http://search.daum.net/search?w=tot&DA=YZR&t__nil_searchbox=btn&sug=&sugo=&sq=&o=&q=%EC%84%B8%EB%AC%B4%EC%82%AC&tltm=1"; var s4 = "http://search.daum.net/search?nil_suggest=btn&w=tot&DA=SBC&q=%EC%84%B8%EB%AC%B4%EC%82%AC&tltm=1"; */ function LogAnalysis(){ var flag = false; var Params = ""; var Visit_Idx = "-1"; var Visit_ID = "471938629"; var Visit_Page = location.href.split("?")[0]; var PageParams = (1 == location.href.split("?").length) ? "" : location.href.split("?")[1]; var Visit_Referer = document.referrer.split("?")[0]; var RefererParams = (1 == document.referrer.split("?").length) ? "" : document.referrer.split("?")[1]; var MainPage_Code = 2; var Visit_Page_Category = GetParamValue(PageParams, "Category_Idx"); var Visit_Referer_Category = GetParamValue(RefererParams, "Category_Idx"); var Visit_InputSite_Code = 3; // 처음열기 var Visit_SearchValue = ""; var Visit_Page_CategoryName = ""; var Visit_Referer_CategoryName = ""; switch(Visit_Page.split("/").length){ case 4 : MainPage_Code = 1; flag = true; break; case 6 : if("course" == Visit_Page.split("/")[4].substr(0,6).toLowerCase()){ MainPage_Code = 1; flag = true; } break; case 7 : case 8 : case 9 : case 10 : if("course" == Visit_Page.split("/")[4].substr(0,6).toLowerCase()){ flag = true; } break; } if("" != Visit_Referer){ Visit_InputSite_Code = 4; // 기타 if(Visit_Referer.toLowerCase().indexOf("e-aifa.co.kr") > -1){ Visit_InputSite_Code = 5; // 사이트내 이동 }else{ if(Visit_Referer.toLowerCase().indexOf("naver.com") > -1){ Visit_InputSite_Code = 1; // 네이버 Visit_SearchValue = GetParamSearchValue(RefererParams, "query"); } if(Visit_Referer.toLowerCase().indexOf("daum.net") > -1){ Visit_InputSite_Code = 2; // 다음 Visit_SearchValue = GetParamSearchValue(RefererParams, "q"); } } } if(flag){ Params += "Visit_Idx=" + encodeURIComponent(Visit_Idx); Params += "&Visit_ID=" + encodeURIComponent(Visit_ID); Params += "&Visit_Page=" + encodeURIComponent(Visit_Page); Params += "&Visit_Page_Params=" + encodeURIComponent(PageParams); Params += "&Visit_Page_Category=" + encodeURIComponent(Visit_Page_Category); Params += "&Visit_Referer=" + encodeURIComponent(Visit_Referer); Params += "&Visit_Referer_Params=" + encodeURIComponent(RefererParams); Params += "&Visit_Referer_Category=" + encodeURIComponent(Visit_Referer_Category); Params += "&Visit_SearchValue=" + encodeURIComponent(Visit_SearchValue); Params += "&Visit_InputSite_Code=" + encodeURIComponent(Visit_InputSite_Code); Params += "&MainPage_Code=" + encodeURIComponent(MainPage_Code); Params += "&Visit_Page_CategoryName=" + encodeURIComponent(Visit_Page_CategoryName); Params += "&Visit_Referer_CategoryName=" + encodeURIComponent(Visit_Referer_CategoryName); Params += "&Site_Code=1" $.ajax({ type: "POST", async : false, url: "/GContents/Include/Member/LogAnalysisAjax.asp", dataType: "json", data: Params, success: function(Data, Status, xhr){}, error: function(xhr, Status, error){}, complete: function(xhr, Status){} }); } } document.title = "온라인 교육포탈 E-아이파";