function fnJavaSearchCenter( inTxt ) { if( inTxt == null || inTxt == "" || inTxt == " " || inTxt == "null") { alert( "검색어를 입력하여 주십시오 " ); return; } else { location.href = "/company/cs?action=findResult&dong=" + inTxt; } } function fnJavaSearchEnglish( inTxt ) { location.href = "/global/common?action=dictionarySearch&word=" + inTxt; } //====================student parent, company main 관련=============================== function changeEventImg(no, mode) { eval("event" + no + ".src = '/images/student/main/main_event_" + no + "_" + mode + ".gif'"); if(mode == "on") { for(var i=1 ; i<=4 ; i++) { if(no == i) continue; eval("event" + i + ".src = '/images/student/main/main_event_" + i + "_off.gif'"); } } } function changeEventContent(no) { eval("eventContent.src = '/images/student/main/main_event_content" + no + ".gif'"); } var aroundNumber = 1; var maxAroundNumber = 5; function changeAround(mode) { if(mode == "prev") { aroundNumber--; } else { aroundNumber++; } if(aroundNumber == 0) aroundNumber = maxAroundNumber; if(aroundNumber == maxAroundNumber+1) aroundNumber = 1; for(var i=1 ; i<=maxAroundNumber ; i++) { if(i == aroundNumber) { //alert(i + "this"); eval("document.getElementById('aroundRoll" + i + "').style.display = ''"); } else { //alert(i + "that"); eval("document.getElementById('aroundRoll" + i + "').style.display = 'none'"); } } } //====================student parent, company main 관련=============================== function popEnglish() { window.open('/html/english/index.html', 'English', 'width=817, height=600, scrollbars=yes, status=yes, resizable=no'); } //주민번호 앞자리가 찼을때 다음으로 이동하는 스크립트 function RidShift( objThis, objNext ) { if( objThis.value.length > 5 ) { objNext.focus(); } } function calendarOpen() { Win_popLeft('/html/guide/calendar/01.html','GuideCalendar',10,10,750,620 ); } function logout(url) { url = url + "&seed="+ Math.random(); location.href = url; } function go_events19() //제3회 우리선생님 자랑하기 - 응모 페이지 { //window.open("http://event.yoons.com/boast4/Client/Page2.aspx", "popup02", "width=285,height=340,top=10,left=10,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no"); alert('접수기간이 종료 되었습니다.\n다음에 응모해 주세요.'); return; } function go_events20() //제3회 우리선생님 자랑하기 - 안내 페이지 { window.open("http://befly.yoons.com/PopUp/pop_071024.html", "popup", "width=290,height=340,top=10,left=310,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no"); } function go_events14() //4회 베플컨테스트 대회 소개. { //beflTest2_ScoreView_Main.aspx if(window.screen.width == "1024") { window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=1014,height=600,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "800"){ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "640"){ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes'); }else{ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=1050,height=680,top=0,left=0,scrollbars=yes,resizable=yes'); } // alert('응시는 8월 14일 오후 2시부터 가능 합니다.'); } function fnOpen_1() { if(window.screen.width == "1024") { window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=1014,height=600,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "800"){ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "640"){ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes'); }else{ window.open('http://www.iyoons.com/Events/yoons/beflTest3_ScoreView_Main.aspx','contest14','width=1050,height=680,top=0,left=0,scrollbars=yes,resizable=yes'); } return; } function fnOpen_2() { window.open ('/html/beflkids/beflkids.html', 'beflkids', 'left=0, top=0, menubar=no, toolbar=no, statusbar=no, width=996, height=708'); return; } function fnOpen_3() { //window.open('http://event.yoons.com/Boast4/Client/Page1.aspx', 'popup_20071015_1', 'left=0, top=0, menubar=no, toolbar=no, statusbar=no, width=289, height=340'); window.open("http://event.yoons.com/NYW2008/01.aspx","NYW2008","width=500,height=500,top=10,left=10,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no"); return; } function fnOpen_4() { //window.open('http://event.yoons.com/Boast4/Client/Page1.aspx', 'popup_20071015_1', 'left=0, top=0, menubar=no, toolbar=no, statusbar=no, width=289, height=340'); window.open ('http://www.coins.co.kr/Ev_BHC_yoon/main.html','Event25','width=600,height=680,top=10,left=10,scrollbars=no,resizable=no,toolbar=no'); return; } function go_events23() //5회 베플컨테스트 대회 소개. --> 11월 12일 오전 10시 { //beflTest3_ScoreView_Main.aspx if(window.screen.width == "1024") { window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest23','width=1014,height=600,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "800"){ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest23','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes'); }else if(window.screen.width == "640"){ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest23','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes'); }else{ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest23','width=1050,height=680,top=0,left=0,scrollbars=yes,resizable=yes'); } // alert('응시는 8월 14일 오후 2시부터 가능 합니다.'); } function go_events24() //2007-11 ETCamp { if(window.screen.width == "1024") { window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=800,height=600,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=yes'); }else if(window.screen.width == "800"){ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=yes'); }else if(window.screen.width == "640"){ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=yes'); }else{ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=900,height=680,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=yes'); } } function go_events25() //BHC Event { window.open('http://www.coins.co.kr/Ev_BHC_yoon/main.html','Event25','width=600,height=680,top=10,left=10,scrollbars=no,resizable=no,toolbar=no'); } function fnOpenBHC() { window.open('http://www.coins.co.kr/Ev_BHC_yoon/main.html','Event25','width=600,height=680,top=10,left=10,scrollbars=no,resizable=no,toolbar=no,menubar=no,status=no,location=no'); return; } function fnOpenETCAMP() { if(window.screen.width == "1024") { window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=800,height=600,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else if(window.screen.width == "800"){ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else if(window.screen.width == "640"){ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else{ window.open('http://event.yoons.com/ETCamp2008/information.aspx','contest24','width=900,height=680,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); } return; } function fnOpenBEFLCONTEST() { if(window.screen.width == "1024") { window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest14','width=1014,height=600,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else if(window.screen.width == "800"){ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest14','width=790,height=500,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else if(window.screen.width == "640"){ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest14','width=600,height=350,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); }else{ window.open('http://www.iyoons.com/events/yoons/beflTest5_notice_9a.html','contest14','width=1050,height=680,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no,location=no'); } return; } function fnOpenEXAMERICA() { window.open("http://event.yoons.com/NYW2008/01.aspx","NYW2008","width=500,height=500,top=10,left=10,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,resizable=no,toolbar=no,menubar=no,status=no,location=no"); return; } function fnOpenENFANT() { window.open("http://www.coins.co.kr/Ev_seoul_yoon/main.html","ANGPANG","width=590,height=680,top=50,left=50,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no,toolbar=no,menubar=no,status=no,location=no"); } function fnOpenBEFLKIDS() { window.open("http://event.cocas.co.kr/2008/BEFLKids/200804/main.html","BEFLKINDS","width=1024,height=768,top=50,left=50,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no,toolbar=no,menubar=no,status=no,location=no"); } function fnOpenIVY2008() { window.open("http://event.yoons.com/NYS2008/01.aspx","IVY2008","width=900,height=850,top=50,left=50,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,resizable=no,toolbar=no,menubar=no,status=no,location=no"); } function fnOpenETCAMP2008() { window.open("http://event.yoons.com/ETCampS2008/information.aspx","IVY2008","width=1024,height=768,top=50,left=50,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,resizable=no,toolbar=no,menubar=no,status=no,location=no"); } function onPop_best() { var width = 1045; var height = 814; var left_position = (screen.width-width)/2; // var url ="http://writing.yoons.com/intro_port.html"; var url ="http://211.214.219.34/Yoons_Event/writing/intro_port.html"; var strStyle = "menubar=yes, toolbar=no, location=yes, scrollbars=yes, status=no, resizable=yes, width="+width+", height="+height+",left="+left_position; window.open(url,"writingBestClass",strStyle); } function goMy(){ var sc = 0; if (screen.height <= 800){ sc = 1; } window.open("","my","top=0, left=0, width=840, height=730, toolbar=0, directories=0, status=0, menubar=0, scrollbars="+sc+", resizable=0") /**20110311수정**/ with(document.myForm){ action.value="myList"; target = "my"; submit(); target = "_self"; } } /** * 라디오 버튼 값 가져오기 * @param radioObj * @return */ function getRadioCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return radioObj.value; else return ""; for(var i = 0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; } /** * 라디오 버튼 값 설정 * @param radioObj * @param newValue * @return */ function setRadioCheckedValue(radioObj, newValue) { if(!radioObj) return; var radioLength = radioObj.length; if(radioLength == undefined) { radioObj.checked = (radioObj.value == newValue.toString()); return; } for(var i = 0; i < radioLength; i++) { radioObj[i].checked = false; if(radioObj[i].value == newValue.toString()) { radioObj[i].checked = true; } } } // create cookie function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } // create instant cookie function createInstantCookie(cookieName, cookieValue) { document.cookie = cookieName + "=" + escape(cookieValue) + "; path=/;"; } // read cookie function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } // erase cookie function eraseCookie(name) { createCookie(name,"",-1); } // Getting String Byte function byte(obj) { var str = obj; var l = 0; for (var i=0; i 128) ? 2 : 1; return l; } // Cutting String by Byte function cutByte(obj, len) { var str = obj, l = 0; for (var i=0; i 128) ? 2 : 1; if (l > len) return str.substring(0,i); } return str; }