     function WriteEmbed(emb_id){
         document.write(document.getElementById(emb_id).value);
     }

     function onlyNum(){
       if((event.keyCode<48)||(event.keyCode>57)){
           event.returnValue=false;
       }
     }

     function ordazipcode_v06(){
       var location = '/member/pop-address.php';
       window.open(location,"idchk","top=50,left=130,width=400,height=310,scrollbars=no,resizable=no")
     }

     function ordazipcode_Evnt(){
       var location = '../../../community/pop-address.php';
       window.open(location,"EvntAddr","top=50,left=130,width=400,height=310,scrollbars=no,resizable=no").focus();
     }


     function GetFileDown(pmkey, dir, file_name, file_real){
       var location = 'FileDown.html?Pmkey=' + pmkey + '&Dir=' + dir + '&Filename=' + file_name + '&Filereal=' + file_real;
       window.open(location,"getfiledown","top=1,left=1,width=1,height=1,scrollbars=no,resizable=yes,toolbars=no")
       window.self.close();
     }

     function CommentCheckForm(form){
       if(Comment.Content.value==''){
         alert('내용을 입력하세요!');
	 Comment.Content.focus();
         return false;
       } else{
         return true;
       }
     }


		function first_window() {
		  win = window.open('/first_Set60/ex.html','', 'fullscreen=yes' );
		  win.focus();
		}


     function click() {
       if (event.button==2 || event.button==1+2 || event.button==2+1) {
          alert('오른쪽 버튼은 사용을 하실수 없습니다.')
       }
     }

     //오라클에서 우편번호 찾기
     function setocizipcode( post_no, addr){
        window.opener.document.ordaForm.post_no.value = post_no;
        window.opener.document.ordaForm.addr1.value = addr;
        self.window.close();
     }

     function SetAddr() {
	var f = document.forms[0];
	var nSelected = f.addrlist.selectedIndex;
	if (nSelected < 0) {
		alert("선택된 주소가 없습니다.\n\n목록에서 원하는 주소를 선택한 후 [확인] 버튼을 눌러주십시오.");
		return false;
	}
	var rAddr = new Array();
	rAddr = f.addrlist[f.addrlist.selectedIndex].value.split("/");
        window.opener.document.ordaForm.post_no.value = rAddr[0]+rAddr[1];
        window.opener.document.ordaForm.addr1.value = rAddr[2] + " " + rAddr[3] + " " + rAddr[4];
        window.opener.document.ordaForm.addr2.value = "";
	//var of = opener.document.forms[0];
	//of.homezipfirst.value = rAddr[0];
	//of.homeziplast.value = rAddr[1];
	//of.homeaddrauto.value = rAddr[2] + " " + rAddr[3] + " " + rAddr[4];
	//of.homeaddrdetail.focus();
	close();
	//return false;
     }

      function SetAddrEvnt() {
	var f = document.forms[0];
	var nSelected = f.addrlist.selectedIndex;
	if (nSelected < 0) {
		alert("선택된 주소가 없습니다.\n\n목록에서 원하는 주소를 선택한 후 [확인] 버튼을 눌러주십시오.");
		return false;
	}
	var rAddr = new Array();
	rAddr = f.addrlist[f.addrlist.selectedIndex].value.split("/");
        window.opener.document.EventForm.ZipCode1.value = rAddr[0]
        window.opener.document.EventForm.ZipCode2.value = +rAddr[1];
        window.opener.document.EventForm.Add1.value = rAddr[2] + " " + rAddr[3] + " " + rAddr[4];

	close();
	//return false;
     }


     function prev_imgview(wt, ht)
     {
        img_pre = 'pre';
        if(event.srcElement.value.match(/(.jpg|.jpeg|.gif|.png|.bmp)/)) {
           document.images[img_pre].src = event.srcElement.value;
           document.images[img_pre].style.width = wt;
           document.images[img_pre].style.height = ht;
           document.images[img_pre].style.display = '';
        } else {
           document.images[img_pre].style.display = 'none';
        }
     }

     function PopPicture(Ws, Hs, Dir, pmkey){
            var parm = 'left=0, top=0, width=' + Ws + ' , height=' + Hs +', scrollbars=yes';
            var url = 'ViewPicture.html?tblname=' + Dir + '&Ws=' + Ws + '&Hs=' + Hs + '&Dir=' + Dir + '&Pmkey=' + pmkey;
            window.open(url, 'PopP', parm);
     }


     //document.onmouseup=click
     //document.onmousedown=click

     function GoASNet(cust_id){
       if(!cust_id){
         alert('로그인 하신후 이용하세요');
       } else if(cust_id.length != 8) {
         alert('로그인 하신후 이용하세요');
       } else {
       	// htdocs2/script 밑에 있음
         var location = 'http://116.40.194.197/asnet/default.aspx?S_CUST_ID=' + cust_id;
        window.open(location,"asnet","top=50,left=130,width=740,height=500,scrollbars=yes,resizable=no,status=yes")
       }
     }

	//팝업
	function popup() {
	window.open("popup/090617/popup091617.htm","ebs","width=300, height=290"); }


