// form.reset function formClear(Obj) { Obj.reset(); } //°´Ã¼ È°¼º,ºñÈ°¼º ¼³Á¤ ÇÔ¼ö function showObject(Obj,Boolen) { if(Boolen){ //È°¼ºÈ­ Obj.disabled = false; Obj.style.background = "#ffffff"; } else{ //ºñÈ°¼ºÈ­ Obj.disabled = true; Obj.style.background = "#dddddd"; } } //°´Ã¼ È°¼º,ºñÈ°¼º ¼³Á¤ ÇÔ¼ö function checkshowObject(Obj,Boolen) { Boolen ? Obj.disabled = false: Obj.disabled = true; } /* ¹è¿­ ó¸® ÇÔ¼ö */ //Ãß°¡ function addArray(Obj,Val) { var arrLength= Obj.length; Obj[arrLength] = Val; } //»èÁ¦ function delArray(Obj,Index) { var temp=new Array(); var nextIndex = Index +1; for(i=0,j=0;i 128) { Re=true; } } return Re; } //ÆÄÀϸí ÇÑ±Û Ã¼Å© function filehanCheck(Str) { var Arr = new Array(); var Re=false; Arr=Str.split("\\"); return hanCheck(Arr[Arr.length-1]); } //¼ýÀÚüũ function numCheck(Str) { var Re=true; for(i=0;i57) Re=false; } return Re; } //¿¬¶ôóüũ function telCheck(Tel1, Tel2, Tel3){ var Re=true; if(!numCheck(Tel1) ||!numCheck(Tel2) ||!numCheck(Tel3) ) Re = false; else if(Tel1.length <2 || Tel1.length >3) Re = false; else if(Tel2.length <3 || Tel2.length >4) Re = false; else if(Tel3.length <4 || Tel3.length >4) Re = false; return Re; } //Áֹεî·Ï¹øÈ£ üũ function bsshChek(str_jumin1,str_jumin2) { var i3=0; var re_value=true; for (var i=0;i'9') { i3=i3+1 } } if ((str_jumin1 == '') || ( i3 != 0 )) re_value=false; var i4=0; for (var i=0;i'9') { i4=i4+1 } } if ((str_jumin2 == '') || ( i4 != 0 )) re_value=false; if(str_jumin1.substring(0,1) < 4) re_value=false; if(str_jumin2.substring(0,1) > 2) re_value=false; if((str_jumin1.length > 7) || (str_jumin2.length > 8)) re_value=false; if ((str_jumin1 == '72') || ( str_jumin2 == '18')) re_value=false; var f1=str_jumin1.substring(0,1) var f2=str_jumin1.substring(1,2) var f3=str_jumin1.substring(2,3) var f4=str_jumin1.substring(3,4) var f5=str_jumin1.substring(4,5) var f6=str_jumin1.substring(5,6) var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7 var l1=str_jumin2.substring(0,1) var l2=str_jumin2.substring(1,2) var l3=str_jumin2.substring(2,3) var l4=str_jumin2.substring(3,4) var l5=str_jumin2.substring(4,5) var l6=str_jumin2.substring(5,6) var l7=str_jumin2.substring(6,7) hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5; hap=hap%11; hap=11-hap; hap=hap%10; if (hap != l7) re_value=false; var i9=0; return re_value; } //À̸ÞÀÏüũ function isEmail(str) { var supported = 0; if (window.RegExp) { var tempStr = "a"; var tempReg = new RegExp(tempStr); if (tempReg.test(tempStr)) supported = 1; } if (!supported) return (str.indexOf(".") > 2) && (str.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(str) && r2.test(str)); } function zoom2(File,Width,Height) { if(!Width || !Height){ alert("À̹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª À̹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù."); }else{ window.open("zoom2.php?idx="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200"); } } function zoom(File,Width,Height) { if(!Width || !Height){ alert("À̹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª À̹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù."); }else{ window.open("zoom.php?img="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200"); } }