<!--
//ÀÌ¹ÌÁöÆË¾÷
document.write("<div id=img_layer style='position:absolute; left:150px; top:150px; z-index:9999; visibility:hidden; filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);' onmouseover='drag=1;move=0' onmouseout='drag=0'></div>");
var x =0
var y=0
    drag = 0
    move = 0
        window.document.onmousemove = mouseMove
        window.document.onmousedown = mouseDown
        window.document.onmouseup = mouseUp
        window.document.ondragstart = mouseStop

function ShowImg(file_name,title){
    var file_name;
        img_layer.innerHTML="<table cellpadding=0 cellspacing=0 border=0><tr><Td bgcolor=#000000 height=20 align=center valign=bottom><font face=verdana color=#ffffff>"+ title +"</font></td></tr><tr><td style='padding:3px' bgcolor=#000000><img src=" + file_name + " border=0 alt='Å¬¸¯ÇÏ¸é ´ÝÈü´Ï´Ù' onclick=HideImg()></td></tr></table>";
        img_layer.filters.blendTrans.apply();
        img_layer.style.visibility = "visible";
        img_layer.filters.blendTrans.play();
}

function HideImg() {
    img_layer.filters.blendTrans.apply();
    img_layer.style.visibility = "hidden";
    img_layer.filters.blendTrans.play();
}

function mouseUp() {
    move = 0
}

function mouseDown() {
    if (drag) {
        clickleft = window.event.x - parseInt(img_layer.style.left)
        clicktop = window.event.y - parseInt(img_layer.style.top)
        img_layer.style.zIndex += 1
        move = 1
    }
}

function mouseMove() {
    if (move) {
        img_layer.style.left = window.event.x - clickleft
        img_layer.style.top = window.event.y - clicktop
    }
}

function mouseStop() {
    window.event.returnValue = false
}

//ÇÃ·¡½¬ swf »ðÀÔ
function flashPlayer(name, sizex, sizey, value, alphavar) {
 
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + sizex + '" height="' + sizey + '">');
 document.write('<param name="movie" value="' + name + '">');
 document.write('<param name="quality" value="high">');
 document.write('<param name="menu" value="false">');
 if( alphavar == 'Y'){
 	
     document.write('<param name=wmode value=transparent>');
 
 }
 document.write('<PARAM NAME="FlashVars" VALUE="' + value + '">');
 document.write('<embed src="' + name + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + sizex + '" height="' + sizey + '"');
 document.write('FlashVars="' + value + '"></embed>');
 document.write('</object>');
}

//// ¹öÆ° ·Ñ¿À¹ö, ·Ñ¾Æ¿ô ÀÌ¹ÌÁö º¯°æ
var tempImage;
function swapImage(name) {
	tempImage = name.src;

	var len = name.src.length;
	var dotLocation = name.src.lastIndexOf(".");
	var extension = name.src.substring(dotLocation,len);
	var fileName = name.src.substring(0,dotLocation);
	
	if (name.src.indexOf("_up") < 0) {
		name.src = fileName + "_up" + extension;
	}
}
function restoreImage(name) {
	name.src = tempImage;
}

//// ¹öÆ° ·Ñ¿À¹ö, ·Ñ¾Æ¿ô È¿°ú (ºê¶ó¿ìÀú°¡ IEÀÏ °æ¿ì Àû¿ëµÊ)
function setEffect(id) {
	if (id.style && typeof(id.style.filter) == "string") { 
		id.style.filter='Alpha(Opacity=70)';
	}
}
function offEffect(id) {
	if (id.style && typeof(id.style.filter) == "string") { 
		id.style.filter='';
	}
}

