// JavaScript Document function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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 1 && atPos == atLastPos && dotPos > 3 && spacePos == -1 && commaPos == -1 && atPos + 1 < dotPos && dotPos + 1 < eMailSize); else { alert('E-mailÁÖ¼Ò Çü½ÄÀÌ À߸øµÇ¾ú½À´Ï´Ù.\n\r´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!'); document.brdForm.mail_addr.focus(); return; } document.brdForm.submit(); } //Ç÷¡½¬ Ȱ¼ºÈ­ ½ºÅ©¸³Æ®ÀÔ´Ï´Ù -- 12-15ÀÏ ±èº´¼ö Ãß°¡// function MakeFlash(ImgUrl,Wid,Hei) { document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } function editCheck() { if(document.edit.pswd.value.length < 4) { alert("ºñ¹Ð¹øÈ£´Â 4ÀÚ¸®·Î ³Ö¾îÁÖ¼¼¿ä."); document.edit.pswd.focus(); return; } var valid = "0123456789"; var temp; for (var i=0; i 100) { alert("³»¿ëÀÇ ±æÀ̰¡ 4000ÀÚ¸¦ ³Ñ¾ú½À´Ï´Ù. 4000ÀÚ ÀÌ»óÀº ÀԷµÇÁö ¾Ê½À´Ï´Ù. \n ³»¿ëÀ» ´Ù½Ã ÀÔ·ÂÇÏ¿© Áֽñ⠹ٶø´Ï´Ù. \n"); document.edit.cont.focus(); return ; } } document.edit.submit(); } function joinCheck() { if(document.join_form.user_id.value==""){ alert("ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.user_id.focus(); return; } if((document.join_form.birth_year.value=="")||(document.join_form.birth_month.value=="")||(document.join_form.birth_day.value=="")){ alert("»ý³â¿ùÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.user_id.focus(); return; } if(document.join_form.name.value==""){ alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.name.focus(); return; } if((document.join_form.pswd.value=="")||(document.join_form.pswd.length < 6)){ alert("ºñ¹Ð¹øÈ£¸¦ 6ÀÚÀÌ»ó ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); document.join_form.pswd.focus(); return; } if(document.join_form.pswd_check.value==""){ alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); document.join_form.pswd_check.focus(); return; } if(document.join_form.pswd.value != document.join_form.pswd_check.value){ alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù."); document.join_form.pswd.focus(); return; } document.join_form.e_mail.value = document.join_form.e_mail1.value + "@" + document.join_form.e_mail2.value; document.join_form.birthday.value = document.join_form.birth_year.value + document.join_form.birth_month.value + document.join_form.birth_day.value; if(document.join_form.e_mail.value==""){ alert("E_mailÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.e_mail.focus(); return; } if(document.join_form.zip_code.value==""){ alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); return; } if(document.join_form.addr1.value==""){ alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.addr1.focus(); return; } if(document.join_form.addr2.value==""){ alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.addr2.focus(); return; } var str=document.join_form.e_mail.value; var atPos = str.indexOf('@'); var atLastPos = str.lastIndexOf('@'); var dotPos = str.indexOf('.'); var spacePos = str.indexOf(' '); var commaPos = str.indexOf(','); var eMailSize = str.length; if (atPos > 1 && atPos == atLastPos && dotPos > 3 && spacePos == -1 && commaPos == -1 && atPos + 1 < dotPos && dotPos + 1 < eMailSize); else { alert('E-mailÁÖ¼Ò Çü½ÄÀÌ À߸øµÇ¾ú½À´Ï´Ù.\n\r´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!'); document.join_form.e_mail.focus(); return; } if((document.join_form.genr_phon_no2.value=="")||(document.join_form.genr_phon_no3.value=="")){ alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.genr_phon_no2.focus(); return; } if((document.join_form.cell_phon_no2.value=="")||(document.join_form.cell_phon_no3.value=="")){ alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.cell_phon_no2.focus(); return; } if(document.join_form.company_desc.value==""){ alert("Á÷Àå¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); document.join_form.company_desc.focus(); return; } if(document.join_form.job_code.value=="none"){ alert("Á÷¾÷À» ¼±ÅÃÇØ ÁÖ¼¼¿ä."); document.join_form.job_code.focus(); return; } if(document.join_form.use_prps.value=="none"){ alert("ÀÌ¿ë¸ñÀûÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä."); document.join_form.use_prps.focus(); return; } if(document.join_form.check_yn.value == null){ alert("¾ÆÀ̵ð Áߺ¹Ã¼Å©¸¦ È®ÀÎÇØÁÖ¼¼¿ä."); document.join_form.user_id.focus(); return; } if(IsSpecialChar(document.join_form.user_id)){ alert("Ư¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù."); document.join_form.user_id.focus(); return ; } document.join_form.submit(); } /******************************************************************************************************/ /* File name : common.js */ /* Class : */ /* Creation Date : 2003.05 */ /* Author : °í¿µ³² (gyn90001@hanmail.net) */ /* Description : °øÅëÀÚ¹Ù½ºÅ©¸³Æ® */ /* */ /*** Maintenance History ******************************************************************************/ /* Modify Date : 2003.05 */ /* Modifier : °í¿µ³² (gyn90001@hanmail.net) */ /* Reason : */ /* */ /******************************************************************************************************/ //====================================================================================================== // U_blankfield_check(): ÇʵåÀԷ°ª °ø¹éüũ // call page : common // parameters : object // return : //====================================================================================================== function U_blankfield_check(object) { var str = object.value; var len = object.value.length; if (str == "" || len == 0 ){ return true; } else{ return false; } } //====================================================================================================== // U_digitstr_check(): ÀԷ¹®ÀÚ¿­ÀÌ ¼ýÀÚ¿­ÀÎÁö üũ // call page : common // parameters : object // return : //====================================================================================================== function U_digitstr_check(object){ var len = object.value.length; var digit = '1234567890'; if(len <= 0){ return false; } else{ for(i=0; i < len; i++){ if(digit.indexOf(object.value.substring(i,i+1)) < 0) { alert('ÀÔ·ÂµÈ ¹®ÀÚ¿­ÀÌ ¼ýÀÚ°¡ ¾Æ´Ï°Å³ª ¼Ò¼öÁ¡µîÀÌ ÀԷµǾú½À´Ï´Ù.'+'\n'+'´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.'); object.value=""; return false; } } return true; } } //====================================================================================================== // U_numformat() : ÀԷ¼ýÀÚ¿­ 3ÀÚ¸® ',' ¼ýÀÚ¿­·Î Àüȯ // call page : common // parameters : object // return : //====================================================================================================== function U_numformat(object){ var temp = ""; var n = String(object.value); var len = n.length; result=U_digitstr_check(object); if(result==false){ return false; } else{ if(len < 3) { object.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); object.value = temp; } } } //====================================================================================================== // U_unformat() : ',' ¼ýÀÚ¿­ >> ¼ýÀÚ¿­·Î Àüȯ // // call page : common // parameters : object // return : //====================================================================================================== function U_unformat(object){ var instr = new String; var outstr = new String; var i = 0; instr = object.value; outstr = ''; for(i=0; i > ¼ýÀÚ¿­·Î Àüȯ // // call page : common // parameters : c_string // return : outstr //====================================================================================================== function U_unformat2(c_string){ var instr = new String; var outstr = new String; var i = 0; instr = c_string; outstr = ''; for(i=0; i maxlength) { alert(msg); object.value=""; return false; } else{ return true; } } //====================================================================================================== // U_ssno_check() : Áֹεî·Ï ¹øÈ£ üũ ÇÔ¼ö // call page : common // parameters : object // return : //====================================================================================================== function U_ssno_check(object){ var ssno_len=object.value.length; var digit = '1234567890'; for(i=0; i < ssno_len; i++){ if(digit.indexOf(object.value.substring(i,i+1)) < 0) { alert('ÁֹιøÈ£¿¡ »ç¿ëÇÒ ¼ö ¾ø´Â ¹®ÀÚ°¡ »ç¿ëµÇ¾ú½À´Ï´Ù.'); object.value=""; return false; } } if(ssno_len != 13){ alert("ÁֹιøÈ£ 13ÀÚ¸®¸¦ ÀÔ·ÂÇϼ¼¿ä."); object.value=""; return false; } else { res=ssno_check13(object); return res; } } function ssno_check13(object){ var ssno=object.value; var id1=ssno.substring(0,1); var id2=ssno.substring(1,2); var id3=ssno.substring(2,3); var id4=ssno.substring(3,4); var id5=ssno.substring(4,5); var id6=ssno.substring(5,6); var id7=ssno.substring(6,7); var id8=ssno.substring(7,8); var id9=ssno.substring(8,9); var id10=ssno.substring(9,10); var id11=ssno.substring(10,11); var id12=ssno.substring(11,12); var id13=ssno.substring(12,13); var sum = id1*2 + id2*3 + id3*4 + id4*5 + id5*6 + id6*7 + id7*8 + id8*9 + id9*2 + id10*3 + id11*4 + id12*5; sum = 11-(sum%11); sum = sum%10; if(sum != id13){ alert("Áֹεî·Ï¹øÈ£°¡ À߸ø ÀԷµǾú½À´Ï´Ù."); object.value=""; return false; } } //====================================================================================================== // U_delChar() : Ư¼ö ¹®ÀÚ Á¦°Å ÇÔ¼ö // call page : common // parameters : object, char // return : //====================================================================================================== function U_delChar(object, ch) { var len = object.length; var ret = ""; //¹®ÀÚ¿­¿¡¼­ ch ¹®ÀÚ¸¦ Á¦°ÅÇÑ´Ù. ¿¹) , - µîµî for (i=0; i= 0 && (object.substring(i,i+1) == ' ' || object.substring(i,i+1) == '¡¡')) i = i - 1; return object.substring(0,i+1); } //====================================================================================================== // U_Trim() : ¾çÂÊ °ø¹é Á¦°Å // call page : common // parameters : object // return : //====================================================================================================== function U_Trim(object) { return(U_LTrim(U_RTrim(object))); } //====================================================================================================== // U_isEmpty() : °ªÀÇ À¯¹« üũ // call page : common // parameters : object // return : //====================================================================================================== function U_isEmpty(object) { if (U_Trim(object) == '') return true; return false; } //====================================================================================================== // U_RPadString() : Àüüũ±â¿¡¼­ ºÎÁ·ÇÑ ¼ýÀÚ¸¸Å­ ¿À¸¥ÂÊ¿¡ ¹®ÀڷΠä¿ì±â // call page : common // parameters : object, char, length // return : //====================================================================================================== function U_RPadString(object, ch, len) { var strlen = U_Trim(object).length; var ret = ""; var alen = len - strlen; var astr = ""; for (i=0; i '9') return false; } if (MinValue != null && a < MinValue) return false; if (MaxValue != null && a > MaxValue) return false; return true; } //====================================================================================================== // U_isDateYMD() : ³¯Â¥ÀÎÁö üũ // call page : common // parameters : object // return : //====================================================================================================== function U_isDateYMD(object) { var yy,mm,dd; var y = ""; var m = ""; var d = ""; object = U_Trim(object); y = object.substring(0, 4); m = object.substring(4, 6); d = object.substring(6, 8); if ( U_isDate(y, m, d) == true ) { return true; } else { return false; } } //====================================================================================================== // U_isDate() : ³¯Â¥ÀÎÁö üũ // call page : common // parameters : year, momth, day // return : //====================================================================================================== function U_isDate(y,m,d) { var yy,mm,dd; if (!U_isNumber(y) || !U_isNumber(m) || !U_isNumber(d)) return false; yy = parseInt(y, 10); mm = parseInt(m, 10); dd = parseInt(d, 10); if (yy < 1000 ) return false; if (mm < 1 || mm > 12) return false; if (dd < 1) return false; if (mm == 1 || mm == 3 || mm == 5 || mm == 7 || mm == 8 || mm==10 || mm==12) { if (dd > 31) return false; } else if (mm==2) { if (U_isYunNyun(yy)) { if (dd > 29) return false; } else { if (dd > 28) return false; } } else if (dd > 30) return false; return true; } //====================================================================================================== // U_isDate() : ³âµµ üũ // call page : common // parameters : object // return : //====================================================================================================== function U_isYunNyun(object) { if ( (object % 4) == 0 ) { if ((object % 100) != 0) return true; if ((object % 400) == 0) return true; } return false; } //====================================================================================================== // U_date_Format() : ³¯Â¥¸¦ (2003.08.19)Çü½ÄÀ¸·Î º¯È¯ ¹× Çü½Ä Á¡°Ë // call page : common // parameters : object, formatmask // return : //====================================================================================================== function U_date_Format(object, formatmask) { var fcount = formatmask.length; var len = U_Trim(object).length; var rv = ""; object = U_Trim(object); if (len == 8) { if (object.substring(4, 5) == "." && object.substring(7, 8) == "." ) { return object; } y = object.substring(0, 4); m = object.substring(4, 6); d = object.substring(6, 8); } else if (len == 9) { if (object.substring(4, 5) == "." && object.substring(7, 8) == "." ) { return object; } else { return -1; } } else if (len == 10) { if (object.substring(4, 5) != "." || object.substring(7, 8) != "." ) { return -1; } y = object.substring(0, 4); m = object.substring(5, 7); d = object.substring(8, 10); } else { return object; } var ymd_concat = y + m + d; var ret_value = -1; if((fcount == 10) && (formatmask == "????.??.??")) { if (U_isDateYMD(ymd_concat)) { ret_value = y + "." + m + "." + d; } else { ret_value = -1; } } else { alert('Format["????.??.??"] Çü½ÄÀ» ¹Ù¸£°Ô ÀÔ·ÂÇϽʽÿä.'); ret_value = -1; } return ret_value; } //====================================================================================================== // U_isFormatDate(): ³¯Â¥Çü½Ä(2003.08.19)üũ // call page : common // parameters : object, formatmask // return : //====================================================================================================== function U_isFormatDate(obj, formatmask) { var len_ymd = U_Trim(obj).length; var fcount = formatmask.length; if (len_ymd != 10) { return -1; } if((fcount == 10) && (formatmask == "????.??.??")) { if (obj.substring(4, 5) != "." || obj.substring(7, 8) != "." ) { return -1; } y = obj.substring(0, 4); m = obj.substring(5, 7); d = obj.substring(8, 10); var ymd_concat = y + m + d; var ret_value = -1; if (U_isDateYMD(ymd_concat)) { ret_value = y + "." + m + "." + d; } else { ret_value = -1; } } else { alert('Format["????.??.??"] Çü½ÄÀ» ¹Ù¸£°Ô ÀÔ·ÂÇϽʽÿä.'); ret_value = -1; } return ret_value; } //====================================================================================================== // PageOpen(): º¸¾ÈÀ» À§ÇØ ¸µÅ©¸¦ ½ºÅ©¸³Æ® ó¸®. // call page : common // parameters : object, formatmask // return : //====================================================================================================== function PageOpen(value) { var form = document.forms[0]; var goForm = ""; //guide Åë°èµµ¿ì¹Ì if(value == "guide") { goForm = "/reform/help/npds_list.jsp" ; // ÀÚ·á½Ç } if(value == "qna") { goForm = "/reform/help/qna_list.jsp" ; //ÁúÀÇ¹× ÀÀ´ä } if(value == "faq") { goForm = "/reform/help/faq_list.jsp" ; //faq } if(value == "law") { goForm = "/reform/help/law_list.jsp" ; //À¯ÃÊÁßµî °ü·Ã¹ý·É } if(value == "univlaw") { goForm = "/reform/help/univlaw_list.jsp" ; //°íµî °ü·Ã¹ý·É } if(value == "swisslaw") { goForm = "/reform/help/swisslaw_list.jsp" ; //Ãë¾÷ °ü·Ã¹ý·É } if(value == "lifelong") { goForm = "/reform/help/lifelonglaw_list.jsp" ; //Æò»ý °ü·Ã¹ý·É } if(value == "otherslaw") { goForm = "/reform/help/otherslaw_list.jsp" ; //±âŸ¹ý·É } if(value == "customer") { goForm = "/reform/help/customer.jsp" ; // °³ÀÎÁ¤º¸ º¸È£Á¤Ã¥ } if(value == "property") { goForm = "/reform/help/property.jsp" ; // ÁöÀûÀç»ê º¸È£Á¤Ã¥ } if(value == "veto") { goForm = "/reform/help/veto.jsp" ; // À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý °ÅºÎ } if(value == "sitemap") { goForm = "/reform/help/site_map.jsp" ; // »çÀÌÆ®¸Ê } //data ´º½º ¹× º¸µµÀÚ·á if(value == "data") { goForm = "/reform/data/notice_list.jsp" ; //°øÁö»çÇ× } if(value == "news") { goForm = "/reform/data/news_list.jsp" ; //º¸µµÀÚ·á } if(value == "notice") { goForm = "/reform/data/notice_list.jsp" ; //°øÁö»çÇ× } //education ±³À°Åë°è¼Ò°³ if(value == "project") { goForm = "/reform/education/edu_project.jsp" ; } if(value == "intro1") { goForm = "/reform/education/edu_intro1.jsp" ; } if(value == "intro2") { goForm = "/reform/education/edu_intro2.jsp" ; } if(value == "intro3") { goForm = "/reform/education/edu_intro3.jsp" ; } if(value == "history") { goForm = "/reform/education/edu_history.jsp" ; } if(value == "element") { goForm = "/reform/education/edu_element.jsp" ; } if(value == "high") { goForm = "/reform/education/edu_high.jsp" ; } if(value == "job1") { goForm = "/reform/education/edu_job1.jsp" ; } if(value == "job2") { goForm = "/reform/education/edu_job2.jsp" ; } if(value == "job3") { goForm = "/reform/education/edu_job3.jsp" ; } if(value == "job4") { goForm = "/reform/education/edu_job4.jsp" ; } if(value == "job5") { goForm = "/reform/education/edu_job5.jsp" ; } if(value == "job6") { goForm = "/reform/education/edu_job6.jsp" ; } if(value == "nation") { goForm = "/reform/education/edu_nation.jsp" ; } if(value == "edu_life") { goForm = "/reform/education/edu_life.jsp" ; } if(value == "org") { goForm = "/reform/education/edu_org.jsp" ; } if(value == "map") { goForm = "/reform/education/edu_map.jsp" ; } //Site ±³À°°ü·Ã »çÀÌÆ® if(value == "city") { goForm = "/reform/Site/site_city.jsp" ; } if(value == "relation") { goForm = "/reform/Site/site_relation.jsp" ; } if(value == "kedi") { goForm = "/reform/Site/site_kedi.jsp" ; } //number Åë°è°ü·Ã»çÀÌÆ® if(value == "domestic") { goForm = "/reform/number/domestic_stat.jsp" ; //·Î±×ÀÎ È­¸é } if(value == "outsea") { goForm = "/reform/number/outsea_stat.jsp" ; //ȸ¿ø°¡ÀÔÆû } //login ·Î±×ÀÎ & ȸ¿ø°¡ÀÔ if(value == "member") { goForm = "/reform/member/member.jsp" ; //·Î±×ÀÎ È­¸é } if(value == "agreement") { goForm = "/reform/member/member_agreement.jsp" ; //ȸ¿ø°¡ÀÔÆû } if(value == "form") { goForm = "/reform/member/member_form.jsp" ; } if(value == "find") { goForm = "/reform/member/id.jsp" ; } if(value == "statisics") { goForm = "/reform/edu/statisics_main.jsp" ; } if(value == "member_modify") { goForm = "/reform/member/member_modify.jsp" ; } form.action = goForm; form.submit(); } //====================================================================================================== // PageOpen(): º¸¾ÈÀ» À§ÇØ ¸µÅ©¸¦ ½ºÅ©¸³Æ® ó¸® END. // call page : common // parameters : object, formatmask // return : //====================================================================================================== /**************************************************************************************************104*/ /* End of File */ /**************************************************************************************************104*/