function rdoCheckedLife(obj) { if (obj.disabled==false) { if (obj.type == 'radio') { if (obj.disabled==false) { obj.checked=true; } } else if (obj.type == 'checkbox') { if (obj.checked==true) { obj.checked=false; } else { obj.checked=true; } } return true; } return false; } // ¿ÀÅä Æ÷Ä¿½Ì function Web3AutoFocus(item, next_item, num) { bName = navigator.appName; if (bName == "Netscape") return; if (item.value.length == num) { next_item.focus(); } return; } // ¸ÞÀÏ Á÷Á¢ ÀÔ·Â ½ºÅ©¸³Æ® function Web3eMailInput() { var f = document.frm; if (f.eMailDomain01.value=='9') { f.eMailDomain01.style.display='none'; f.eMailDomain02.style.display=''; f.eMailDomain02.focus(); f.eMailDomain02.select(); } else { if (f.eMailDomain01.value!='0') { f.eMailDomain01.style.display='none'; f.eMailDomain02.style.display=''; f.eMailDomain02.value = f.eMailDomain01.value; } } } // ¸ÞÀÏ Á÷Á¢ ÀÔ·Â ½ºÅ©¸³Æ® function Web3eMailInputPopUp() { var f = document.frm; if (f.eMailDomain01.value=='9') { f.eMailDomain02.focus(); f.eMailDomain02.select(); } else { if (f.eMailDomain01.value!='0') { f.eMailDomain02.value = f.eMailDomain01.value; } } } /************************************************************/ /* ÀüÀÚÀÎÁõ¼­ /************************************************************/ function Web3SealOpen() { var cw = 520; var ch = 405; var sw=screen.Width; var sh=screen.Height; var px=(sw-cw)/2; var py=(sh-ch)/2; var url = 'https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.INSLEADERS.CO.KR&lang=ko'; var winName = 'insWeb3Seal'; window.open(url, winName,'scrollbars=no,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no,width=' + cw + ',height=' + ch + ',left=' + px + ',top=' + py); } /************************************************************/ /* ¿øŬ¸¯ ½ºÅ©¸³Æ® /************************************************************/ function Web3GetLoginWin(pCode01, pCode02, pName) { var cw = 360; var ch = 207; var sw=screen.Width; var sh=screen.Height; var px=(sw-cw)/2; var py=(sh-ch)/2; if (pCode01 != '') { var url = 'https://insleaders.co.kr/web3/AppPg/loginNew/loginInit.asp?pCode01=' + pCode01 + '&pCode02=' + pCode02 + '&pName=' + pName; } else { var url = 'https://insleaders.co.kr/web3/AppPg/loginNew/loginInit.asp'; } var winName = 'webLoginWin'; window.open(url, winName,'scrollbars=no,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no,width=' + cw + ',height=' + ch + ',left=' + px + ',top=' + py); } /************************************************************/ /* ¿øŬ¸¯ ½ºÅ©¸³Æ® /************************************************************/ function Web3GetLoginWinNew(pCode01, pCode02, pName) { if (pCode01.length != 6) { alert('¼³°èÇϽô ºÐÀÇ ÁֹιøÈ£¸¦ ÀÔ·ÂÇØ ÁֽʽÿÀ!!'); return; } if (pCode02.length != 7) { alert('¼³°èÇϽô ºÐÀÇ ÁֹιøÈ£¸¦ ÀÔ·ÂÇØ ÁֽʽÿÀ!!'); return; } if (pName == '') { alert('¼³°èÇϽô ºÐÀÇ À̸§À» ÀÔ·ÂÇØ ÁֽʽÿÀ!!') return; } var cw = 340; var ch = 477; var sw=screen.Width; var sh=screen.Height; var px=(sw-cw)/2; var py=(sh-ch)/2; if (pCode01 != '') { var url = 'https://insleaders.co.kr/web3/AppPg/loginNew/login.asp?pCode01=' + insEncrypt(pCode01, 'insleaders') + '&pCode02=' + insEncrypt(pCode02, 'insleaders') + '&pName=' + pName; } else { var url = 'https://insleaders.co.kr/web3/AppPg/login/login.asp'; } var winName = 'webLoginWin'; window.open(url, winName,'scrollbars=no,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no,width=' + cw + ',height=' + ch + ',left=' + px + ',top=' + py); } function Web3GetNameOk(pCode01, pCode02, pName) { var cw = 400; var ch = 477; var sw=screen.Width; var sh=screen.Height; var px=(sw-cw)/2; var py=(sh-ch)/2; var url = '/web2/AppPg/login/nameSet.asp?pCode01=' + pCode01 + '&pCode02=' + pCode02 + '&pName=' + pName; var winName = 'webLoginWin'; window.open(url, winName,'scrollbars=yes,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no,width=' + cw + ',height=' + ch + ',left=' + px + ',top=' + py); } function Web3GetHoiwon(obj1, obj2, obj3) { var f = document.frm; if (obj1.value.length != 6) { Web3GetLoginWin(); return false; } if (obj2.value.length != 7) { Web3GetLoginWin(); return false; } var pCode01 = obj1.value; var pCode02 = obj2.value; if ((pCode01.length != 6) && (pCode02.length != 7)) { return false; } var pageUrl = "/web2/AppPg/onClick/chkHoiwon.asp?pCode01=" + pCode01 + "&pCode02=" + pCode02; var xmlRequest = new ActiveXObject("Microsoft.XMLHTTP"); xmlRequest.Open("POST", pageUrl, false); xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlRequest.onreadystatechange = function() {Web3GethoiwonCallBack(xmlRequest)}; xmlRequest.Send(null); return xmlRequest; } String.prototype.trim = function() { return this.replace(/(^ *)|( *$)/g, ""); } function Web3GethoiwonCallBack(xmlRequest) { var obj = document.frm; var strResult; if (xmlRequest == null || xmlRequest.readyState != 4) return; if(xmlRequest.responseText.length == 0) return; strResult = xmlRequest.responseText; var vals = strResult.trim().split('¡Ú¢Þ'); if (vals[0] == 'NAVER') { // ½Ç¸íÈ®ÀÎ ÆäÀÌÁö·Î À̵¿ // ans = confirm('ÇØ´çÁֹιøÈ£¿Í ÀÏÄ¡Çϴ ȸ¿øÁ¤º¸°¡ ¾ø½À´Ï´Ù.\r\n ȸ¿ø°¡ÀÔÀ» ÇϽðڽÀ´Ï±î?'); //if(ans == true) //{ // document.location='/web2/login/login.asp'; //} Web3GetNameOk(obj.pcode1.value, obj.pcode2.value, obj.pname.value); } else if (vals[0] == 'HOIWON') { Web3GetLoginWin(obj.pcode1.value, obj.pcode2.value, obj.pname.value); } else if (vals[0] == 'JUNHOIWON') { Web3GetOnClickWin(obj.pcode1.value, obj.pcode2.value, obj.pname.value); } //Web3GetOnClickWin(); } function Web3GetOnClickWin(pCode01, pCode02) { var cw = 400; var ch = 477; var sw=screen.Width; var sh=screen.Height; var px=(sw-cw)/2; var py=(sh-ch)/2; var url = '/web2/AppPg/onClick/onClick.asp?pCode01=' + pCode01 + '&pCode02=' + pCode02; var winName = 'webLoginWin'; window.open(url, winName,'scrollbars=yes,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no,width=' + cw + ',height=' + ch + ',left=' + px + ',top=' + py); } /************************************************************/ /* ¿øŬ¸¯ ½ºÅ©¸³Æ® ³¡ /************************************************************/ function Web3NumUnformat(obj) { var temp = ""; var n = String(obj.value); var len = n.length; var pos = 0; var ch = ''; while (pos < len) { ch = n.charAt(pos); if (((ch >= '0') && (ch <= '9')) || (ch == '-') || (ch == '.')) temp = temp + ch; pos = pos + 1; } obj.value = temp; } ////////////////////////////////////////// /// ¼ýÀÚ ÀÚ¸´¼ö¿¡¼­ 3ÀÚ¸´¼ö ¸¶´Ù ,¸¦ ³Ö¾îÁØ´Ù ////////////////////////////////////////// function Web3NumFormat(obj) { var temp = ""; var buff = ""; var i = 0; var n = String(obj.value); if (n.charAt(0) == '-') { temp = '-' ; n = n.substring(1,n.length); } if (n.indexOf('-',0) != -1) { obj.focus(); return; } var len = n.length; if ((pos=n.indexOf('.',0)) != -1) { buff = n.substring(pos,len); n = n.substring(0,pos); } while (n.charAt(i) == '0') i++; n = n.substring(i,len); len = n.length; if(len < 3) { obj.value = n; return; } else { var pos = len % 3; if (pos > 0) { temp = temp + n.substring(0,pos) + ','; len = len - pos; } while (len > 3) { temp = temp + n.substring(pos,pos+3) + ','; len = len - 3; pos = pos + 3; } temp = temp + n.substring(pos,pos+3) + buff; obj.value = temp; } } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i"; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; if (gbn=='1') { strRtn += "
"; } strRtn += " "; for (var i = 1; i" + eval('bojangMenuList0' + gbn)[i] + ""; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; } strRtn += "
"; if (gbn=='1') { strRtn += "
"; } strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; strRtn += " "; document.all.spBojangMenuList.innerHTML = strRtn; } else if (gbn == '5') { document.frmBojang.sangpoomSearch02.value=''; document.frmBojang.sangpoomSearch02.readOnly=false; document.frmBojang.sangpoomSearch02.focus(); document.frmBojang.sangpoomSearch02.select(); document.all.spBojangMenuList.innerHTML = ''; } } function chkFrmBojang() { var f = document.frmBojang; //alert(f.sangpoomSearch01.value); //alert(f.sangpoomSearch02.value); if (f.sangpoomSearch02.value=='¼±ÅÃÇϼ¼¿ä') { alert(f.sangpoomSearch01.value + 'À»(¸¦) ¼±ÅÃÇϼ¼¿ä'); return; } if (f.sangpoomSearch01.value =='º¸ÀåÇýÅÃ') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=00&searchGbn01=01&searchGbn02=' + f.sangpoomSearch02.value + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch01.value =='º¸ÇèÁ¾·ù') { if (f.sangpoomSearch02.value=='ÀÇ·á½Çºñº¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=15' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='°Ç°­º¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=01' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='¾Ïº¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=02' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='žÆ/¾î¸°À̺¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=03' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='Á¤±âº¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=04' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='Á¾½Åº¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=08' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='¿îÀüÀÚ/»óÇغ¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=06' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='¿¬±Ý/ÀúÃຸÇè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=10' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch02.value=='½Ç¹ö/È¿º¸Çè') { self.location='/web3/mall/01_SangpoomList.asp?jongGbn=17' + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } } else if (f.sangpoomSearch01.value =='º¸Çè»ç') { var chkHoisaCode = ''; if (f.sangpoomSearch02.value=='±ÝÈ£»ý¸í') { chkHoisaCode = '33'; } else if (f.sangpoomSearch02.value=='µ¿¾ç»ý¸í') { chkHoisaCode = '74'; } else if (f.sangpoomSearch02.value=='¹Ì·¡¿¡¼Â»ý¸í') { chkHoisaCode = '34'; } else if (f.sangpoomSearch02.value=='½ÅÇÑ»ý¸í') { chkHoisaCode = '11'; } else if (f.sangpoomSearch02.value=='Èï±¹»ý¸í') { chkHoisaCode = '35'; } else if (f.sangpoomSearch02.value=='AIA»ý¸í') { chkHoisaCode = '88'; } else if (f.sangpoomSearch02.value=='±×¸°È­Àç') { chkHoisaCode = '89'; } else if (f.sangpoomSearch02.value=='¸Þ¸®Ã÷È­Àç') { chkHoisaCode = '81'; } else if (f.sangpoomSearch02.value=='Á¦ÀÏÈ­Àç') { chkHoisaCode = '86'; } else if (f.sangpoomSearch02.value=='ÈﱹȭÀç') { chkHoisaCode = '87'; } self.location='/web3/mall/01_SangpoomList.asp?jongGbn=00&searchGbn01=02&searchGbn02=' + chkHoisaCode + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch01.value =='º¸Ç質ÀÌ') { var chkBkNaiGbn01 = ''; var chkBkNaiGbn02 = ''; if (f.sangpoomSearch02.value=='žÆ') { chkBkNaiGbn01 = '0' chkBkNaiGbn02 = '0' } else if (f.sangpoomSearch02.value=='1¼¼~5¼¼') { chkBkNaiGbn01 = '1' chkBkNaiGbn02 = '5' } else if (f.sangpoomSearch02.value=='6¼¼~15¼¼') { chkBkNaiGbn01 = '6' chkBkNaiGbn02 = '15' } else if (f.sangpoomSearch02.value=='16¼¼~24¼¼') { chkBkNaiGbn01 = '16' chkBkNaiGbn02 = '24' } else if (f.sangpoomSearch02.value=='25¼¼~30¼¼') { chkBkNaiGbn01 = '25' chkBkNaiGbn02 = '30' } else if (f.sangpoomSearch02.value=='31¼¼~50¼¼') { chkBkNaiGbn01 = '31' chkBkNaiGbn02 = '50' } else if (f.sangpoomSearch02.value=='51¼¼~60¼¼') { chkBkNaiGbn01 = '51' chkBkNaiGbn02 = '60' } else if (f.sangpoomSearch02.value=='61¼¼~80¼¼') { chkBkNaiGbn01 = '61' chkBkNaiGbn02 = '80' } else if (f.sangpoomSearch02.value=='81¼¼~100¼¼') { chkBkNaiGbn01 = '81' chkBkNaiGbn02 = '100' } self.location='/web3/mall/01_SangpoomList.asp?jongGbn=00&searchGbn01=03&searchGbn02=' + chkBkNaiGbn02 + '&searchGbn03=' + chkBkNaiGbn02 + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } else if (f.sangpoomSearch01.value =='»óÇ°¸íã±â') { if (f.sangpoomSearch02.value == '') { alert('°Ë»öÇÏ½Ç »óÇ°¸íÀ» ÀÔ·ÂÇØ ÁֽʽÿÀ!!!'); f.sangpoomSearch02.focus(); f.sangpoomSearch02.select(); return; } self.location='/web3/mall/01_SangpoomList.asp?jongGbn=00&searchGbn01=04&searchGbn02=' + f.sangpoomSearch02.value + '&sangpoomListSerachWord01=' + f.sangpoomSearch01.value + '&sangpoomListSerachWord02=' + f.sangpoomSearch02.value; } } function getObjTopAuto(aObj, aHeight) { var obj = aObj; var tTop = obj.offsetTop + aHeight; var preHeight = 0; for (var i = 0;i<1000;i++) { if (obj.parentNode != null) { obj = obj.parentNode if (!isNaN(obj.offsetTop)) { if (preHeight!=obj.offsetTop) { tTop += obj.offsetTop; } preHeight=obj.offsetTop; } else { break; } } } return tTop - 40; } function getObjTop(aObj, aHeight) { var obj = aObj; var tTop = obj.offsetTop + aHeight; for (var i = 0;i<1000;i++) { if (obj.parentNode != null) { obj = obj.parentNode if (!isNaN(obj.offsetTop)) { tTop += obj.offsetTop; } else { break; } } } return tTop - 64; } function getObjTopMain(aObj, aHeight) { var obj = aObj; var tTop = obj.offsetTop + aHeight; for (var i = 0;i<1000;i++) { if (obj.parentNode != null) { obj = obj.parentNode if (!isNaN(obj.offsetTop)) { tTop += obj.offsetTop; } else { break; } } } return tTop; } function insEncrypt(aStr, aKey) { var rtnStr=''; for (var i=0;i'; divHTML += this.item[i]; divHTML += ''; return divHTML; } this.start = function () { if ( this.itemcount == 1 ) { this.add(this.item[0]); } this.display(); this.currentspeed = this.scrollspeed; this.stop = true; setTimeout(this.objname+'.scroll()',this.currentspeed); window.setTimeout(this.objname+".stop = false", this.pausetime); }; this.display = function () { var divHTML; divHTML = '
'; for(var i = 0; i < this.itemcount; i++) { divHTML += this.linehtml(i); } divHTML += '
'; document.getElementById(this.divname).innerHTML=divHTML; }; this.scroll = function () { if ( this.pause == true ) { window.setTimeout(this.objname+".scroll()",this.pausetime); this.pause = false; } else { this.currentspeed = this.scrollspeed; if ( !this.stop ) { for (var i = 0; i < this.itemcount; i++) { obj = document.getElementById(this.objname+'item'+i).style; obj.top = parseInt(obj.top) - 1; if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1); if ( parseInt(obj.top) == 0 ) { this.currentspeed = this.pausetime; this.i = i; } } } if( !this.stop && i == this.itemcount && parseInt(obj.top) == 0 && this.refreash == 1 ) { this.refreash = 0; } else { window.setTimeout(this.objname+".scroll()",this.currentspeed); } } }; this.onmouseover = function () { if ( this.pausemouseover ) { this.stop = true; } }; this.onmouseout = function () { if ( this.pausemouseover ) { this.stop = false; } }; this.next = function() { height = this.height; for (i = 0; i < this.itemcount; i++) { obj = document.getElementById(this.objname+'item'+i).style; if ( parseInt(obj.top) < 1 ) { height = this.height + parseInt(obj.top); break; } } for (i = 0; i < this.itemcount; i++) { this.stop = true; obj = document.getElementById(this.objname+'item'+i).style; if ( parseInt(obj.top) < 1 ) { obj.top = this.height * (this.itemcount-1); } else { obj.top = parseInt(obj.top) - height; } } } } // ÀüÈ­¹øÈ£ üũ function Web3ChkTelNo(tel01, tel02, tel03) { if (tel01.length < 2) { return false; } if (tel02.length < 3) { return false; } if (tel03.length < 4) { return false; } if (tel01.substr(0, 1) != '0') { return false; } if (tel02.length==3) { if ((tel02 == '000') || (tel02 == '111') || (tel02 == '222') || (tel02 == '333') || (tel02 == '444') || (tel02 == '555') || (tel02 == '666') || (tel02 == '777') || (tel02 == '888') || (tel02 == '999') || (tel02 == '123')) { return false; } } else if (tel02.length==4) { if ((tel02 == '0000') || (tel02 == '1111') || (tel02 == '2222') || (tel02 == '3333') || (tel02 == '4444') || (tel02 == '5555') || (tel02 == '6666') || (tel02 == '7777') || (tel02 == '8888') || (tel02 == '9999') || (tel02 == '1234')) { return false; } } else { return false; } return true; } function Web3ChkJuminCd(jumin01, jumin02) { var chk =0; var f1 = jumin01; var f2 = jumin02; var yy = f1.substring(0,2); var mm = f1.substring(2,4); var dd = f1.substring(4,6); var sex = f2.substring(0,1); var check_point = 0; if (isNaN(f1)) { f1=''; return false; } if (isNaN(f2)) { return false; } if ((f1.length!=6)||(mm <1||mm>12||dd<1)) { return false; } if (sex !=1 && sex !=2 ) { return false; } pcodenum = f1 + '' + f2 for (var i = 0; i <=5 ; i++) { chk = chk + ((i%8+2) * parseInt(pcodenum.substring(i,i+1))) } for (var i = 6; i <=11 ; i++) { chk = chk + ((i%8+2) * parseInt(pcodenum.substring(i,i+1))) } chk = 11 - (chk %11) chk = chk % 10 if (chk != f2.substring(6, 7)) { return false; } return true; }