function check_link(url) { parent.location.href=url; } function PopUpNameMenu() { var i,p,v,obj,args=PopUpNameMenu.arguments; Pmenu.style.pixelLeft=event.x; Pmenu.style.pixelTop=event.y+document.body.scrollTop; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } function PopUpNameMenu_on(n) { PopUpNameMenu('Pmenu','','show'); } function PopUpNameMenu_off() { PopUpNameMenu('Pmenu','','hide'); } function PopUpName(n){ MM_openBrWindow('/home/mini_home.html?sid='+n,'','width=950,height=630'); } // ¼³¸í ·¹ÀÌ¾î ±â´É ½ÃÀÛ function preview_instinct(content) { var obj = document.all["id_preview2"]; // check content if(content == "") { obj.innerHTML = ""; return; } var text = ""; text = "" text += " "; text += " "; text += " "; text += "
" + content + "
"; obj.innerHTML = text; move_preview_instinct(5,5); obj.style.visibility = "visible"; } function move_preview_instinct(width,height) { var obj = document.all["id_preview2"]; if(obj.innerHTML != "") { obj.style.posLeft = event.x - width + document.body.scrollLeft; obj.style.posTop = event.y + height + document.body.scrollTop; } } function hide_preview_instinct() { document.all["id_preview2"].style.visibility = "hidden"; } function preview(content,bgcol,fontcol) { var obj = document.all["id_preview"]; // check content if(content == "") { obj.innerHTML = ""; return; } if(!fontcol) fontcol = '#3333CC'; var text = ""; text = "" text += " "; text += " "; text += " "; text += "
" + content + "
"; obj.innerHTML = text; move_preview(5,5); obj.style.visibility = "visible"; } function move_preview(width,height) { var obj = document.all["id_preview"]; if(obj.innerHTML != "") { obj.style.posLeft = event.x - width + document.body.scrollLeft; obj.style.posTop = event.y + height + document.body.scrollTop; } } function hide_preview() { document.all["id_preview"].style.visibility = "hidden"; } // ¼³¸í ·¹ÀÌ¾î ±â´É Á¾·á // À̹ÌÁö ¸®»çÀÌÁî ½ÃÀÛ function resize(img,widths) { if(img.width > widths) img.width = widths; } // À̹ÌÁö ¸®»çÀÌÁî Á¾·á //ÇѱÛ/¿µ¹®/¼ýÀÚ Ã¼Å©Çϱâ function Hangle_English(input) { var char_ASCII = input.charCodeAt(input.length-1); tmp_tuk = new Array(); tmp_tuk[0]= 65283 ; tmp_tuk[1]= 65286 ; tmp_tuk[2]= 65290 ; tmp_tuk[3]= 65312 ; tmp_tuk[4]= 167 ; tmp_tuk[5]= 8251 ; tmp_tuk[6]= 9734 ; tmp_tuk[7]= 9733 ; tmp_tuk[8]= 9675 ; tmp_tuk[9]= 9679 ; tmp_tuk[10]= 9678 ; tmp_tuk[11]= 9671 ; tmp_tuk[12]= 9670 ; tmp_tuk[13]= 9633 ; tmp_tuk[14]= 9632 ; tmp_tuk[15]= 9651 ; tmp_tuk[16]= 9650 ; tmp_tuk[17]= 9661 ; tmp_tuk[18]= 9660 ; tmp_tuk[19]= 8594 ; tmp_tuk[20]= 8592 ; tmp_tuk[21]= 8593 ; tmp_tuk[22]= 8595 ; tmp_tuk[23]= 8596 ; tmp_tuk[24]= 12307 ; tmp_tuk[25]= 9665 ; tmp_tuk[26]= 9664 ; tmp_tuk[27]= 9655 ; tmp_tuk[28]= 9654 ; tmp_tuk[29]= 9828 ; tmp_tuk[30]= 9824 ; tmp_tuk[31]= 9825 ; tmp_tuk[32]= 9829 ; tmp_tuk[33]= 9831 ; tmp_tuk[34]= 9827 ; tmp_tuk[35]= 8857 ; tmp_tuk[36]= 9672 ; tmp_tuk[37]= 9635 ; tmp_tuk[38]= 9680 ; tmp_tuk[39]= 9681 ; tmp_tuk[40]= 9618 ; tmp_tuk[41]= 9636 ; tmp_tuk[42]= 9637 ; tmp_tuk[43]= 9640 ; tmp_tuk[44]= 9639 ; tmp_tuk[45]= 9638 ; tmp_tuk[46]= 9641 ; tmp_tuk[47]= 9832 ; tmp_tuk[48]= 9743 ; tmp_tuk[49]= 9742 ; tmp_tuk[50]= 9756 ; tmp_tuk[51]= 9758 ; tmp_tuk[52]= 8224 ; tmp_tuk[53]= 182 ; for(a=0;a= 48 && char_ASCII <= 57) return 1; //¼ýÀÚ else if((char_ASCII>=65 && char_ASCII<=90) || (char_ASCII>=97 && char_ASCII<=122)) return 2; //¿µ¾î else if ((char_ASCII>=33 && char_ASCII<=47) || (char_ASCII>=58 && char_ASCII<=64) || (char_ASCII>=91 && char_ASCII<=96) || (char_ASCII>=123 && char_ASCII<=126)) return 4; //Ư¼ö±âÈ£ else if ((char_ASCII >= 12592) && (char_ASCII <= 12687)) return 3; //ÇÑ±Û else return 0; } //ÇѱÛ/¿µ¹®/¼ýÀÚ Ã¼Å©Çϱâ function IsEmailChk() { if(CheckBlank(unifrm.email.value) == false) { alert('E-MailÀ» ÀÔ·ÂÇϼ¼¿ä'); document.unifrm.email.focus(); return; } window.open('./process/email_chk.php?m_mail='+unifrm.email.value,'','width=280,height=155,scrollbars=no,top=0,left=0'); } function question(no,message,url) { ans = confirm(message); if(ans == true) { if(url != 'submit') { document.location.href=url; return true; } else { return true; } } } function winkquestion(message,url) { ans = confirm(message); if(ans == true) { if(url != 'submit') { window.open(url); return true; } else { return true; } } } function question_pop(widths,message,url) { ans = confirm(message); if(ans == true) { if(url != 'submit') { window.open(url,'','width='+widths+',scrollbars=yes'); return true; } else { return true; } } } //°ø¹éó¸® function CheckBlank2(value) { value = value.replace(/\s+/g,''); if (!value || value == "" || value == " ") { return false; } else return true; } function findZipCode() { var width=520; var height=300; var posx=0; var posy=0; posx = (screen.width-width)/2-1; posy = (screen.height-height)/2-1; position = "width="+width+",height="+height+",scrollbars=no,top="+posy+",left="+posx, menubar=0; var openWindow = window.open("./process/zipcode.php",'', position); } // ¼¼·Î ·Ñ¸µ ½ÃÀÛ function move() { if(TopImageISpan.style.pixelTop>0&&TopImageISpan.style.pixelTop<=num){ TopImageISpan.style.pixelTop=0; setTimeout("move()",scrollspeed); setTimeout("move2()",scrollspeed); return } if(TopImageISpan.style.pixelTop>=TopImageISpan.offsetHeight*-1){ TopImageISpan.style.pixelTop-=num setTimeout("move()",waitingtime) } else { TopImageISpan.style.pixelTop = TopImagesHeight; TopImageISpan.innerHTML = TopImages[iTop]; if(iTop==TopImages.length-1) iTop=0 else iTop++ } } function move2(){ if (TopImageIISpan.style.pixelTop>0&&TopImageIISpan.style.pixelTop<=num){ TopImageIISpan.style.pixelTop=0 setTimeout("move2()",scrollspeed) setTimeout("move()",scrollspeed) return } if (TopImageIISpan.style.pixelTop>=TopImageIISpan.offsetHeight*-1){ TopImageIISpan.style.pixelTop-=num setTimeout("move2()",waitingtime) } else{ TopImageIISpan.style.pixelTop=TopImagesHeight TopImageIISpan.innerHTML=TopImages[iTop] if (iTop==TopImages.length-1) iTop=0 else iTop++ } } function TopImageScroll(){ move(); TopImageISpan.style.top = TopImagesHeight; TopImageISpan.style.visibility = 'visible'; } function StopScroll() { num = 0 } function ResumeScroll() { num = 1 } function move_1() { if(TopImageISpan2.style.pixelTop>0&&TopImageISpan2.style.pixelTop<=num2){ TopImageISpan2.style.pixelTop=0; setTimeout("move_1()",scrollspeed2); setTimeout("move2_1()",scrollspeed2); return } if(TopImageISpan2.style.pixelTop>=TopImageISpan2.offsetHeight*-1){ TopImageISpan2.style.pixelTop-=num2 setTimeout("move_1()",waitingtime2) } else { TopImageISpan2.style.pixelTop = TopImagesHeight2; TopImageISpan2.innerHTML = TopImages1[iTop2]; if(iTop2==TopImages1.length-1) iTop2=0 else iTop2++ } } function move2_1(){ if (TopImageIISpan2.style.pixelTop>0&&TopImageIISpan2.style.pixelTop<=num2){ TopImageIISpan2.style.pixelTop=0 setTimeout("move2_1()",scrollspeed2) setTimeout("move_1()",scrollspeed2) return } if (TopImageIISpan2.style.pixelTop>=TopImageIISpan2.offsetHeight*-1){ TopImageIISpan2.style.pixelTop-=num2 setTimeout("move2_1()",waitingtime2) } else{ TopImageIISpan2.style.pixelTop=TopImagesHeight2 TopImageIISpan2.innerHTML=TopImages1[iTop2] if (iTop2==TopImages1.length-1) iTop2=0 else iTop2++ } } function TopImageScroll_sec(){ move_1(); TopImageISpan2.style.top = TopImagesHeight2; TopImageISpan2.style.visibility = 'visible'; } function StopScroll2() { num2 = 0 } function ResumeScroll2() { num2 = 1 } function move_3() { if(TopImageISpan3.style.pixelTop>0&&TopImageISpan3.style.pixelTop<=num3){ TopImageISpan3.style.pixelTop=0; setTimeout("move_3()",scrollspeed3); setTimeout("move3_1()",scrollspeed3); return } if(TopImageISpan3.style.pixelTop>=TopImageISpan3.offsetHeight*-1){ TopImageISpan3.style.pixelTop-=num3 setTimeout("move_3()",waitingtime3) } else { TopImageISpan3.style.pixelTop = TopImagesHeight3; TopImageISpan3.innerHTML = TopImages2[iTop3]; if(iTop3==TopImages2.length-1) iTop3=0 else iTop3++ } } function move3_1(){ if (TopImageIISpan3.style.pixelTop>0&&TopImageIISpan3.style.pixelTop<=num3){ TopImageIISpan3.style.pixelTop=0 setTimeout("move3_1()",scrollspeed3) setTimeout("move_3()",scrollspeed3) return } if (TopImageIISpan3.style.pixelTop>=TopImageIISpan3.offsetHeight*-1){ TopImageIISpan3.style.pixelTop-=num3 setTimeout("move3_1()",waitingtime3) } else{ TopImageIISpan3.style.pixelTop=TopImagesHeight3 TopImageIISpan3.innerHTML=TopImages2[iTop3] if (iTop3==TopImages2.length-1) iTop3=0 else iTop3++ } } function TopImageScroll_third(){ move_3(); TopImageISpan3.style.top = TopImagesHeight3; TopImageISpan3.style.visibility = 'visible'; } function StopScroll3() { num3 = 0 } function ResumeScroll3() { num3 = 1 } function move_4() { if(TopImageISpan4.style.pixelTop>0&&TopImageISpan4.style.pixelTop<=num4){ TopImageISpan4.style.pixelTop=0; setTimeout("move_4()",scrollspeed4); setTimeout("move4_1()",scrollspeed4); return } if(TopImageISpan4.style.pixelTop>=TopImageISpan4.offsetHeight*-1){ TopImageISpan4.style.pixelTop-=num4 setTimeout("move_4()",waitingtime4) } else { TopImageISpan4.style.pixelTop = TopImagesHeight4; TopImageISpan4.innerHTML = TopImages3[iTop4]; if(iTop4==TopImages3.length-1) iTop4=0 else iTop4++ } } function move4_1(){ if (TopImageIISpan4.style.pixelTop>0&&TopImageIISpan4.style.pixelTop<=num4){ TopImageIISpan4.style.pixelTop=0 setTimeout("move4_1()",scrollspeed4) setTimeout("move_4()",scrollspeed4) return } if (TopImageIISpan4.style.pixelTop>=TopImageIISpan4.offsetHeight*-1){ TopImageIISpan4.style.pixelTop-=num4 setTimeout("move4_1()",waitingtime4) } else{ TopImageIISpan4.style.pixelTop=TopImagesHeight4 TopImageIISpan4.innerHTML=TopImages3[iTop4] if (iTop4==TopImages3.length-1) iTop4=0 else iTop4++ } } function TopImageScroll_forth(){ move_4(); TopImageISpan4.style.top = TopImagesHeight4; TopImageISpan4.style.visibility = 'visible'; } function StopScroll4() { num4 = 0 } function ResumeScroll4() { num4 = 1 } // ¼¼·Î ·Ñ¸µ Á¾·á function random_start() { var len = singletext.length; if( only_one == 1){ for (i=0; i 0) { setTimeout("move_left("+id+", "+cnt+")", sspeed) } else if (obj.style.pixelLeft < -sstep) { obj.style.pixelLeft = show_items * swidth new_item++ if (new_item == singletext.length) new_item=0 obj.innerHTML=singletext[random_val[new_item]] move_left_start() } } //item move start function move_right_start() { for (i=0; i<=show_items; i++) //setTimeout("move_left("+i+", "+swidth+")", stop_time) setTimeout("move_right("+i+", "+swidth+")", stop_time) } //item °³º° À̵¿ ÇÔ¼ö function move_right(id, cnt) { obj = eval('slider_'+id) obj.style.pixelLeft+=sstep cnt += sstep if (cnt > 0) { setTimeout("move_right("+id+", "+cnt+")", sspeed) } else if (obj.style.pixelLeft < +sstep) { obj.style.pixelLeft = show_items * swidth new_item-- if (new_item == 0) new_item=singletext.length obj.innerHTML=singletext[random_val[new_item]] move_right_start() } } //ȸ¿øÁ¤º¸ ÀԷ üũ function CheckMemberInputBasic(unifrm) { if(CheckBlank(unifrm.m_name.value) == false) { alert('ȸ¿ø¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_name.focus(); return false; } if(CheckHangle(unifrm.m_name.value) == false) { alert("À̸§Àº Çѱ۷ΠÀÔ·ÂÇϼ¼¿ä"); document.unifrm.m_name.focus(); return false; } if(CheckBlank(unifrm.m_jumin1.value) == false) { alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_jumin1.focus(); return false; } if(CheckNumber(unifrm.m_jumin1.value) == false) { alert('Áֹεî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_jumin1.focus(); return false; } if(CheckBlank(unifrm.m_jumin2.value) == false) { alert('Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_jumin2.focus(); return false; } if(CheckNumber(unifrm.m_jumin2.value) == false) { alert('Áֹεî·Ï¹øÈ£´Â ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_jumin2.focus(); return false; } if(CheckJumin(unifrm.m_jumin1.value+unifrm.m_jumin2.value) == false) { alert('Áֹεî·Ï¹øÈ£°¡ Ʋ¸®°Ô ÀԷµǾú½À´Ï´Ù. ¿Ã¹Ù¸¥ Áֹεî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_jumin1.focus(); return false; } if(CheckBlank(unifrm.m_id.value) == false) { alert('ȸ¿ø¾ÆÀ̵𸦠¾ÆÀ̵ð °Ë»öÀ» ÅëÇØ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_id.focus(); return false; } if(CheckEnglish(unifrm.m_id.value) == false || unifrm.m_id.value.length > 8) { alert('ȸ¿ø¾ÆÀ̵ð´Â ¼ýÀÚ/¿µ¹®Á¶ÇÕÀ¸·Î 8ÀÚÀ̳»¿¡¼­ ÀÛ¼ºÇϼ¼¿ä'); document.unifrm.m_id.focus(); return false; } return true; } function CheckMemberInputExtend(unifrm){ if(CheckBlank(unifrm.m_pwd1.value) == false) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä'); document.unifrm.m_pwd1.focus(); return false; } if(CheckBlank(unifrm.m_pwd2.value) == false) { alert('ºñ¹Ð¹øÈ£ È®Àζõ¸¦ ÀÔ·ÂÇϼ¼¿ä'); document.unifrm.m_pwd2.focus(); return false; } if(unifrm.m_pwd1.value != unifrm.m_pwd2.value) { alert('ºñ¹Ð¹øÈ£ ÀÔ·ÂÀÌ Æ²¸³´Ï´Ù. ºñ¹Ð¹øÈ£¸¦ ´Ù½ÃÀÔ·ÂÇϼ¼¿ä'); document.unifrm.m_pwd1.focus(); return false; } if(CheckBlank(unifrm.m_post.value) == false) { alert('¿ìÆí¹øÈ£¸¦ °Ë»öÇØ¼­ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä'); document.unifrm.m_post.focus(); return false; } if(CheckBlank(unifrm.m_address.value) == false) { window.alert('¿ìÆí¹øÈ£¸¦ °Ë»öÇØ¼­ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä'); document.unifrm.m_address.focus(); return false; } if(CheckBlank(unifrm.m_mail.value) == false) { window.alert('EmailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_mail.focus(); return false; } ema = document.unifrm.m_mail.value; ema_name = document.unifrm.m_name.value; if(CheckEmailAddr(ema,ema_name) == false) return false; chk_no = ema.split("@"); chk_no2 = "@"+chk_no[1].toLowerCase()+"."; chk_no3 = chk_no2.indexOf("@hanmail."); chk_no4 = chk_no2.indexOf("@daum."); /* if(chk_no3 != '-1' || chk_no4 != '-1') { alert("hanmailÀº µî·ÏÇϽǼö ¾ø½À´Ï´Ù."); document.unifrm.m_mail.focus(); return false; } */ if(CheckBlank(unifrm.m_tel_1_1.value) == false) { alert('ÀüÈ­¹øÈ£ ù¹øÂ°¶õÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_1.focus(); return false; } if(CheckNumber(unifrm.m_tel_1_1.value) == false) { alert('ÀüÈ­¹øÈ£ ù¹øÂ°¶õÀ» ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_1.focus(); return false; } if(CheckBlank(unifrm.m_tel_1_2.value) == false) { alert('ÀüÈ­¹øÈ£ µÎ¹øÂ°¶õÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_2.focus(); return false; } if(CheckNumber(unifrm.m_tel_1_2.value) == false) { alert('ÀüÈ­¹øÈ£ µÎ¹øÂ°¶õÀ» ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_2.focus(); return false; } if(CheckBlank(unifrm.m_tel_1_3.value) == false) { alert('ÀüÈ­¹øÈ£ ¼¼¹øÂ°¶õÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_3.focus(); return false; } if(CheckNumber(unifrm.m_tel_1_3.value) == false) { alert('ÀüÈ­¹øÈ£ ¼¼¹øÂ°¶õÀ» ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä'); document.unifrm.m_tel_1_3.focus(); return false; } if(unifrm.m_job.value == '==Á÷¾÷¼±ÅÃ==') { alert('Á÷¾÷À» ¼±ÅÃÇØÁÖ¼¼¿ä!'); document.unifrm.m_job.focus(); return false; } return true; } function set_Cookie (name, value, expires){ document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expires.toGMTString(); } function inputBoxXX() { alert('·Î±×ÀÎÈÄ ÀÌ¿ëÇØÁÖ¼¼¿ä!'); return false; } function ReloadPage(url,mode) { switch(mode) { case "parent": parent.location.replace(url); break; case "opener": opener.location.replace(url); break; default : location.replace(url); break; } } function PopLogin() { MM_openBrWindow('/register/pop.html?page_name=poplogin','','scrollbars=no,width=450,height=330'); } function PopCharge() { MM_openBrWindow('/charge/pop.html?page_name=popminial','','scrollbars=no,width=450,height=330'); } function ADBanner(gn,n,t) { alert(n); } function resizeFrame(iframeObj,re){ var innerBody = iframeObj.contentWindow.document.body; oldEvent = innerBody.onclick; innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; }; var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight); iframeObj.style.height = innerHeight; //var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth); //iframeObj.style.width = innerWidth; if( !arguments[1] ) /* ƯÁ¤ À̺¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */ this.scrollTo(1,1); } function resizeFrame2(iframeObj,re){ var innerBody = iframeObj.contentWindow.document.body; //oldEvent = innerBody.onclick; //innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; }; var innerHeight = parent.document.body.clientHeight-200; iframeObj.style.height = innerHeight; if( !arguments[1] ) /* ƯÁ¤ À̺¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */ this.scrollTo(1,1); } function flashLoadjs(src,w,h,objectId){ html = ''; html += ''; html += ''; html += ''; html += ''; html += ''; document.write(html); }