$(document).ready(function() { $(".gnb_item").hover(function(){ $(".sub_nav").addClass('open_menu'); $(".nav_sec").addClass('open_menu'); }); $(".nav_close").click(function(){ $(".sub_nav").removeClass('open_menu'); $(".nav_sec").removeClass('open_menu'); }); $(".gnb_box").mouseleave(function(){ $(".sub_nav").removeClass('open_menu'); $(".nav_sec").removeClass('open_menu'); }); }); /* $(function(){ //$("ul.tab li a.active").attr("href")+")").show() $(".tabs_sec .tab_lst:not("+$(".page_tab ul li a.active").attr("href")+")").hide(); $(".page_tab ul li a").click(function(){ $(".page_tab ul li a").removeClass("active"); $(this).addClass("active"); $(".tabs_sec .tab_lst").hide(); $($(this).attr("href")).show(); return false; }); }); */ function MM_openBrWindow(theURL,features) { window.open('http://'+theURL,features); } // -> ¹®ÀÚ°ª üũ Start /*------------------------------------------------------- Usage : valid_basic(oName,oText,isHan,sSpecial,eChar,isNum,iMin,iMax,is2Byte) Usage : valid_limit(oText,isHan,sSpecial,eChar,isNum,iMax,is2Byte) 1 -- Á¶°Ç¿¡ À§¹èµÇ´Â°ÍÀº ¹«Á¶°Ç ¸®ÅÏ Author: 20000714 P.C.S ------------------------------------------------------- oName -> ¿ÀºêÁ§Æ®ÀÇ Label¸í (Error󸮸¦ À§ÇØ) oText -> ¿ÀºêÁ§Æ® isHan -> Çѱۿ©ºÎüũ 0:󸮾ÈÇÔ 1:ó¸® sSpecial -> Ư¼ö¹®ÀÚüũ 0:󸮾ÈÇÔ 1:ó¸® eChar -> ¿¹¿Üó¸® 0:󸮾ÈÇÔ 1:ó¸® isNum -> ¼ýÀÚüũ 0:󸮾ÈÇÔ 1:ó¸® iMin -> ÃÖ¼ÒÀÚ¸®¼ö ÃÖ¼ÒÀÚ¸®°ª(integer) iMax -> ÃÖ´ëÀÚ¸®¼ö ÃÖ´ëÀÚ¸®°ª(integer) is2Byte -> 2Byte¹®ÀÚüũ 0:󸮾ÈÇÔ 1:ó¸® -------------------------------------------------------*/ var sSpecial_0 = 0; var sSpecial_1 = 1; var isHan_0 = 0; var isHan_1 = 1; var isNum_0 = 0; var isNum_1 = 1; var eChar_0 = 0; var eChar_1 = 1; var is2Byte_0 = 0; var is2Byte_1 = 1; function valid_basic(oName,oText,isHan,sSpecial,eChar,isNum,iMin,iMax,is2Byte) { // alert("oText.value:"+oText.value); sStr=oText.value; rLen=sStr.length; iLen=sStr.length-1; check_flag=0; mTxt=''; if(eChar == 'Default') eChar = " ,./;:<>[]{}()-_*&%$#@!?~+|\^="; else if(eChar == 'Add_Quot') eChar = " ',./;:<>[]{}()-_*&%$#@!?~+|\^="; else if(eChar == 'Simple') eChar = " ,./;:<>[]{}()-_*&%$#@!?~+|\^="; eChar_temp=eChar+''; escape_val=eChar_temp; escape_length=eChar_temp.length; if (escape_val!='0' && escape_length > 0) { check_flag=1; for(i=0;i0) { alert_msg(oText,'There is a non-numeric value in \''+oName+'\''); return 0; } } for (i=0,j=0,k=0,l=0;i<=iLen;i++) { comp=parseInt(sStr.charCodeAt(i),10); if ((comp > 126 && comp < 12593) || (comp > 12634 && comp < 40000) || comp > 60000) { j++; l++; } else if (comp >= 10000) { j++; k++; } } cmpLen=rLen+j; if (isHan==1) if (k>0) { alert_msg(oText,'There is Hangul in \''+oName+'\''); return 0; } if (is2Byte==1) if (l>0) { alert_msg(oText,'There is a 2Byte character in \''+oName+'\''); return 0; } cmpLen=rLen+j; // Àüü Length if (!(cmpLen >= iMin && cmpLen <= iMax)) { // alert_msg(oText,'\''+oName+'\' ÀÇ °ªÀÌ ÀԷµÇÁö ¾Ê¾Ò°Å³ª ÀÚ¸´¼ö°¡ \rÇÑ°èÄ¡(ÃÖ¼Ò:'+iMin+'/ÃÖ´ë:'+iMax+') ¸¦ ¹þ¾î³³´Ï´Ù.'); alert_msg(oText,'The value of \''+oName+'\' is not entered or the number of digits is out of the limit'); return 0; } if (sSpecial==1) { var szArray=new Array('~','`','!','@','#','$','%','^','&','*','(',')','-','_','+','=','|','\\','[',']','{','}',';',':','"','\'','<',',','>','.','/','?',' '); izLen=szArray.length; k=0; for (i=0,j=0;i<=iLen;i++) for (j=0;j0) { if (check_flag==1) alert_msg(oText,'There are '+k+' special characters or spaces in \''+oName+'\' \r Available special characters are \''+mTxt+'\''); else alert_msg(oText,'There are '+k+' special characters or spaces in \''+oName+'\''); return 0; } } return 1; } // -> alert + select + focus function alert_msg(obj,msg) { alert(msg); //obj.value=''; obj.select(); obj.focus(); }