<!--
//Äü³×ºñ°ÔÀÌ¼Ç
function pageJump(selObj){ //v3.0
	location.href = selObj.options[selObj.selectedIndex].value;
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  selObj.selectedIndex=0;
}

var swapimg;

//ÀÌ¹ÌÁöº¯°æ
function swapImg(name, target)
{
	swapimg = name.src;
	name.src = target;
}

//ÀÌ¹ÌÁöº¹±¸
function restoreImg(name)
{
	name.src = swapimg;
}

//»çÁøº¸±â
function viewImage(filename)
{
	var win = window.open("./show_photo.asp?filename="+filename,"photo","scrollbars=no,width=100,height=100");
	win.focus();
}

//ÆË¾÷Á¤º¸Ã¢
function showPopup(popup_idx) {
	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=no,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=600');
	win.focus();
}

//µ¿¿µ»ó
function showMovie()
{
	var win=open("show_movie.asp","show_movie","width=353,height=380");
	win.focus();
}

//È¸¿øÁ¤º¸Ã¢
function showUserInformation(id)
{
   var win = window.open("admin2_information.asp?e_id="+id,"userinformation",'scrollbars=yes,width=600,height=650');
   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 login(formid)
{
   var form = eval("document."+formid);
   
   if(form.e_id.value == "")
   {
      alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
	  form.e_id.focus();
	  return;
   }
   
   if(form.e_pw.value == "")
   {
      alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
	  form.e_pw.focus();
	  return;
   }
   
   form.action = "login_ok.asp";
   form.submit();
}

function enter(formid)
{
  var form = eval("document."+formid);
  
  if ((event.keyCode == "13" )&&(form.e_id.value!="" && form.e_pw.value!=""))
  { 
      form.submit();	
  }
}

//ÆÄÀÏÃ¼Å©
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;
   }
}
/-->