


	function zb_login_check_submit() {
		if(!document.zb_login.user_id.value) {
			alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä\n\n::::::: Feelis :::::::");
			document.zb_login.user_id.focus();
			return false;
		}
		if(!document.zb_login.pass.value) {
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä\n\n::::::: Feelis :::::::");
			document.zb_login.pass.focus();
			return false;
		}  
		return true;
	} 
	
	function check_autologin() { 
		if (document.zb_login.auto_login.checked==true) {
			var check;  
			check = confirm("ÀÚµ¿ ·Î±×ÀÎ ±â´ÉÀ» »ç¿ëÇÏ½Ã°Ú½À´Ï±î?\n\nÀÚµ¿ ·Î±×ÀÎ »ç¿ë½Ã ´ÙÀ½ Á¢¼ÓºÎÅÍ´Â ·Î±×ÀÎÀ» ÇÏ½ÇÇÊ¿ä°¡ ¾ø½À´Ï´Ù.\n\n´Ü, °ÔÀÓ¹æ, ÇÐ±³µî °ø°øÀå¼Ò¿¡¼­ ÀÌ¿ë½Ã °³ÀÎÁ¤º¸°¡ À¯ÃâµÉ¼ö ÀÖÀ¸´Ï ÁÖÀÇÇØÁÖ¼¼¿ä");
			if(check==false) {document.zb_login.auto_login.checked=false;}
		}                               
	}  

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
    {
            toolbar_str = toolbar ? 'yes' : 'no';
            menubar_str = menubar ? 'yes' : 'no';
            statusbar_str = statusbar ? 'yes' : 'no';
            scrollbar_str = scrollbar ? 'yes' : 'no';
            resizable_str = resizable ? 'yes' : 'no';
            window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
    }
       
 function view_notice(url){window.open(url,'popup','toolbar=no, location=no, status=no, menubar=no, scrollbars=auto, resizable=yes, width=400, height=375');		
            }

 function view_survey(url){window.open(url,'popup','toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=400, height=220');		
            }

 function view_memo(url){window.open(url,'popup','width=550,height=300,top=0,left=220,scrollbars=auto');		
            }

 function my_scd(url){window.open(url,'popup','toolbar=no, location=no, status=no, menubar=no, scrollbars=no, resizable=no, width=400, height=220');		
            }


function imgResize(img){ 
  img1= new Image(); 
  img1.src=(img); 
  imgControll(img); 
} 

function imgControll(img){ 
  if((img1.width!=0)&&(img1.height!=0)){ 
    viewImage(img); 
  } 
  else{ 
    controller="imgControll('"+img+"')"; 
    intervalID=setTimeout(controller,20); 
  } 
} 

function viewImage(img){ 
        W=img1.width; 
        H=img1.height+21; 
        O="width="+W+",height="+H; 
        imgWin=window.open("0","0",O); 
        imgWin.document.write("<html><head><title>::::::: Feelis ::::::: Specialist for LED Light Panel / Illuminated Sign and Display / Acrylic Processing</title></head>"); 
        imgWin.document.write("<body topmargin=0 leftmargin=0 oncontextmenu='return false' ondragstart='return false' onselectstart='return false'>"); 
        imgWin.document.write("<img src="+img+" alt='Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù' onClick='self.close()' style='cursor:hand'><br><div align=center><a href=javascript:self.close()><img src=http://www.feelis.com/img/b_close.gif border=0></a></div>"); 
        imgWin.document.close(); 
} 




function msgset(str){
var text ;
text = "<table border='1' cellspacing='0' cellpadding='0' bordercolorlight='#c0c0c0' bordercolordark='white'> <tr bgcolor=f4f4f4><td>" + str + "</td></tr></table>";
message.innerHTML=text; 
}

function msgposit(){ 
message.style.posLeft = event.x + 20 + document.body.scrollLeft ;
message.style.posTop = event.y - 20 + document.body.scrollTop ;
} 

function msghide(){ 
message.innerHTML='' ;
} 

function viewimg(filename){
  var a ;
	 a =  window.open( filename, "WIN_SUB", "menubar=0,screenX=100,screenY=100,toolbar=0,location=0,directory=0,scrollbars=0,resizable=0,width=620,height=630" );
	 a.focus();
  }

function changeImage(imageUrl)
	{
		if (document.images.middleImage)
			document.images.middleImage.src = imageUrl;
	}


