	//########### ·¹ÀÌ¾î º¸ÀÌ±â/¼û±â±â
	// 1. ·¹ÀÌ¾î º¸ÀÌ±â
	function ViewLayer2(ctlID, pixelTop, pixelLeft)
	{
		  eval(ctlID+".style.display = '';");

                  //##### ÇÊÈ÷ ÁÖ¼® ÇØÁ¦ÇØ¼­ »ç¿ë 
 		  // ½ºÅ©·Ñ½Ã ½ºÅ©·ÑÁÂÇ¥ + ÇöÀç ÆäÀÌÁö ÁÂÇ¥
		  //pixelTop = pixelTop + document.body.scrollTop;
		  //pixelLeft = pixelLeft + document.body.scrollLeft;
                  //##### ÇÊÈ÷ ÁÖ¼® ÇØÁ¦ÇØ¼­ »ç¿ë End
		  
		  // ·¹ÀÌ¾î À§Ä¡ º¯°æ
		  eval(ctlID+".style.pixelTop = "+pixelTop+";");
		  eval(ctlID+".style.pixelLeft = "+pixelLeft+";");						
	}	

	
	// 2. ·¹ÀÌ¾î ¼û±â±â
	function hiddenLayer2(ctlID)
	{
		eval(ctlID+".style.display = 'none';");
	}	
	//########### ·¹ÀÌ¾î º¸ÀÌ±â/¼û±â±â	


//#### »ó´Ü ¸Þ´º ½ºÅ©¸³Æ® ####//

    //*** º£½ºÆ® »óÇ° º¸ÀÌ±â
	//var shopnum1 = Math.floor(Math.random() * 4);   // ·£´ýÀ¸·Î Ãâ·Â Á¶Àý
	var shopnum1 = 1;
	
	//                    (¼±ÅÃ¸Þ´º¼ø¹ø, ÀÌ¹ÌÁö¸í(¼ø¹ø »«), ±¸ºÐÅ°, ÃÑ ¸Þ´º¼ö)
	function mainShopRan1(overNum, imgName, gbKey, allNum)
	{	  	  
	  for(i=1; i<=allNum; i++)
	  {
	  	if (overNum == i)
		{
		   for(i=1; i<=allNum; i++)            // ÃÑ ¸Þ´º¼ö¸¸Å­ ·çÇÁ                         
	       {		   
		        if (overNum == i)                                               
				{
				eval("mainShop"+gbKey+i+".style.display = ''");			            // ¼±ÅÃ·¹ÀÌ¾î º¸ÀÌ±â
				eval("document.ms"+gbKey+i+".src='"+imgName+i+"_ov.gif'");            // ¼±ÅÃ¸Þ´º ·Ñ¿À¹ö ÀÌ¹ÌÁö
				}
				else
				{
				eval("mainShop"+gbKey+i+".style.display = 'none'");				    			
				eval("document.ms"+gbKey+i+".src='"+imgName+i+".gif'");
				}				
		   }
		}	  
	  }
	}
	//*** º£½ºÆ® »óÇ° º¸ÀÌ±â End	
	
	//*** ¼±ÅÃ ·¹ÀÌ¾î º¸ÀÌ±â
	function showLayer(i, gbKey)
	{
	  eval("mainShop"+gbKey+i+".style.display = ''");
	}
	//*** ¼±ÅÃ ·¹ÀÌ¾î º¸ÀÌ±â End 
