function Flash(Ftrans,wid,hei) {//풀다운메뉴 document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } function Flex(src,width,height){ document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); } //아이프레임 리사이즈 function RESIZETO(width){ //사용시에 아이디를 필히 입력해야한다 var height=document.body.scrollHeight; var width=document.body.scrollWidth; var name=this.name; parent.document.getElementById(name).style.height=height+"px"; } //숫자만 입력 function int_format(form){ if(isNaN(form.value)){ // alert("숫자만 입력하세요"); form.value=parseInt(form.value); if(form.value=="NaN")form.value=""; return; } } //금액 나타내는 함수 function number_format(form){ if(event.keyCode!=9){//텝키일경우 생략 if(!form.value)form.value="0"; var varTotalSize; varTotalSize=form.value.replace(/,/gi,"");//,제거 varTotalSize=parseInt(varTotalSize);//숫자형태로 변환 varTotalSize=varTotalSize.toLocaleString().split(".")[0]; form.value=varTotalSize; } } function date_format(form){//일을 입력할때 if(event.keyCode==9);//텝키일경우 생략 var date=form.value; if(form.value.length==4){ date=form.value+"-"; } if(form.value.length==7){ date=form.value+"-"; } form.value=date; } function month_format(form){//월을 입력할때 if(event.keyCode==9);//텝키일경우 생략 var date=form.value; if(form.value.length==4){ date=form.value+"-"; } form.value=date; } function sec_format(form){//시분초 까지 입력 if(event.keyCode==9);//텝키일경우 생략 var date=form.value; if(form.value.length==4){ date=form.value+"-"; } if(form.value.length==7){ date=form.value+"-"; } if(form.value.length==10){ date=form.value+" "; } if(form.value.length==13){ date=form.value+":"; } if(form.value.length==16){ date=form.value+":"; } form.value=date; } //주민번호 형식 function Jumin(jumin1,jumin2){//주민등록번호 형식 juminNo = new Array(13); var i; var jumin_str = jumin1+jumin2; for(i=0;i<13;i++){ juminNo[i] = jumin_str.substr(i,1); } var TotNo = juminNo[0]*2 + juminNo[1]*3 + juminNo[2]*4 + juminNo[3]*5 + juminNo[4]*6 + juminNo[5]*7 + juminNo[6]*8 + juminNo[7]*9 + juminNo[8]*2 + juminNo[9]*3 + juminNo[10]*4 + juminNo[11]*5; var tempNo = TotNo % 11; var resultNo = 11 - tempNo; if(resultNo >= 10){ resultNo = resultNo % 10; } if(eval(juminNo[12]) != resultNo){ return false; }else{ return true; } } function EngNumCheck(str,form){//숫자 영문 체크함수 if((/[^(A-Z)^(a-z)^(0-9)]/).test(str)){ alert("영문과 숫자만 사용하세요"); form.value=""; return; } } function EmailCheck(email){ if(email > 0){ var regExp = /[a-z0-9]{2,}@[a-z0-9-]{2,}\.[a-z0-9]{2,}/i; if(!regExp.test(email)){ alert("잘못된 e-mail 형식입니다."); return false; } } } //Trim() 함수 String.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/gi, ""); } function zipSearch(frm_name, dir, frm_zip1, frm_zip2, frm_addr1, frm_addr2){ url = dir+'confirm_zip.php?frm_name='+frm_name+'&frm_zip1='+frm_zip1+'&frm_zip2='+frm_zip2+'&frm_addr1='+frm_addr1+'&frm_addr2='+frm_addr2; opt = 'scrollbars=yes,width=580,height=170'; window.open(url, "mbzip", opt); } function RightLayerOut(num){//평상시 if(!num){ setTimeout("RightLayerOut(1)",1000) }else{ _RIGHTMENU1.style.display="block"; _RIGHTMENU2.style.display="none"; } } function RightLayerOver(num){//오버되었을때 _RIGHTMENU1.style.display="none"; _RIGHTMENU2.style.display="block"; } var only_key_code=""; var only_Content=""; function ShowGoods(key_code){//말풍성 var Content=""; if(only_key_code!=key_code){//값이 값을경우 실행 하지 않아서 로딩을 한번만 하게 한다 only_Content=""; } var s_y=document.body.scrollTop;//스크롤 했을경우에도 계산한다 var x=event.clientX; var y=event.clientY; document.getElementById("_ShowGoods").style.left=x-20; document.getElementById("_ShowGoods").style.top=y+s_y-20; _ShowGoods.innerHTML=only_Content; only_key_code=key_code; } function ShowGoodsNull(){ _ShowGoods.innerHTML=""; } function LODING(){//로딩바를 위한 함수 var IMG=""; IMG+=""; document.body.lastChild.insertAdjacentHTML("afterEnd",IMG); document.getElementById("_MODAL").style.display="block"; document.getElementById("_BACK").style.height=screen.availHeight; document.getElementById("_BACK").style.width=screen.availWidth-20; } function fileFilter( obj , ext){//파일을 걸러주는 함수 fileFilter(this,'jpg&png&gif') var filterStr = new Array(); ext=ext.toUpperCase(); filterStr=ext.split("&"); var str = obj.value.substring(obj.value.lastIndexOf(".")+1).toUpperCase(); for(i=0; i