//ÆË¾÷Á¤º¸Ã¢
function showPopup(popup_idx, strScroll) {
	var win = window.open("popup.asp?popup_idx="+popup_idx,"popup"+popup_idx,"width=100,height=100,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+strScroll+",resizable=no");
	win.focus();
}

//ÆË¾÷µî·ÏÃ¢
function addPopup(popup_idx) {
	var win = window.open("add_popup.asp?popup_idx="+popup_idx,"popup",'scrollbars=auto,width=700,height=620');
	win.focus();
}

//»çÁøº¸±â
function viewImage(filename)
{
	var win = window.open("./show_photo.asp?filename="+filename,"photo","scrollbars=no,width=100,height=100");
	win.focus();
}

//´Ù¿î·Îµå
function download(filename)
{
	location.href="download.asp?e_file="+filename;
}

//¾ÆÀÌÄÜ ¼±ÅÃÃ¢
function select_icon()
{
   var win = window.open("selecticon.asp","selecticon",'width=350,height=300');
   win.focus();
}

//ÀÌ¹ÌÁö¾÷·ÎµåÃ¢
function image_upload()
{
   var win = window.open("imageupload.asp","imgaeupload",'width=310,height=180');
   win.focus();
}

function del(data)
{
   if(confirm("¼±ÅÃÇÏ½Å Ç×¸ñÀ» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))
   {
      location.href = data;
   }
}

//ÆÄÀÏÃ¼Å©
function check_file(strValue)
{
	var flag=true;
	if (strValue!="") 
	{
			if (strValue.indexOf(":") == 1) 
			{
				flag=false;
			}
	}
	return flag;
}

// °ø¹é¸¸ ÀÖ´Ù¸é ¿ä±â¿¡ °É¸°´Ù.
function isEmpty( data )
{
   	for ( var i = 0 ; i < data.length ; i++ )
      		if(data.substring( i, i+1 ) != " ")
         			return false;
 
	return true;
}

// °ø¹éÀ» ¸ðµÎ ¾ø¾Ø´Ù.
function CheckSpaceAll(str)
{
 var index;
 var len;
          	
 while(true)
 {
  index=str.value.indexOf(" ");
  if(index==-1) break;
  	len=str.value.length;
    str.value = str.value.substring(0,index) + 
                str.value.substring((index+1),len);
  	}	
 return str.value;
}

// Æ¯¼ö¹®ÀÚ¸¦ °Ë»ç
function CheckChar(str)
{
len=str.value.length;
  		
 for(i=0;i<len;i++)
 {
  if(str.value.charAt(i)==" " || str.value.charAt(i)=='"' 
  || str.value.charAt(i)=="'" || str.value.charAt(i)=="%" 
  || str.value.charAt(i)=="\"" || str.value.charAt(i)=="&")
  {
   alert("Æ¯¼ö¹®ÀÚ(\,',%,& µî)³ª °ø¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
   str.focus();
   return false;
  }
 }
 return true;  
}

function isNum(e_value) {
var value = eval(e_value);
       for(i= 0; i < value.value.length; i++) {
                b = value.value.substring(i, i+1);
                if (b == '0') continue;
                if (b == '1') continue;
                if (b == '2') continue;
                if (b == '3') continue;
                if (b == '4') continue;
                if (b == '5') continue;
                if (b == '6') continue;
                if (b == '7') continue;
                if (b == '8') continue;
                if (b == '9') continue;
		
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		value.value = "";
		value.focus();				
		return;

        }
        return;					
}

function check_email(email)
{
   var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/; 
   var check=/@[\w\-]+\./; 
   var checkend=/\.[a-zA-Z]{2,3}$/; 
  
   if(((email.search(exclude) != -1)||(email.search(check)) == -1)||(email.search(checkend) == -1))
   { 
      return false;
   }
   else
   {
      return true;
   }
}

//³¯Â¥Ã¼Å©
function chkDate(y, m, d) {
var er = 0; // ¿¡·¯ º¯¼ö
var daa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
if (y%1000 != 0 && y%4 == 0) daa[1] = 29; // À±³â
if (d > daa[m-1] || d < 1) er = 1; // ³¯Â¥ Ã¼Å©
if (m < 1 || m > 12) er = 1; // ¿ù Ã¼Å©
if (m%1 != 0 || y%1 != 0 || d%1 != 0) er = 1; // Á¤¼ö Ã¼Å©
if (er == 1) return false;
else return true;
}

//È¸¿øÁ¤º¸Ã¢
function showUserInformation(email)
{
   var win = window.open("admin1_modify.asp?e_email="+email,"userinformation",'scrollbars=yes,width=600,height=380');
   win.focus();
}

//Áö¿øÁ¤º¸Ã¢
function showPeopleInformation(e_idx)
{
   var win = window.open("admin3_info.asp?e_idx="+e_idx,"peopleinformation",'scrollbars=yes,width=600,height=450');
   win.focus();
}

//À¯ÀÏÁöÁ¤Ã¢
function setHoliday()
{
   var win = window.open("admin_holiday.asp","admin_holiday",'scrollbars=yes,width=290,height=300');
   win.focus();
}

//¿¹¾àÈ®ÀÎÃ¢
function reservationCheck()
{
   var win = window.open("reservation_check.asp","reservationCheck",'scrollbars=yes,width=400,height=240');
   win.focus();
}
//¿¹¾àÇöÈ²Ç¥
function showReservation(){
	var win = window.open("admin2_table.asp","reservation",'scrollbars=yes,width=780,height=450');
	win.focus();
}
// Enter Å° ÈÄ ·Î±×ÀÎ
function enter(formid)
{
  var form = eval("document."+formid);
  
  if (event.keyCode == "13" )
  { 
      sendit();	
  }
}
/-->