//#### »ó´Ü ¸Þ´º ½ºÅ©¸³Æ® End ####//

                // ÀÌ¹ÌÁö ¸®»çÀÌÂ¡
		function resizeImg(imgID)
		{	    
		    var maxWid = 600
			var imgWid = eval('document.all.'+imgID+'.width')
			var imgHei = eval('document.all.'+imgID+'.height')

			if(imgWid > maxWid)
			{
				eval('document.all.'+imgID+'.width ='+maxWid);            
			}			
		}                          

	// ÀÌ¹ÌÁö È®´ë º¸±â
	function changeImage(imageUrl)
	{
    		if (document.images.mImage)
			document.images.mImage.src = imageUrl;
	}  		

	//---ÀÌ¹ÌÁö »çÀÌÁî¿¡ ¸Â°Ô ¶ç¿ì±â
	function win_resize(wid, hei)
	{
		window.resizeTo(wid, hei)
	}
	
	// Æ÷Ä¿½º ÀÚµ¿ ÀÌµ¿
	// ¿¹ : onKeyUp="moveFocus(4,this,this.form.card_no2);" : ÀÔ·Â±æÀÌ, ÇöÀçÄÁÆ®·Ñ, Æ÷Ä¿½ºÀÌµ¿ÄÁÆ®·Ñ
	function moveFocus(num,fromform,toform) {
		var str = fromform.value.length;
		if(str == num)
			toform.focus();
		
	}
	  
	 //****** ¼ýÀÚ ÃÖÁ¾ *******//
	 // ¼ýÀÚ¸¸ ÀÔ·Â¹Þ±â(onkeypress)
	 function chkNumber(obj)
	 {
		if((event.keyCode<48)||(event.keyCode>57))
		{
		  event.returnValue=false;			 
		}			
	 }			 
	 
	 // ±Ý¾×ÀÏ °æ¿ì(onblur)   // chkNumber¿Í °°ÀÌ ½á¾ßÇÔ
	 // ex : <input type="text" onkeypress="chkNumber(this)", onblur="chkMoney(this)">
	 function chkMoney(obj)
	 {
	 	obj.value = Math.floor(obj.value);
	 }
	 //****** ¼ýÀÚ ÃÖÁ¾ *******// End
	

    //---¼ýÀÚ¸¸ ÀÔ·Â---
	function checkQty(obj)
	{
		var number="0123456789";		
		var str = obj.value;
			
		if (str.length > 0) {
			if (str.length == 1) {
				if (str == "0") {
					alert('¼ö·®Àº 0º¸´Ù Ä¿¾ßÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À');
					obj.value = "1";
					obj.focus();
					return;
				}
			}
			
			for (i=0; i<str.length; i++) {
				if (number.indexOf(str.substring(i, i+1)) < 0) {
					alert('¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À');
					obj.value = "1";
					obj.focus();
					return;
				}
			}
		}
	}	
   //---¼ýÀÚ¸¸ ÀÔ·Â---
   
	// alt Ã¢ ¶ç¿ì±â
	function rtnAlert(msg)
	{
		alert(msg);
	}

	// alt Ã¢ ¶ç¿ì°í window.replace
	function rtnAlertWinReplace(msg, moveUrl)
	{
		alert(msg);
		window.location.replace(moveUrl);
	}		 		

//--¸ð´Þ ÆË¾÷Ã¢
function PopUp_Modal(link, pid, wid, hei)
{
	var link;
	showModalDialog(link, window, "dialogWidth:"+wid+"px; dialogHeight:"+hei+"px; center:yes; help:no; resizable:no; status:no; scroll:no;");
}

//--ÆË¾÷Ã¢
function PopUp(url, pid, wid, hei, scroll, status, resize) {
var url;
var pid;
var wid;
var hei;
var scroll;
var status;
var resize;
win = window.open(url, pid, 'width='+wid+',height='+hei+',scrollbars='+scroll+', status='+status+', resizable='+resize);
win.focus();
}	
//--ÆË¾÷Ã¢ End

//--°í°´ ID Ã£±â
function CID_PopUp(url, f_name, f_cCD, f_cName, f_tel, f_zip, f_addr1, f_addr2, f_focus, pID,  wid, hei, scroll, status, resize) {
win = window.open(url+"&f_name="+f_name+"&f_cCD="+f_cCD+"&f_cName="+f_cName+"&f_tel="+f_tel+"&f_zip="+f_zip+"&f_addr1="+f_addr1+"&f_addr2="+f_addr2+"&f_focus="+f_focus, pID, 'width='+wid+',height='+hei+',scrollbars='+scroll+', status='+status+', resizable='+resize);
win.focus();
}	
//--°í°´ ID Ã£±â End

// ¿ìÆí¹øÈ£ °Ë»ö
function zip_popup(url,f_name,f_zip,f_addr1,f_addr2,wid,hei,status,scroll)
{			
	url = url+"?f_name="+f_name+"&f_zip="+f_zip+"&f_addr1="+f_addr1+"&f_addr2="+f_addr2;
	var zipPop = window.open(url,"zipID","toolbar=no,menubar=no,resizable=NO,width="+wid+",height="+hei+", status="+status+" ,scrollbars="+scroll);
	zipPop.focus();
}		

function openBrWindow() { 
  window.open('popMain/pop_event.htm','popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=600');
}




		


