var alert_msg = new Array(); var alert_join = new Array(); alert_msg[0] = "·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù."; alert_join[0] = "´Ð³×ÀÓÀº ¿µ¹®/¼ýÀÚ 4-12ÀÚ(ÇÑ±Û 2-6ÀÚ)¸¸ °¡´ÉÇÕ´Ï´Ù."; alert_join[1] = "¾ÆÀ̵ð´Â ¿µ¹®/¼ýÀÚ 4-12ÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù."; // Ãß°¡ function isNums(value) { // ¼ýÀÚÀÎÁö °Ë»ç for (var i = 0; i < value.length; i++) { var chr = value.substr(i, 1); if (chr < '0' || chr > '9') return false; } return true; } function verify(value) { if (value.length < 4 || value.length > 12) { return false; } for (var i = 0; i < value.length; i++) { var chr = value.substr(i, 1); if ((chr < '0' || chr > '9') && (chr < 'a' || chr > 'z') && (chr < 'A' || chr > 'Z')) { return false; } } return true; } function getbyte(value) { // ¹ÙÀÌÆ® ±æÀ̸¦ ±¸ÇÏ´Â ÇÔ¼ö var str = new String(value); var len = str.length; var count = 0; for (k=0 ; k 4) { count += 2; } else if (temp == '\r' && str.charAt(k+1) == '\n') { // \r\nÀÏ °æ¿ì count += 2; } else if (temp != '\n') { count++; } } return count; } function checkEmail(email) { var supported = 0; if(window.RegExp) { var tempStr = "a"; var tempReg = new RegExp(tempStr); if(tempReg.test(tempStr)) supported = 1; } if(!supported) { return (email.indexOf(".") > 2) && (email.indexOf("@") > 0); } var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"); return (!r1.test(email) && r2.test(email)); } function swf(src, w, h) { html = ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '<\/embed>'; html += '<\/object>'; document.write(html); } function checkInput(f) { var i,currEl; for(i = 0; i < f.elements.length; i++){ currEl = f.elements[i]; //Çʼö Ç׸ñÀ» üũÇÑ´Ù. if (currEl.getAttribute("required") != null) { if(currEl.type.toUpperCase() == "TEXT" || currEl.tagName.toUpperCase() == "SELECT" || currEl.tagName.toUpperCase() == "TEXTAREA" ||currEl.type.toUpperCase() == "PASSWORD" ) { if(!chkText(currEl,currEl.hname)) return false; } else if(currEl.type.toUpperCase() == "FILE"){ if(!chkFile(currEl,currEl.hname)) return false; }else if(currEl.type.toUpperCase() == "CHECKBOX"){ if(!chkCheckbox(f, currEl,currEl.hname)) return false; } else if(currEl.type.toUpperCase() == "RADIO"){ if(!chkRadio(f, currEl,currEl.hname)) return false; } } // ÀÔ·Â ÆäÅÏÀ» üũÇÑ´Ù. if(currEl.getAttribute("option") != null && currEl.value.length > 0){ if(!chkPatten(currEl,currEl.option,currEl.hname)) return false; } } return true; } //Text ÆÄÀÏ Çʼö µî·Ï üũ function chkText(field, name) { if(field.name.match(/(html)/)) { if(field.value.length < 1){ alert(name); return false; } return true; } else { if(field.value.length < 1){ alert(name); field.focus(); return false; } if(field.getAttribute("maxlength") != null) { if(getbyte(field.value) > field.getAttribute("maxlength")) { alert("¿µ¹® " + field.getAttribute("maxlength") + "ÀÚ(ÇÑ±Û " + field.getAttribute("maxlength") / 2 + "ÀÚ)±îÁö ÀÔ·Â °¡´ÉÇÕ´Ï´Ù."); field.focus(); return false; } } return true; } } //Hidden ÆÄÀÏ Çʼö µî·Ï üũ function chkHidden(field, name) { if(field.value.length < 1){ alert(name); return false; } return true; } //Checkbox Çʼö µî·Ï üũ function chkCheckbox(form, field, name) { fieldname = eval(form.name+'.'+field.name); if (!fieldname.checked){ alert(name); field.focus(); return false; } return true; } //Radion Çʼö µî·Ï üũ function chkRadio(form, field, name) { fieldname = eval(form.name+'.'+field.name); for (i=0;i::::: À̹ÌÁö :::::"); imgWin.document.write(""); imgWin.document.write(""); imgWin.document.write(""); imgWin.document.close(); } function viewUCC(um_idx) { if (islogin == true) location.href = "../ucc/08ucc_view.html?um_idx=" + um_idx; else alert(alert_msg[0]); } // Á¤¾×Á¦ °¡ÀÔ ÆË¾÷ function uccFlatRate() { winopen_center("/sub/01sub_flatrate_ucc.html", "st_pointup", 620, 700, "yes"); } // ¿©¼ºÈ¸¿ø Á¤º¸ Ŭ¸¯(ÇÁ·ÎÇÊ/UCC) function viewMemberInfo(mode, info) { if (mode == 1) { if (islogin == false) alert(alert_msg[0]); else pop_profile(info); } else if (mode == 2) { location.href = "../ucc/08ucc_list.html?ucc_mcode=" + info; } } // ¿©¼ºÈ¸¿ø UCC Á¤»ê Á¤º¸ function popUccAccountInfo(idx) { winopen_center("../my/pop_my_account_detail.html?ua_idx=" + idx, "st_ucc_account", 250, 280, "no"); } // Æ÷ÀÎÆ® ÃæÀü function popPointPayment() { winopen_center('/sub/01sub_payment_new.html','st_pointup', 630, 660, 'yes'); } // ¸ðµÎ ¼±Åà var checkFlag = false; function checkAll() { checkFlag = !checkFlag; try { if(document.getElementsByName("chkbox").length == undefined) { document.getElementsByName("chkbox").checked = checkFlag; cnt = 1; } else { for(i=0; i