// µðÆúÆ® µ¥ÀÌÅÍ ÃʱâÈ­ function initDefault() { var oForm = document.oFindIdForm; oForm.uname.value = ""; oForm.personno1.value = ""; oForm.personno2.value = ""; } // ·Î±×ÀÎ À̵¿ function goFullLogin() { Parse_Cookie(document); var login_uid = Read_Cookie(BBS_COOKIE_NAME); var uid = document.getElementById("spnId").innerHTML; var szUrl = ""; if( login_uid == uid ) { szUrl = AFREECA; } else { var request_uri = LOGIN_8100 + "/afreeca/login.php?szFrom=full&uid=" + uid; szUrl = LOGIN_8100 + "/app/LogOut.php?request_uri=" + escape(request_uri); } top.location.href = szUrl; } // ¾ÆÀ̵ð üũ function uid_check(oForm) { if( _valid_byte_check(4,12,oForm.uid.value) ) { alert("¾ÆÀ̵𸦠¿Ã¹Ù¸£°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä."); oForm.uid.value = ""; oForm.uid.focus(); return false; } if( _is_hangle(oForm.uid.value )) { alert("¾ÆÀ̵ð´Â ¿µ¹®/¼ýÀڷθ¸ ÀÔ·ÂÇØÁÖ¼¼¿ä."); oForm.uid.value = ""; oForm.uid.focus(); return false; } return true; } // À̸§ üũ function uname_check(oForm) { if( _valid_length_check(1,20,oForm.uname.value) ) { alert("À̸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä."); oForm.uname.value = ""; oForm.uname.focus(); return false; } if( _valid_value_check(oForm.uname.value) ) { alert("Ư¼ö¹®ÀÚ´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); oForm.uname.value = ""; oForm.uname.focus(); return false; } return true; } // Áֹεî·Ï¹øÈ£ üũ function personno_check(oForm) { if( _valid_length_check(6,6,oForm.personno1.value ) || _valid_length_check(7,7,oForm.personno2.value) ) { alert("Áֹεî·Ï¹øÈ£¸¦ ¹Ù¸£°Ô ÀÔ·ÂÇØÁÖ¼¼¿ä."); oForm.personno1.value = ""; oForm.personno2.value = ""; oForm.personno1.focus(); return false; } if( _is_num(oForm.personno1.value) || _is_num(oForm.personno2.value)) { alert("Áֹεî·Ï¹øÈ£´Â ¼ýÀڷθ¸ ÀÔ·ÂÇØÁÖ¼¼¿ä."); oForm.personno1.value = ""; oForm.personno2.value = ""; oForm.personno1.focus(); return false; } return true; } // ¾ÆÀ̵ð ã±â ÁֹιøÈ£/¾ÆÀÌÇÉ ¼±Åà function select_find_type( obj ) { if( obj.id == "ipin1" || obj.id == "ipin2" ) { document.getElementById("reg_div_ipin").style.display = "block"; document.getElementById("reg_div_ssn").style.display = "none"; document.getElementById("ipin1").checked = true; document.getElementById("ipin2").checked = true; } else { document.getElementById("reg_div_ipin").style.display = "none"; document.getElementById("reg_div_ssn").style.display = "block"; document.getElementById("ssn1").checked = true; document.getElementById("ssn2").checked = true; } } //¾ÆÀÌÇÉÀ¸·Î Æнº¿öµå º¯°æÇϱâ function GoIpinChangePass() { var szUserId = document.getElementById('uid').value; if(szUserId == "") { alert("¾ÆÀ̵𸦠ÀÔ·ÂÇϼ¼¿ä."); return; } document.getElementById('uid').disabled = true; var szHref = escape( "opener.responseGoIpinChangePass" ); window.open( MEMBER_8111 + "/app/pop_ipin.php?szWorkType=change_pwd&szUid="+szUserId+ "&szHref="+szHref, "", "width=100, height=100, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no"); } //¾ÆÀÌÇÉÀ¸·Î ¾ÆÀ̵ð ã±â ÀÎÁõ ÈÄ Ã³¸® function responseGoIpinChangePass(nRet, uid) { alert("herer"); } function goHome() { try { top.location.href = AFREECA; } catch(e) { location.href = AFREECA; } } function emailFormatCheck(email) { var emailReg = new RegExp(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/); return emailReg.test(email); }