function fncOpenWin01(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa01", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin02(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa02", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin03(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa03", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin04(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa04", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin05(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa05", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin06(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa06", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin07(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa07", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}


function fncOpenWin08(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa08", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}

function fncOpenWin09(strUrl, intW, intH, blnPos, blnScroll) 
{
	var Win;
	var strScroll;
	
	if (blnPos == 0)
	{
				
		var strLeft = 0	// »õÃ¢À» È­¸é ¿ÞÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = 0	// »õÃ¢À» È­¸é À§ÂÊÀ¸·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)		
	}
	
	else if (blnPos == 2)
	{
				
		var strLeft = (window.screen.width +500) + intW	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height +500) +intH 	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	else	
	{
				
		var strLeft = (window.screen.width / 2) - (intW / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(°¡·ÎÀ§Ä¡)
		var strTop = (window.screen.height / 2) - (intH / 2)	// »õÃ¢À» È­¸é °¡¿îµ¥·Î À§Ä¡ÇÏ°Ô(¼¼·ÎÀ§Ä¡)
	}
	
	
	
	
	
	if(blnScroll == 0)
	{
		strScroll = 'no';
	}
	else
	{
		strScroll = 'yes';
	}
	
	Win = window.open(strUrl, "durizoa09", "width=" + intW + ", height=" + intH + ", top="+ strTop +", left="+ strLeft +", scrollbars="+ strScroll);
	Win.focus();
		
}

function checknorm_nomsg(target, cmt, astr, lmax) {
  	var i;
  	var t = target.value;

  	if (astr.length >= 1) {
        	for (i=0; i<t.length; i++)
                	if(astr.indexOf(t.substring(i,i+1))<0) {
        			return true;
      			}
  	}
        return false;
}




function alphanum(name) 
{
    var ch = "\0";
    var flag = true;
 
    for (var i = 0, ch = name.charAt(i);  (i <name.length) && (flag); ch = name.charAt(++i)) 
    {
        if ((ch >= '0') && (ch <= '9')) 
             ;
        else if ((ch >= 'a') && (ch <= 'z')) 
             ;
        else if ((ch >= 'A') && (ch <= 'Z')) 
             ;
        else  
             flag = false;
    }
    return (flag);
}

function korean(name)
{
    var ch = "\0";
    var flag = true;
 
    for (var i = 0, ch = name.charAt(i);  (i <name.length) && (flag); ch = name.charAt(++i)) 
    {
        if ((ch >= '0') && (ch <= '9')) 
             flag = false;
        else if ((ch >= 'a') && (ch <= 'z')) 
             flag = false;
        else if ((ch >= 'A') && (ch <= 'Z')) 
             flag = false;
        else if ( ch == ' ' || ch == '~' || ch == '`' || ch == '\\'|| 
                  ch == '-' || ch == '_' || ch == '|' || ch == '+' ||
                  ch == '=' || ch == ',' || ch == '.' || ch == '/' ||
                  ch == '<' || ch == '>' || ch == '?' || ch == '!' ||
                  ch == '@' || ch == '#' || ch == '$' || ch == '%' || 
                  ch == '^' || ch == '&' || ch == '*' || ch == '(' || 
                  ch == ')' || ch == '\"' || ch == '[' || ch == '(' )
             flag = false; 
    }
    return (flag);
}

function digit(name) 
{
    var ch = "\0";
    var flag = true;
 
    for (var i = 0, ch = name.charAt(i);
        (i <name.length) && (flag); ch = name.charAt(++i)) {
        if ((ch >= '0') && (ch <= '9')) 
             ;
        else
             flag = false;
    }
    return flag;  
}

function digit1(name) 
{
    var ch = "\0";
    var flag = true;
 
    for (var i = 0, ch = name.charAt(i);
        (i <name.length) && (flag); ch = name.charAt(++i)) {
        if ((ch >= '0') && (ch <= '9')) 
             ;
        else

         if (ch = '-')
             ;
         else
             flag = false;
    }
    return flag;  
}




function checkupform()
{
  if (document.theform.pass.value=="")
	{	
    alert ("ºñ¹Ð¹øÈ£¸¦ ±âÀÔÇØ ÁÖ¼¼¿ä")
    document.theform.pass.focus()
	}	

  else if (document.theform.confirmpass.value=="")
  {
  	alert ("È®ÀÎºñ¹Ð¹øÈ£¸¦ ±âÀÔÇØ ÁÖ¼¼¿ä")
    document.theform.confirmpass.focus()  	
	}	

  else if (document.theform.pass.value != document.theform.confirmpass.value)
	{
  	alert ("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.")
    document.theform.pass.focus()
	}	
  	
  else if (document.theform.user_hp1.value==""  || (!digit(theform.user_hp1.value)))
  {
    alert ("ÀÌµ¿ÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_hp1.focus()    
	}	

  else if (document.theform.user_hp2.value==""  || (!digit(theform.user_hp2.value)))
  {
    alert ("ÀÌµ¿ÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_hp2.focus()    
	}	

  else if (document.theform.user_hp3.value==""  || (!digit(theform.user_hp3.value)))
  {
    alert ("ÀÌµ¿ÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_hp3.focus()    
	}	

  else if (document.theform.user_tel1.value==""  || (!digit(theform.user_tel1.value)))
  {
    alert ("ÀÏ¹ÝÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_tel1.focus()    
	}	

  else if (document.theform.user_tel2.value==""  || (!digit(theform.user_tel2.value)))
  {
    alert ("ÀÏ¹ÝÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_tel2.focus()    
	}	

  else if (document.theform.user_tel3.value==""  || (!digit(theform.user_tel3.value)))
  {
    alert ("ÀÏ¹ÝÀüÈ­¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù")
    document.theform.user_tel3.focus()    
	}	

  else if (document.theform.email.value=="")
  {
    alert ("E-mailÀ» ±âÀÔÇØ ÁÖ¼¼¿ä")
    document.theform.email.focus()    
	}	

  else if (document.theform.user_bankname.value=="")
  {
    alert ("°Å·¡ÀºÇàÀ» ±âÀÔÇØ ÁÖ¼¼¿ä")
    document.theform.user_bankname.focus()    
	}	

  else if (document.theform.user_bankno.value=="")
  {
    alert ("°èÁÂ¹øÈ£¸¦ ±âÀÔÇØ ÁÖ¼¼¿ä")
    document.theform.user_bankno.focus()    
	}	

  else 
  {
    if(isvalid(document.theform.email) != true) 
    {
    alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ Àß¸øµÇ¾ú½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
    document.theform.email.focus()
    }
    else
    {
  	document.theform.submit()
  	}
  }
}




function init()
{
	document.check_id_form.check_id.value = top.opener.register_form.user_id.value;
}





function id_popup_check(){
   str = document.theform.user_id.value;
   if (str == null || str == "" ) {
      alert("È®ÀÎÇÏ°íÀÚ ÇÏ½Ã´Â ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
      document.theform.user_id.focus();
      document.theform.user_id.select();
   }

  else if (theform.user_id.value.length < 4 || theform.user_id.value.length > 12 || (!alphanum(theform.user_id.value))) 
  { 
      alert("¾ÆÀÌµð : Æ¯¼ö¹®ÀÚ¸¦ Á¦¿ÜÇÑ 4 ¡­ 12ÀÚÀÇ ¿µ¹® ¶Ç´Â ¼ýÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
      theform.user_id.select();
  } 

   else {
      var id_check_win =
          window.open("check_id_proc.asp?user_id="+str,
                      "id_check_win",
                      "width=250,height=120,top=180,left=350");
      id_check_win.focus();
   }
}

function set_user_id(selected_user_id) {
  document.theform.id.value = selected_user_id;
  document.theform.pass.focus();
}



function checkSN (sn1, sn2) {
	if (sn1 == '' || sn2 == '') {
		return false;
	}
	if (sn1.length != 6 || sn2.length != 7){
		return false;
	}
	if (sn1.substring(2,3) > 1 || sn1.substring(4,5) > 3 || 
		sn2.substring(0,1) > 4 || sn2.substring(0,1) == 0 ) {
		 return false;   
	}	
	var digit=0;
	for (var i=0;i<sn1.length;i++) {
		var str_dig=sn1.substring(i,i+1);
		if (str_dig<'0' || str_dig>'9') {
			return false;
		}
	}
	var digit1=0
	for (var i=0;i<sn2.length;i++){
		var str_dig1=sn2.substring(i,i+1);
		if (str_dig1<'0' || str_dig1>'9'){ 
			return false;
		}
	}
	
	var a1=sn1.substring(0,1);
	var a2=sn1.substring(1,2);
	var a3=sn1.substring(2,3);
	var a4=sn1.substring(3,4);
	var a5=sn1.substring(4,5);
	var a6=sn1.substring(5,6);
	         
	var check_digit=a1*2+a2*3+a3*4+a4*5+a5*6+a6*7;

	var b1=sn2.substring(0,1);
	var b2=sn2.substring(1,2);
	var b3=sn2.substring(2,3);
	var b4=sn2.substring(3,4);
	var b5=sn2.substring(4,5);
	var b6=sn2.substring(5,6);
	var b7=sn2.substring(6,7);
         
	var check_digit=check_digit+b1*8+b2*9+b3*2+b4*3+b5*4+b6*5 ;
	        
	check_digit = check_digit%11;
	check_digit = 11 - check_digit;
	check_digit = check_digit%10;

	if (check_digit != b7) {
		return false;   
	}
	return true;
}

function isvalid(str) {
if (str.value.indexOf("@") + "" !="-1" &&
str.value.indexOf(".") + "" !="-1" &&
str.value !="")
return true;
else 
return false;
}


function openwindow(servicetype){
	window.open('/admin/site/'+servicetype+'.htm', 'm7_openwindow','resizable=yes,scrollbars=yes,x=100,y=100,width=450,height=450');
}
function checkemail(email)
{
window.open('duplicate.asp?email=' + email,'', 'resizable=no,scrollbars=yes,x=100,y=100,width=430,height=390');
}


function openwin(url,chat01){
wins=window.open(url,chat01,'width=700,height=415,left=150,top=150,scrollbars=no');
wins.focus();
}









function toggle(iObject)
{ 
	if (iObject.style.display != "none") 
		iObject.style.display = "none" 
	else 
		iObject.style.display = ""
} 



//-->



function login()
{
  if (document.theform.user_id.value=="")
	{	
    alert ("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Å ÈÄ È®ÀÎÇÏ¼¼¿ä")
    document.theform.user_id.focus()
	}	

  else if (document.theform.user_pass.value=="")
  {
    alert ("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Å ÈÄ È®ÀÎÇÏ¼¼¿ä")
    document.theform.user_pass.focus()
	}	
    else
    {
  	document.theform.submit()
  	}

}



var Board = null;
function newwin01( view ) {
    Board = window.open('', 'Board', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=550,height=230,left=220, top=0');
    Board.focus();
    return;
}


var lotto = null;
function newwin( luck ) {
    lotto = window.open('', 'lotto', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=384,height=500,left=318, top=0');
    lotto.focus();
    return;
}



var search = null;
function searchmem( view ) {
    search = window.open('', 'search', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=300,height=180,left=350, top=180');
    search.focus();
    return;
}




 function openInfo(url)
{
window.open(url,'popup','width=750,height=800,top=0,left=0,resizable=0,scrollbars=yes');		
}



var proc_ing = 0;

function openWelcomeWin()
{
        window.open("./popup/call/itemv01.html","WelcomeWin","width=300,height=354,left=0,top=0,toolbar=no,directories=no,status=no scrollbars=no,resizable=0,menubar=no")
}


function openeventWin()
{
        window.open("./popup/call/itemv03.html","eventWin","width=384,height=590,left=320,top=0,toolbar=no,directories=no,status=no scrollbars=no,resizable=0,menubar=no")
}


function openlottoWin()
{
        window.open("/lotto.asp","lottoWin","width=384,height=500,left=320,top=0,toolbar=no,directories=no,status=no scrollbars=no,resizable=0,menubar=no")
}



function toppop(url,name,width,height,scrollbars,resizable) {
        msgWindow=window.open(url,name,'scrollbars='+scrollbars+',resizable='+resizable+',width='+width+',height='+height);
        msgWindow.focus();
}




 function opennews1(url)
{
window.open(url,'popup','width=600,height=200,top=180,left=350,toolbar=no,directories=no,status=no scrollbars=no,resizable=0,menubar=no');		
}




function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




  <!-- ¿ìÃø ¸Þ´º-->

function MoveElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["divMenu"].top;
                yMenuTo     = top.pageYOffset + 0;   //¹è³ÊÀÇ top À§Ä¡ ÁöÁ¤
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (divMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 0; //¹è³ÊÀÇ top À§Ä¡ ÁöÁ¤
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("MoveElements()", timeoutNextCheck);
                return;
        }


        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divMenu"].top += yOffset;
                else if ( bExplorer4plus )
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("MoveElements()", timeoutNextCheck);
}

function StartBanner()
{
        var y;

        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 135;
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 135;
                divMenu.style.visibility = "visible";
        }


        MoveElements();
        return true;
}

  <!-- ¿ìÃø ¸Þ´º ³¡ -->


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function goods_search()

{
  if (document.searchform.goods.value=="")
	{	
    alert ("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä")
    document.searchform.goods.focus()
	}	

    else
        {
      document.searchform.submit()
  	}

}


function copyInfo() {
	document.order_info.rec_name.value = document.order_info.order_name.value;
	document.order_info.rec_tel.value = document.order_info.order_tel.value;
	document.order_info.rec_hp.value = document.order_info.order_hp.value;
	document.order_info.rec_address.value = document.order_info.order_address.value;
	return true;

}

function checktrim(s) {
	while (s.charAt(0) == " ") {
		s = s.substr(1);
	}
	while (s.charAt(s.length-1) == " ") {
		s = s.substr(0, s.length-1);
	}
	return s;
	
}

function submit_click(pay_method) {

	var order_name=checktrim(document.order_info.order_name.value);
	var order_tel=checktrim(document.order_info.order_tel.value);
	var order_hp=checktrim(document.order_info.order_hp.value);
	var order_address=checktrim(document.order_info.order_address.value);
	var order_email=checktrim(document.order_info.order_email.value);
	var rec_name=checktrim(document.order_info.rec_name.value);
	var rec_tel=checktrim(document.order_info.rec_tel.value);
	var rec_hp = checktrim(document.order_info.rec_hp.value);
	var rec_address=checktrim(document.order_info.rec_address.value);
	var ssn1=checktrim(document.order_info.ssn1.value);
	var ssn2=checktrim(document.order_info.ssn2.value);

	
	if (order_name == "") {
		alert("ÁÖ¹®ÀÚ ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.order_name.focus();
		return;
	}
		
	if (order_tel == "") {
		alert("ÁÖ¹®ÀÚ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.order_tel.focus();
		return;
	}
		
		
	if (order_address == "") {
		alert("ÁÖ¹®ÀÚ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.order_address.focus();
		return;
	}
		

	if (order_email== "") {
		alert("ÁÖ¹®ÀÚ ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.order_email.focus();
		return;
	}		
		
	if (ssn1== "") {
		alert("ÁÖ¹®ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.ssn1.focus();
		return;
	}		

	if (ssn2== "") {
		alert("ÁÖ¹®ÀÚ ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.ssn2.focus();
		return;
	}		

	if (rec_name == "") {
		alert("¼ö·ÉÀÎ ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.rec_name.focus();
		return;
	}
		
	if (rec_tel == "") {
		alert("¼ö·ÉÀÎ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.rec_tel.focus();
		return;
	}
	
	if (rec_hp == "") {
		alert("±ä±Þ¿¬¶ôÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.rec_hp.focus();
		return;
	}
		
		
	if (rec_address == "") {
		alert("¼ö·ÉÀÎ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä...");
		document.order_info.rec_address.focus();
		return;
	}


        else 
        {
          if(isvalid(document.order_info.order_email) != true) {
          alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ Àß¸øµÇ¾ú½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä...");
          document.order_info.order_email.focus();
          }
          else if (checkSN(document.order_info.ssn1.value, document.order_info.ssn2.value) != true) {
          alert("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù...");
          document.order_info.ssn1.focus();
          }
          else
          {
	document.order_info.submit();
  	  }
        }
	
}

/*
function U_Onkeyup(object){
	var keyCode =window.event.keyCode;
	
	if ((keyCode >= 48  && keyCode <= 57) || keyCode <= 31  || (keyCode >=96 && keyCode <=105) || keyCode ==144 || keyCode==229)
	{
	}	
	else{	
		 alert('¼ýÀÚ¸¸ ÀÔ·ÂÀÌ°¡´ÉÇÕ´Ï´Ù.');		 
		 object.value='';
	}
}
*/

function U_Onkeyup(field)
{   
	var Telnum=eval("document.order_info."+field+".value");
	var num="0123456789";

    for (var i=0;i<Telnum.length;i++) {
	    if (num.indexOf(Telnum.charAt(i)) == -1) {
        alert('¼ýÀÚÀÔ·Â¸¸ °¡´ÉÇÕ´Ï´Ù.');
        eval("document.order_info."+ field + ".value = 0");
	    return;
	    }
       
	}
}

function TelCheck(field)
{   var Telnum=eval("document.order_info."+field+".value");

	var num="0123456789-";

    for (var i=0;i<Telnum.length;i++) {
	    if (num.indexOf(Telnum.charAt(i)) == -1) {
        alert('ÀüÈ­¹øÈ£¸¦ Àß¸øÀÔ·ÂÇÏ¿´½À´Ï´Ù.\n\n(¿¹) 02-123-4567');
        eval("document.order_info."+ field + ".value = ''");
	    return;
	    }
       
	}
}


function date_check(){		
	var D_year,D_month,D_day,D_date,mydate;
	now = new Date();
	mydate=now;
		
	D_year = document.order_info.Delv_Request_year.value
	D_month = document.order_info.Delv_Request_month.value
	D_day = document.order_info.Delv_Request_day.value		
		
	mydate.setYear(D_year);
	mydate.setMonth(D_month-1);
	mydate.setDate(D_day);

	document.order_info.Delv_Request_year.value = mydate.getYear();
	document.order_info.Delv_Request_month.value = mydate.getMonth()+1;
	document.order_info.Delv_Request_day.value = mydate.getDate();	
			
}	


