function popup(url) { todayDate = new Date(); var nowYear = todayDate.getFullYear(); var nowMonth = todayDate.getMonth() + 1; var nowDay = todayDate.getDate(); var nowHour = todayDate.getHours(); chgYear = new String(); chgMonth = new String(); chgDay = new String(); chgHour = new String(); chgYear = nowYear; if (nowMonth < 10) { chgMonth = "0" + nowMonth; } else { chgMonth = nowMonth; } if (nowDay < 10) { chgDay = "0" + nowDay; } else { chgDay = nowDay; } if (nowHour < 10) { chgHour = "0" + nowHour; } else { chgHour = nowHour; } var nowTimeStamp = parseInt(chgYear + "" + chgMonth + "" + chgDay + "" + chgHour); window.open(url, 'untitled', 'left=30, top=100, width=560, height=600, scrollbars=yes'); } function popup2(url) { todayDate = new Date(); var nowYear = todayDate.getFullYear(); var nowMonth = todayDate.getMonth() + 1; var nowDay = todayDate.getDate(); var nowHour = todayDate.getHours(); chgYear = new String(); chgMonth = new String(); chgDay = new String(); chgHour = new String(); chgYear = nowYear; if (nowMonth < 10) { chgMonth = "0" + nowMonth; } else { chgMonth = nowMonth; } if (nowDay < 10) { chgDay = "0" + nowDay; } else { chgDay = nowDay; } if (nowHour < 10) { chgHour = "0" + nowHour; } else { chgHour = nowHour; } var nowTimeStamp = parseInt(chgYear + "" + chgMonth + "" + chgDay + "" + chgHour); window.open(url, 'untitled', 'left=30, top=100, width=800, height=600, scrollbars=yes'); } // ÄÜÆ®·Ñ¾ø´Â »õâ ¶ç¿ì±â function Win_open(popup) { window.open(popup,'','left=0,top=0,width=800,height=600,status=no,menubar=no,scrollbars=yes,resizable=no'); } function openPop(link,wSize,hSize){ LeftPosition = (screen.width) ? (screen.width-wSize)/2 : 0; TopPosition = (screen.height) ? (screen.height-hSize)/2 : 0; window.open(link,'Notice02','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+wSize+',height='+hSize+',left='+LeftPosition+',top='+TopPosition); } function hangul(){ if(event.keyCode == 8 || event.keyCode == 9){//¹é ½ºÆäÀ̽º ÀÔ·Â °¡´É || event.keyCode !== 8 return; }else if(( event.keyCode < 65) || ( event.keyCode > 122 && event.keyCode <= 127)){ alert("Çѱ۰ú ¿µ¹®¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù"); event.keyCode = null; return; } } function iNum(){ if(!(( event.keyCode >= 48) && ( event.keyCode <= 57) || ( event.keyCode >= 96) && ( event.keyCode <= 105) || event.keyCode == 8)){ alert("¼ýÀÚ¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù"); event.keyCode = null; return; //¼ýÀÚÀ϶§ ½ºÅ©¸³Æ® } } function pw_ch(num, is){ var f = document.frm; if(num == '1' && document.getElementById('m_pw').value.length <= 5 && document.getElementById('m_pw').value != ''){ alert("ºñ¹Ð¹øÈ£ 6±ÛÀÚÀÌ»ó ÀÔ·ÂÇϼ¼¿ä"); //f.m_pw.focus(); } if(num == '2' && document.getElementById('m_pw').value != document.getElementById('m_pw2').value && document.getElementById('m_pw2').value != ''){ alert("ºñ¹Ð¹øÈ£ ÀԷ°ªÀÌ ´Ù¸¨´Ï´Ù."); //f.m_pw2.focus(); } outFocus1(is); } //Å׵θ® »ö º¯°æ function inFocus1(i) { (i).style.border="1px solid #6fba2a"; (i).style.backgroundColor="#dbeaff"; } function outFocus1(i) { (i).style.border="1px solid #CFCFCF"; (i).style.backgroundColor=""; } function textarea_maxlength(obj) { var message; var tempMessage = ""; var totalString= obj.value; var maxlengthAttr = obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""; maxlength = maxlengthAttr * 2; var textareaLength = obj.value.length; if (textareaLength == 0) { totalString = maxlengthAttr * 2; } else { for (var i=0; i 4) { maxlength -= 2; } else { maxlength--; } if (maxlength < 0) { alert("ÃÑ ¿µ¹® "+(maxlengthAttr*2)+"ÀÚ ÇÑ±Û " + maxlengthAttr + "ÀÚ ±îÁö ÀÛ¼ºÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); obj.value= tempMessage; break; } else { tempMessage += message; } }//end for } } function familyMove(){ var open_url=document.getElementById('family_site').value; var f = document.ffrm; f.action = open_url; //window.open(open_url,'new','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=no'); }