<!--

  var cartWin = null;  //Àå¹Ù±¸´Ï¶§¹®¿¡ ÇÊ¿äÇÑ º¯¼ö
  var viewflag = false;
   
	// ºê¶ó¿ìÁ® Á¾·ù ¹× ¹öÀü
	function getBrowser() {
		if(navigator.userAgent.toLowerCase().indexOf("msie 5")>=0) {
			return "ie5";
		}else if(navigator.userAgent.toLowerCase().indexOf("msie 6")>=0) {
			return "ie6";
		}else if(navigator.userAgent.toLowerCase().indexOf("msie 7")>=0) {
			return "ie7";
		}else if(navigator.userAgent.toLowerCase().indexOf("msie 8")>=0) {
			return "ie8";
		}else if (navigator.userAgent.toLowerCase().indexOf("firefox")>=0) {
			return "ff";
		}else if (navigator.userAgent.toLowerCase().indexOf("opera")>=0) {
			return "op";
		}else if (navigator.userAgent.toLowerCase().indexOf("safari")>=0 && navigator.userAgent.toLowerCase().indexOf("chrome")<0) {
			return "sf";
		}else if (navigator.userAgent.toLowerCase().indexOf("chrome")>=0) {
			return "ch";
		}
	}
	
	//ºê¶ó¿ìÀúº° Ã¢ ¸®»çÀÌÁî 
	function winResize(width, heigth, top,left){
	 var n_height=heigth;
	 var n_width=width;

	 if(getBrowser() =='ff'){
		 n_height=heigth+55;	
	 }else if(getBrowser()=='sf'){
		 n_height=heigth+18;
		 n_width=width+26;
	 }else if(getBrowser()=='ch'){
		 n_height=heigth+17;
		 n_width=width+30;
	 }else if(getBrowser()=='ie6'){
		 n_height=heigth+18;
	 }else if(getBrowser()=='op'){
		 n_height=heigth+23;
	 }else if(getBrowser()=='ie7'){
	  n_height=heigth+46;
	 }
	 
	 if( checkValueNumber(top) && checkValueNumber(left)){
	    window.moveTo(top,left);
	 }
	 
	 window.resizeTo(n_width,n_height);
	}
	
	  // ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
	  function checkValueNumber(str)
	  {
	    var number="0123456789";
	    if(str !='undefined' && str != null){
		    for (ii=0; ii<str.length; ii++) {
		      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
		        return false;
		      }
		    }
	    }else return false;
	    return true;
	  }
	  
	// ¹Ýµå½Ã Ã·ºÎÇØ¾ßÇÏ´Â ÆÄÀÏÀ»  Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkMustFile(obj, title)
  {
    var str = obj.value;

    if (str.length <= 0) {
      alert(title+" Ã·ºÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ¹Ýµå½Ã ÀÔ·ÂÇØ¾ßÇÏ´Â ÇÊµå°ªÀ» Ã¼Å©ÇÏ´Â ÇÔ¼ö(°ø¹é¹®ÀÚ ºñÇã¿ë)
  function l_checkMust_receipt(obj, title, num)
  {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (str.length <= 0) {
      alert(title+"¸¦ È®ÀÎÇØÁÖ¼¼¿ä.");
      obj.focus();
      return false;
    }
    else if (str.length < num) {
      alert(title+" "+num+"ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ¹Ýµå½Ã ÀÔ·ÂÇØ¾ßÇÏ´Â ÇÊµå°ªÀ» Ã¼Å©ÇÏ´Â ÇÔ¼ö(°ø¹é¹®ÀÚ ºñÇã¿ë)
  function l_checkMust(obj, title, num)
  {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (str.length <= 0) {
      alert(title+" ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    else if (str.length < num) {
      alert(title+" "+num+"ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ºñ¹Ð¹øÈ£ »ý¼º ±ÔÄ¢¿¡ µû¸¥ ÇÔ¼ö »ý¼º 2006_09-07 Á¶¿ø·¡
  // ±ÔÄ¢ : ¾ÆÀÌµð¶û Áßº¹ ºÒ°¡, ¿µ¹®/¼ýÀÚÈ¥ÇÕÀ¸·Î 6~15ÀÚ¸®
  function l_checkPWNew(obj, userid) {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (str.length <= 0) {
      alert("ºñ¹Ð¹øÈ£´Â ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    } else if (str.length < 6) {
      alert("ºñ¹Ð¹øÈ£´Â 6ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (userid == str) {
      alert("¾ÆÀÌµð¿Í µ¿ÀÏÇÑ ºñ¹Ð¹øÈ£´Â Çã¿ëÇÏÁö ¾Ê½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    var numeric_flag = false;
    var char_flag = false;

    for (var i=0;i<str.length;i++) {
      if (numeric_flag == false && str.charAt(i) >= '0' && str.charAt(i) <= '9')
        numeric_flag = true;
      else if (char_flag == false && str.charAt(i) >= 'a' && str.charAt(i) <= 'z')
        char_flag = true;
      else if (char_flag == false && str.charAt(i) >= 'A' && str.charAt(i) <= 'Z')
        char_flag = true;
    }

    if (numeric_flag == true && char_flag == true)
      return true;
    else {
      alert("ºñ¹Ð¹øÈ£´Â ¿µ¹®ÀÚ/¼ýÀÚ Á¶ÇÕ 6~15ÀÚ¸®·Î ¼³Á¤ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
  }
  
  // ±ÔÄ¢ : ¿µ¹®/¼ýÀÚÈ¥ÇÕÀ¸·Î Çã¿ëÇÏ´Â ÇÔ¼ö
  function l_checkEngNum(obj) {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    var numeric_flag = false;
    var char_flag = false;

    for (var i=0;i<str.length;i++) {
      if (numeric_flag == false && str.charAt(i) >= '0' && str.charAt(i) <= '9')
        numeric_flag = true;
      else if (char_flag == false && str.charAt(i) >= 'a' && str.charAt(i) <= 'z')
        char_flag = true;
      else if (char_flag == false && str.charAt(i) >= 'A' && str.charAt(i) <= 'Z')
        char_flag = true;
    }

    if (numeric_flag == true && char_flag == true)
      return true;
    else {
      alert("¿µ¹®°ú  ¼ýÀÚÁ¶ÇÕÀ¸·Î¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
  }

  // ¹Ýµå½Ã ÀÔ·ÂÇØ¾ßÇÏ´Â ÇÊµå°ªÀ» Ã¼Å©ÇÏ´Â ÇÔ¼ö(°ø¹é¹®ÀÚ Çã¿ë)
  function l_checkMustAllowSpace(obj, title, num)
  {
    var str = obj.value;

    if (num == 0)
      num = 1;
    if (str.indexOf(" ") == 0) {
      alert("Ã¹¹®ÀÚ´Â °ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (str.length <= 0) {
      alert(title+" ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    else if (obj.type=="text" && str.indexOf("\"")>=0) {
      alert(title.slice(0, -1)+"¿¡´Â [ \" ]¸¦ ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    else if (str.length < num) {
      alert(title+" "+num+"ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ °ø¹é¹®ÀÚ°¡ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkSpace(obj)
  {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkNumber(obj)
  {
    var str = obj.value;
    var number="0123456789";

    for (ii=0; ii<str.length; ii++) {
      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
        alert("¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.value = "";
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkQty(obj)
  {
    var str = obj.value;
    var number="0123456789";

    if (str == "") {
      alert("¼ýÀÚ´Â ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.value = "";
      obj.focus();
      return false;
    }
    for (ii=0; ii<str.length; ii++) {
      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
        alert("¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.value = "";
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
    function l_checkQtySub(obj,comment)
  {
    var str = obj.value;
    var number="0123456789";

    if (str == "") {
      alert(comment+"¼ýÀÚ°¡ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.value = "";
      obj.focus();
      return false;
    }
    for (ii=0; ii<str.length; ii++) {
      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
        alert(comment+"¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.value = "";
        obj.focus();
        return false;
      }
    }
    return true;
  }
  

  // ÀÔ·ÂÇÊµå°ª¿¡ ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkMoney(obj)
  {
    var str = obj.value;
    var number="0123456789";

    if (str == "") {
      alert("±Ý¾×Àº ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.value = "";
      obj.focus();
      return false;
    }
    for (ii=0; ii<str.length; ii++) {
      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
        alert("¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.value = "";
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå¿¡ ¼ýÀÚ¸¸À» ÀÔ·ÂÇÏµµ·Ï Â÷´Ü
  // onkeypress ¿¡ °É¾îÁÖ¸é µÊ
  function l_checkNumberInput() {
    if (event.keyCode<48 || event.keyCode>57)
      event.returnValue=false;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ ¹®ÀÚ ¿Í ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkAlphaNumber(obj)
  {
    var str = obj.value;

    var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    var numeric = '1234567890';
    var nonkorean = alpha+numeric;
    for (i=0; i<str.length; i++) {
      if (nonkorean.indexOf(str.substring(i, i+1)) < 0) {
        alert("¿µ¹®/¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ ¼Ò¹®ÀÚ¿Í ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkSmallAlphaNumber(obj)
  {
    var str = obj.value;

    var alpha = 'abcdefghijklmnopqrstuvwxyz';
    var numeric = '1234567890';
    var nonkorean = alpha+numeric;
    for (i=0; i<str.length; i++) {
      if (nonkorean.indexOf(str.substring(i, i+1)) < 0) {
        alert("¿µ¹® ¼Ò¹®ÀÚ/¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  //Æ¯¼ö¹®ÀÚ ÀÔ·Â ±ÝÁö
  function l_checkSpecialChar(obj)
  {
    var str = obj.value;

    var special = '!@#$%^&*<>?/';
    var special2 = '¡×¡Ù¡Ú¡Û¡Ü¡Ý¡Þ¡ß¡à¡á¡â¡ã¢·¢¸¢¹¢º¢»¢¼¢½¢¾¢¿¢À¢Á¢Â¢Ã¢Ä¢Å¢Ç¢Æ¢È¢É¢Ê¢Ë¢Ì¢Í¢Î¢Ï¢Ð¢Ñ¢Ò¢Ó¢Ô¢Õ¢Ö¢×¢Ø¢Û¢Ü¢Ý¢Þ¢ß¢à¢á¢â¢ã¢ä¢å??';
    for (i=0; i<special.length; i++) {
      if (str.indexOf(special.substring(i, i+1)) >= 0) {
        alert("Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    for (i=0; i<special2.length; i++) {
      if (str.indexOf(special2.substring(i, i+1)) >= 0) {
        alert("Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
  // ¿µ¹®/¼ýÀÚ/¼¼¹ÌÄÝ·Ð¸¸ »ç¿ë °¡´É
  function l_checkAlphaNumberSemicolon(obj) {
    var str = obj.value;

    var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    var numeric = '1234567890';
    var special_character = ';';
    var nonkorean = alpha+numeric+special_character;
    for (i=0; i<str.length; i++) {
      if (nonkorean.indexOf(str.substring(i, i+1)) < 0) {
        alert("¿µ¹®/¼ýÀÚ/';'¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  //ÇÑ±ÛÃ¤Å©
  function l_checkKoreanOnly(koreanChar) {

     if ( koreanChar == null ) return false ;

     for(var i=0; i < koreanChar.length; i++){

       var c=koreanChar.charCodeAt(i);

       //( 0xAC00 <= c && c <= 0xD7A3 ) ÃÊÁßÁ¾¼ºÀÌ ¸ðÀÎ ÇÑ±ÛÀÚ
       //( 0x3131 <= c && c <= 0x318E ) ÀÚÀ½ ¸ðÀ½

       if( !( ( 0xAC00 <= c && c <= 0xD7A3 ) || ( 0x3131 <= c && c <= 0x318E ) ) ) {
          return false ;
       }
     }
     return true ;
  }


  // ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸¥Áö ¿©ºÎ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkJuminID(obj1, obj2)
  {
    var manid1 = obj1.value;
    var manid2 = obj2.value;

    var jumin = manid1 + manid2;
    var weight = '234567892345';
    var sum = 0;
    var isvalid = true;

    for (i=0; i<12; i++)
      sum = sum + (eval(jumin.substr(i,1)) * eval(weight.substr(i,1)));
    remain = sum % 11;
    result = 11- remain;
    if(result == 10)
      result = 0;
    else if (result == 11)
      result = 1;
    if (result != eval(jumin.substr(12,1)))
      isvalid = false;

    if (!isvalid) {
      alert("ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
      obj1.focus();
      return false;
    }
    return true;
  }

  // ÀÔ·ÂÇÑ E-mailÀÌ ¿Ã¹Ù¸¥Áö ¿©ºÎ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkEmail(obj)
  {
    var email = obj.value;

    var email_1 = "";
    var email_2 = "";
    var check_point = 0;

    if (email.indexOf("@") < 0) {
      alert("E-mail¿¡ @ °¡ ºüÁ®ÀÖ½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email.indexOf(".") < 0) {
      alert("E-mail¿¡ . °¡ ºüÁ®ÀÖ½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email.indexOf("|") >= 0) {
      alert("E-mail¿¡ | ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù");
      obj.focus();
      return false;
    }
    if (email.indexOf(">") >= 0) {
      alert("E-mail¿¡ > ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email.indexOf("<") >= 0) {
      alert("E-mail¿¡ < ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email.indexOf(" ") >= 0) {
      alert("E-mail¿¡ °ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    // emailÀº email_1@email_2·Î ³ª´©´Â ºÎºÐ
    for (var j=0; j < email.length; j++) {
      if (email.substring(j, j+1)!="@" && check_point==0)
        email_1 = email_1 + email.substring(j, j + 1);
      else if (email.substring(j, j+1) == "@")
        check_point = check_point + 1;
      else
        email_2 = email_2 + email.substring(j, j+1);
    }

    if (email_1.length < 3) {
      alert("E-mail¿¡ @ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.length < 2) {
      alert("E-mail¿¡ @ µÞÀÚ¸®´Â 2ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (check_point > 1) {
      alert("E-mail¿¡ @ ´Â 1¹øÀÌ»ó µé¾î°¥ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }

    if (email_2.indexOf("(") >= 0) {
      alert("E-mail¿¡ ( ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("(") >= 0) {
      alert("E-mail¿¡ ( ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(")") >= 0) {
      alert("E-mail¿¡ ) ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(",") >= 0) {
      alert("E-mail¿¡ , ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(";") >= 0) {
      alert("E-mail¿¡ ; ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(":") >= 0) {
      alert("E-mail¿¡ : ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("/") >= 0) {
      alert("E-mail¿¡ / ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("[") >= 0) {
      alert("E-mail¿¡ [ ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("]") >= 0) {
      alert("E-mail¿¡ ] ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("{") >= 0) {
      alert("E-mail¿¡ { ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("}") >= 0) {
      alert("E-mail¿¡ } ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(" ") >= 0) {
      alert("E-mail¿¡ °ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.focus();
      return false;
    }
    return true;
  }

  // ÀÛÀº µû¿ÈÇ¥ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkQuotation(obj, title) {
    for(i=0; i<obj.value.length; i++) {
      if (escape(obj.value.charAt(i))=="%27") {
        alert(title+"[ ' ]¸¦ ¾µ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ¹®ÀÚ¿­À» ¹è¿­·Î ¸®ÅÏÇÏ´Â ÇÔ¼ö
  function l_strToarr(str, token) {

  }

  // ÀÌ¹ÌÁö µðÆúÆ® »çÀÌÁî ¼ÂÆÃ (width)
  function l_setImageWidth(name, max_width) {
    if (eval("document."+name) != null) {
      var width = eval("document."+name+".width");
      width = max_width;
    }
  }

  // ÀÌ¹ÌÁö µðÆúÆ® »çÀÌÁî ¼ÂÆÃ (width, height)
  function l_setImageSize(name, max_width, max_height) {
    if (eval("document."+name) != null) {
      var width = eval("document."+name+".width");
      width = max_width;
      var height = eval("document."+name+".height");
      height = max_height;
    }
  }
  
  // ÀÌ¹ÌÁö ¿ÀºêÁ§Æ®·Î ¹Þ¾Æ¿Í »çÀÌÁî Á¶Àý °¡·Î, ¼¼·Î
  function l_imageObjectResizeWidth(obj, max_width, max_height) {
    var width = obj.width;
    var height = obj.height;
    var count = 0;
    
    for(i=0; i<=3; i++) {
    if(width == 0) {
      document.location.reload(true);
    }
    
    if(height == 0) {
      document.location.reload(true);
    }
    count++;
    }
    
    if(obj != null) {
      if(!(width<max_width &&  max_height>height)) {
        if ((width/height) > (max_width/max_height)) {
        if (width>max_width || width==-1 || width==0){
          width = max_width;
        }
        obj.width = width;
      
        } else{
          if (height>max_height || height==-1 || height==0) {
            height = max_height;
          }
            obj.height = height;
          }
      
      } else {
      obj.width = width;
      obj.height = height;
      } 
    }
  }

  // ÀÌ¹ÌÁö »çÀÌÁî Á¶Àý °¡·Î¸¸
  function l_imageResizeWidth(name, max_width) {
    name.onLoad = l_imageResizeWidth2(name, max_width);
  }

  function l_imageResizeWidth2(name, max_width) {
    if (eval("document."+name) != null) {
      var width = eval("document."+name+".width");
      if (width != 28) {
        if (width>max_width || width==-1){
          width = max_width;
        }
        eval("document."+name+".width = "+width);
      } else {
        eval("document."+name+".width = "+max_width);
      }
    }
  }

  // ÀÌ¹ÌÁö »çÀÌÁî Á¶Àý °¡·Î, ¼¼·Î
  function l_imageResize(name, max_width, max_height) {
    name.onLoad = l_imageResize2(name, max_width, max_height);
  }

  function l_imageResize2(name, max_width, max_height) {
    if (eval("document."+name) != null) {
      var width = eval("document."+name+".width");
      var height = eval("document."+name+".height");

      if (width != 28) {
        if ((width/height) > (max_width/max_height)) {
          if (width>max_width || width==-1) {
            width = max_width;
          }
            ("document."+name+".width = "+width);
        }else{
          if (height>max_height || height==-1) {
            height = max_height;
          }
          eval("document."+name+".height = "+height);
        }
      }else{
        eval("document."+name+".width = "+max_width);
        eval("document."+name+".height = "+max_height);
      }
    }
  }

  //»ç¿ë Á¦ÇÑµÈ ¾ÆÀÌµð Ã¼Å©(2007-03-03)
  function l_checkId(obj){
    var str = obj.value;
    idArray = new Array("doosan","doosandonga","doosandonga1","doosandonga2","doosandonga3","doosandonga4","doosandonga5","doosandonga6","doosandonga7","doosandonga8","doosandonga9","doosandonga10","donga","dong-a","admin","master","webmaster","center","store","shop","shopping","resume","encyber","guest","test","answer","online","book","school","study","learn","edu","education","student","teacher","korean","mathmatics","math","english","social","science","art","hanja","cmc","cube","dongacube","dongakid","elementary","element","100jum","olympiad","suhak","mdonga","middledonga","middleschool","sooproject","soopro","suproject","supro","secretnote","cafe","readingcafe","listeningcafe","teachersm","mteacher","vitamin","hidonga","highdonga","highschool","hightop","passing","code","passingcode","passing-code","impact","bookdonga","language","prime","genx","gen-x","metro","mate","ebs","ebstv","ebsradio","toeic","toefl","hsk","jpt","insight","situation","japanese","chinese","singsing","surasura","eboy","eboyoung","sunkim","hongbak","dongaschool","brainy","dongahomeschool","netdonga","jump","jumping","plus","special","textbook","textbookadmin","dapsale","dapsale0","dapsale1","dapsale2","dapsale3","dapsale4","dapsale5","dapmkt","dapplace","sex","love");
    for ( i=0; i<idArray.length ; i++){
      if ( idArray[i] == str ){
        alert('»ç¿ëÀÌ Á¦ÇÑµÈ ¾ÆÀÌµðÀÔ´Ï´Ù.');
        obj.focus();
        return false;
      }
    }
    return true;
  }

  //»ç¿ë Á¦ÇÑµÈ ÀÌ¸§ Ã¼Å©
  function l_checkName(obj){
    var str = obj.value;
    nameArray = new Array("ºÏµ¿¾Æ","ºÏµ¿¾Æ´åÄÄ","µ¿¾Æ","µÎ»ê","µÎ»êµ¿¾Æ","µ¿¾ÆÅ°µå","µ¿¾ÆÅ°Áî","Å°µå","Å°Áî","µ¿¾Æ½ºÄð","¿Â¶óÀÎ","½ºÄð","±¹¾î","¼öÇÐ","»çÈ¸","¼±»ý´Ô","°úÇÐ","ºê·¹ÀÌ´Ï","ºê·¡ÀÌ´Ï","ÀÓÆÑÆ®","Æ¾Æ¾µ¿¾Æ","Æ¾Æ¾","Æ¾","¾ÆÀÌ¾ß","¿£½ÎÀÌ¹ö","¿£»çÀÌ¹ö","À¥¸¶½ºÅÍ","¸¶½ºÅÍ","¾îµå¹Î","°ü¸®ÀÚ","¿î¿µÀÚ","ºÏ","Ã¥","»ç¶û","¼½½º","ÆÐ½ÌÄÚµå","ÆÐ½Ì","ÄÚµå");
    for ( i=0; i<nameArray.length ; i++){
      if ( nameArray[i] == str ){
        alert('»ç¿ëÀÌ Á¦ÇÑµÈ ÀÌ¸§ÀÔ´Ï´Ù.');
        obj.focus();
        return false;
      }
    }
    return true;
  }

  //±ÝÁö¾î
  function l_checkBadKeyword(obj){
    var str = obj.value;
    nameArray = new Array("°³¸Á½Å","°³»õ³¢","°³¼Ò¸®", "±³¼¼","²¿¶óÁö", "²ÃÅë","³ð","´Ï±â¹Ì", "µî½Å","¶°±×¶ö","¶Ë²¿","¶Ë²Ù¸Û", "¸¶±Í","¸ÓÀú¸®","¹ÌÄ£³Ñ", "¹ÌÄ£³ð", "¹Ùº¸","¹Ùº¸»õ³¢","º­¾û½Å", "º´½Å","ºÒ¹ý","ºé½Å","ºù½Å","»õ³¢","¼º±â","¼½½º ","¼Ò»õ³¢", "½¦ÀÌ","½Ã¹ú","½ÊÆÈ","½Î°¡Áö", "½Ö³â", "½Ö³ð","¾¾¹ß","¾¾¹ë³Ñ", "¾¾¹ú","¾¾ÆÈ","¾Ã»õ³¢", "¾ßµ¿","À½ºÎ", "ÀÌ´Ü","ÀÚ»ì","Àâ³ð","Àâ½Å","Á¹¶ó","Á¿°°Àº°Ô","Á¿±î","Á¿¹ä","Á×½À´Ï´Ù","Áö¶ö","Âî¶ö","ÃÄµå½Ã´Ù","ÃßÁ¾","ÃßÁ¾ÀÚ", "ÇÒº¹");
    for ( i=0; i<nameArray.length ; i++){
      if ( nameArray[i] == str ){
        alert('»ç¿ëÀÌ ±ÝÁöµÈ ´Ü¾î ÀÔ´Ï´Ù.');
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
  function l_checkImageFile(obj){
    var str = obj.value;
    if (str != "") {
      str = str.substring(str.lastIndexOf(".")+1).toUpperCase();
      nameArray = new Array("GIF","JPG", "JPEG");
      var isImage = false;
      for ( i=0; i<nameArray.length ; i++){
        if ( nameArray[i] == str ){
          isImage = true;
          break;
        }
      }
      if (!isImage) {
        alert('ÀÌ¹ÌÁö ÆÄÀÏÀº GIF, JPG, JPEG Æ÷¸Ë¸¸ °¡´ÉÇÕ´Ï´Ù.');
        obj.focus();
        return false;
      } else {
        return true;
      }
    } else {
      return true;
    }
  }

  function l_checkImageFile2(obj){
    var str = obj.value;
    if (str != "") {
      str = str.substring(str.lastIndexOf(".")+1).toUpperCase();
      nameArray = new Array("GIF","JPG", "JPEG", "BMP");
      var isImage = false;
      for ( i=0; i<nameArray.length ; i++){
        if ( nameArray[i] == str ){
          isImage = true;
          break;
        }
      }
      if (!isImage) {
        alert('ÀÌ¹ÌÁö ÆÄÀÏÀº GIF, JPG, JPEG, BMP Æ÷¸Ë¸¸ °¡´ÉÇÕ´Ï´Ù.');
        obj.focus();
        return false;
      } else {
        return true;
      }
    } else {
      return true;
    }
  }

  // ÆË¾÷
  function l_commonPopup(link, pagename, width, height, isscroll, isresizable, iscenter) {

    var wd = width;
    var ht = height;
    var popup_box;
    if (iscenter=='yes') {
      var sx = (screen.width/2) - (wd/2);
      var sy = (screen.height/2) - (ht/2);
      
      popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+sx+", top="+sy+", scrollbars="+isscroll+", resizable="+isresizable+",status=no");
    } else {
      popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", scrollbars="+isscroll+", resizable="+isresizable+",status=no");
    }
    if(popup_box != null){
      popup_box.focus();
    }
    return popup_box;

  }

  function l_commonPopup1(link, pagename, width, height, isscroll, isresizable, iscenter) {

    var wd = width;
    var ht = height;

    var popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", scrollbars="+isscroll+", resizable="+isresizable);
    if(popup_box != null)
      popup_box.focus();
    return popup_box;

  }
  
  // ÆË¾÷ - ³ÐÀÌ´Â °¡¿îµ¥, ³ôÀÌ´Â »ó´Ü
  function l_commonPopup2(link, pagename, width, height, isscroll, isresizable, iscenter) {

    var wd = width;
    var ht = height;
    var sx = 0; // default
    var sy = 0;

    if (iscenter=='yes') {
      sx = (screen.width/2) - (wd/2);
      //sy = (screen.height/2) - (ht/2);
    }

    var popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+sx+", top="+sy+", scrollbars="+isscroll+", resizable="+isresizable);
    if(popup_box != null)
      popup_box.focus();
    return popup_box;

  }
  // ÆË¾÷ - À§Ä¡ ÁöÁ¤
  function l_commonPopup3(link, pagename, width, height, left, top, isscroll, isresizable, iscenter) {

    var wd = width;
    var ht = height;
    var sx = left; // default
    var sy = top;

    if (iscenter=='yes') {
      sx = (screen.width/2) - (wd/2);
      sy = (screen.height/2) - (ht/2);
    }

    var popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+sx+", top="+sy+", scrollbars="+isscroll+", resizable="+isresizable);
    if(popup_box != null)
      popup_box.focus();
    return popup_box;

  }

  // ÆË¾÷Â÷´Ü¿©ºÎ È®ÀÎ
  function isPopupBlock() {
    win = window.open("","","width=1,height=1,left=100000,top=100000");
    if(!win) {
      return true; // Â÷´Ü»óÅÂ
    } else {
      win.close();
      return false; // Çã¿ë»óÅÂ
    }
  }

  // ¸Þ¼¼Áö¹Ú½º - À§Ä¡ ÁöÁ¤
  function l_commonMsgBox(link, pagename, width, height, left, top, isscroll, isresizable, iscenter) {

    var wd = width;
    var ht = height;
    var sx = left; // default
    var sy = top;

    if (iscenter=='yes') {
      sx = (screen.width/2) - (wd/2);
      sy = (screen.height/2) - (ht/2);
    }

    strAppVersion = navigator.appVersion;
    if (strAppVersion.indexOf('MSIE')!=-1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1)>4) {
      winstyle = "dialogWidth="+width+"px; dialogHeight:"+height+"px; center:"+iscenter;
      popup_box = window.showModelessDialog(link, null, winstyle);
    } else {
      popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+sx+", top="+sy+", scrollbars="+isscroll+", resizable="+isresizable);
    }

    popup_box.focus();
    return popup_box;

  }

  function l_layerPopup(popupid) {
		var popup = document.getElementById(popupid);
    popup.style.pixelLeft = event.clientX - 50;
    popup.style.pixelTop = event.clientY + document.body.scrollTop + 3;
  	popup.style.visibility = "visible";
  }
  
  // ÄíÆù ¹Þ±â ¼º°ø ·¹ÀÌ¾î ÆË
  function l_layerPopup2(popupid) {
    var popup = document.getElementById(popupid);
    popup.style.pixelLeft = getObjLeft($('oNlinePosition'))-300;
    popup.style.pixelTop = getObjBottom($('oNlinePosition'))-2;
    popup.style.visibility = "visible";
  }
  
  function closeONlineCoupon() {
    l_layerPopupClose('couponSuccessDiv');
  }

  function l_layerPopupFix(popupid, position) {
		var popup = document.getElementById(popupid);
	  popup.style.pixelLeft = getObjLeft(position);
	  popup.style.pixelTop = getObjBottom(position)-2;
	  new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
	  new Effect.Move(popup, { x: 0, y: 3, mode: 'relative', duration: 0.2});
	  //new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }

  function l_layerPopupFixR(popupid, position) {
		var popup = document.getElementById(popupid);
	  popup.style.pixelLeft = (getObjLeft(position) + position.offsetWidth) - popup.style.pixelWidth;
	  popup.style.pixelTop = getObjBottom(position)-2;
	  new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
	  new Effect.Move(popup, { x: 0, y: 3, mode: 'relative', duration: 0.2});
	  //new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }
  
  // ¼îÇÎ ºä ·¹ÀÌ¾î 
  function purchasePopupFixR1(popupid, position) {
    var popup = document.getElementById(popupid);
    popup.style.pixelLeft = (400 + getObjLeft(position) + position.offsetWidth) - popup.style.pixelWidth;
    popup.style.pixelTop = getObjBottom(position)-2;
    new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
    new Effect.Move(popup, { x: 0, y: 3, mode: 'relative', duration: 0.2});
    //new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }

  function l_layerPopupTop(popupid, position) {
    var popup = document.getElementById(popupid);
    popup.style.pixelLeft = getObjLeft(position);
    popup.style.pixelTop = getObjTop(position)-popup.style.pixelHeight;
    new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
    new Effect.Move(popup, { x: 0, y: -13, mode: 'relative', duration: 0.2});
    //new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }
  
  function l_layerPopupClose(popupid) {
		var popup = document.getElementById(popupid);
  	popup.style.display = "none";
  }

  function getObjLeft(obj) {
		var nid=obj;
		var s=0;
		while(nid.offsetParent) {
			s +=nid.offsetLeft;
			nid=nid.offsetParent;
		}
		return s;
  }

  function getObjTop(obj) {
		var nid=obj;
		var s=0;
		while(nid.offsetParent) {
			s +=nid.offsetTop;
			nid=nid.offsetParent;
		}
		return s;
	}

	function getObjBottom(obj) {
		var nid=obj;
		var s=0;
		while(nid.offsetParent) {
			s +=nid.offsetTop;
			nid=nid.offsetParent;
		}
		s = s + obj.offsetHeight;
		return s;
	}

  function l_viewImage(filepath) {
    l_commonPopup(filepath, "imageviewer", 700, 500, "yes", "yes", "no");
  }
  
  function view_ebookPopup(url) {
     if (url == "") alert("ÁØºñÁß ÀÔ´Ï´Ù.");
     else l_commonPopup(url, "ebook", 1000, 700, "yes", "yes", "yes");
 }

  // textarea ¹®ÀÚ¼ö ½Ç½Ã°£ Ã¤Å©
  function l_checkLen(obj, len) {
    var t;
    var msglen;
    msglen = 0;
    l = obj.value.length;
    for(k=0; k<l; k++) {
      t = obj.value.charAt(k);
      if (t != '\n') {
        if (escape(t).length > 4)
          msglen += 2;
        else
          msglen++;
      }
    }
    if (len <= msglen) {
      alert(len+"ÀÚ ÀÌ»ó ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù.");
      obj.value = obj.value.substr(1,len);
      obj.blur();
    }
  }

  // ¹®ÀÚ±æÀÌ Ã¼Å©
  function l_checkMaxLength(obj, len) {
    if (obj.value.length > len) {
      alert(len+"ÀÚ ÀÌÇÏ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
      obj.value = obj.value.substr(1,len);
      obj.focus();
      return false;
    }
    return true;
  }

  // Áßº¹ ÀÔ·Â ¹æÁö alert
  function l_dontclick() {
    alert('Ã³¸®ÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù¸®ÁÖ½Ê½Ã¿ä.');
  }

  // ÁöÁ¤µÈ ±ÛÀÚ¼ö ÀÌ»ó ÀÔ·ÂµÇ¾úÀ»¶§ ´ÙÀ½ Æ÷Ä¿½º·Î ÀÌµ¿
  function l_setNextFocus(obj, obj2, len) {
    if (obj != null && obj2 != null) {
      if (obj.value.length == len) obj2.focus();
    }
  }

  function MM_swapImgRestore(button) {
    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_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
  }

  // ¼¿·ºÆ® ¹Ú½º ±âº»°ª ¼ÂÆÃÇÏ±â
  // Çü½Ä (l_setDefaultSelect(f.type, val) {}
  function l_setDefaultSelect(obj, val) {
    for (i=0; obj!=null && i<obj.length; i++)
      if (obj.options[i].value==val) {
        obj.options[i].selected = true;
        break;
      }
  }

  function l_setDefaultSelectColor(obj, val, color) {
    for (i=0; obj!=null && i<obj.length; i++)
      if (obj.options[i].value==val) {
        obj.options[i].selected = true;
        obj.options[i].style.backgroundColor = color;
        break;
      }
  }

  // ¼¿·ºÆ® ¹Ú½º ¼±ÅÃÇÑ °ª ¹ÝÈ¯ (oumgun)
  // Çü½Ä if (l_checkedSelect(f.type) == " ") {}
  function l_checkedSelect(obj) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx < obj.length; inx++) {
        if (obj[inx].selected)
          return obj[inx].value;
      }
    } else if (obj!=null && obj.length == 1) {
      return obj.value;
    } else if (obj!=null) {
      if (obj.selected)
        return obj.value;
    }
    return "";
  }

  // ¹Ýµå½Ã ¼±ÅÃÇØ¾ßÇÏ´Â ¼¿·ºÆ® ¹Ú½º¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_selectCheckMust(obj, title)
  {
    var str = obj.value;

    if (str==null || str=='') {
      alert(title+" ¹Ýµå½Ã ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
      obj.focus();
      return false;
    }

    return true;
  }

  //·¹ÀÌ¾î ¿À¹ö½Ã ¼¿·ºÆ® ¹Ú½º ¼û±â±â
	function l_selectHidden(id) {
    var obj = eval("document.getElementById('" + id + "')");            
    obj.style.visibility = 'hidden';
	}  

  //·¹ÀÌ¾î ¶°³¯½Ã ¼¿·ºÆ® ¹Ú½º º¸ÀÌ±â
  function l_selectVisible(id) {
    var obj = eval("document.getElementById('" + id + "')");            
    obj.style.visibility = 'visible';
  } 

  //¼¿·ºÆ® ¹Ú½º Ã£¾Æ¼­ ¼û±â±â
  function select_hidden(layer_id) { 

	  var ly = eval(layer_id); 
	
	  // ·¹ÀÌ¾î ÁÂÇ¥ 
	  var ly_left = ly.offsetLeft; 
	  var ly_top = ly.offsetTop; 
	  var ly_right = ly.offsetLeft + ly.offsetWidth; 
	  var ly_bottom = ly.offsetTop + ly.offsetHeight; 
	
	  // ¼¿·ºÆ®¹Ú½ºÀÇ ÁÂÇ¥ 
	  var el; 

    for (i=0; i<document.forms.length; i++) { 
        for (k=0; k<document.forms[i].length; k++) { 
          el = document.forms[i].elements[k]; 
            if (el.type == "select-one") { 
              
              var el_left = el_top = 0; 
              var obj = el; 
              if (obj.offsetParent) { 
                while (obj.offsetParent) { 
                el_left += obj.offsetLeft; 
                el_top += obj.offsetTop; 
                obj = obj.offsetParent; 
                } 
              } 
              el_left += el.clientLeft; 
              el_top += el.clientTop; 
              el_right = el_left + el.clientWidth; 
              el_bottom = el_top + el.clientHeight; 
              
              if((ly_right >= el_left && ly_left <= el_right && ly_bottom >= el_top && ly_top <= el_bottom) ||
              (ly_right <= el_left && ly_left <= el_right && ly_bottom >= el_top && ly_top <= el_bottom)
              ) 
              
              { 
                el.style.visibility = 'hidden'; 
              }

            } 
          } 
      } 
  } 

  function select_visible(){ 
    for (i=0; i<document.forms.length; i++) { 
      for (k=0; k<document.forms[i].length; k++) { 
      el = document.forms[i].elements[k]; 
      if (el.type == "select-one" && el.style.visibility == 'hidden') 
      el.style.visibility = 'visible'; 
      } 
    } 
  }

  function popupLayerSelectHidden() {
    var poplayer = document.all['popupLayerSelect'];
    
    if (poplayer != null) {
      //poplayer.style.pixelLeft = event.clientX - 50;
      //poplayer.style.posTop  = event.clientY + document.body.scrollTop + 3;

      if (viewflag == false) {
        select_hidden('popupLayerSelect');
        poplayer.style.visibility = "visible";
        viewflag = true;
      } else {
        select_visible() ;
        poplayer.style.visibility = "hidden";
        viewflag = false;
      }
    }
  }
    
  // Ã¼Å©¹Ú½º, ¶óµð¿À ±âº»°ª ¼ÂÆÃÇÏ±â
  // Çü½Ä (l_setDefaultRadio(f.type, val) {}
  function l_setDefaultRadio(obj, val) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx<obj.length; inx++) {
        if (obj[inx].value==val)
          obj[inx].checked = true;
      }
    } else if (obj!=null) {
      if (obj.value==val)
        obj.checked = true;
    }
  }

  // Ã¼Å©¹Ú½º ±âº»°ª ¼ÂÆÃÇÏ±â
  // Çü½Ä (l_setDefaultCheckbox(f.type, val, token) {}
  function l_setDefaultCheckbox(obj, val, token) {
    var arr_val;
    if (val != null)
      arr_val = val.split(token);

    if (obj != null && obj.length > 1) {
      for (var i=0;i<obj.length;i++) {
        for (var j=0;j<arr_val.length;j++) {
          if (obj[i].value == arr_val[j])
            obj[i].checked = true;
        }
      }
    } else if (obj != null) {
      for (var i=0;i<arr_val.length;i++) {
        if (obj.value == arr_val[i])
          obj.checked = true;
      }
    }
 }

  // Ã¼Å©¹Ú½º ¼±ÅÃÇÑ °ª ±¸ºÐÀÚ·Î ±¸ºÐÇØ¼­ ¹ÝÈ¯
  // Çü½Ä if (l_checkedCheckbox(f.type, '^') == " ") {}
  function l_checkedCheckbox(obj, token) {
  	var rval = "";
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx < obj.length; inx++) {
        if (obj[inx].checked)
        	rval += obj[inx].value+token;
      }
    } else if (obj!=null) {
      if (obj.checked)
      	rval += obj.value;
    }
    return rval;
  }

  // Ã¼Å©¹Ú½º, ¶óµð¿À ¼±ÅÃÇÑ °ª ¹ÝÈ¯ (zkm)
  // Çü½Ä if (l_checkedRadio(f.type) == " ") {}
  function l_checkedRadio(obj) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx < obj.length; inx++) {
        if (obj[inx].checked)
          return obj[inx].value;
      }
    } else if (obj!=null) {
      if (obj.checked)
        return obj.value;
    }
    return " ";
  }

  // Ã¼Å©¹Ú½º, ¶óµð¿À ¹öÆ° ¼±ÅÃÀ¯¹« °Ë»çÇÏ±â (zkm)
  // Çü½Ä if (!l_checkMustButton(f.type, "Å¸ÀÔÀ»")) return false;
  function l_checkMustButton(obj, title) {
    if (obj==null) {
      alert(title.slice(0, -1) +"ÀÌ(°¡) ¾ø½À´Ï´Ù..");
      return false;
    }
    else if (l_checkedRadio(obj) == " ") {
      alert(title+" ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù.");

      if (obj.length > 1) {
        if (!obj[0].disabled)
          obj[0].focus();
      }
      else if (!obj.disabled) {
        //obj.focus();
      }
      return false;
    }
    return true;
  }

  // ÀÌ¸§ÀÌ °°Àº Ã¼Å©¹Ú½º ¸ðµÎ ¹ÝÀü
  function l_checkAll(obj) {
    if (obj.length != null) {
      for (i=0; i<obj.length; i++) {
        obj[i].checked = !obj[i].checked
      }
    } else {
      if (obj != null)
        obj.checked = !obj.checked
    }
  }

  // ÀÌ¸§ÀÌ °°Àº Ã¼Å©¹Ú½º¿¡¼­ ¼±ÅÃµÈ Ã¼Å©¹Ú½º °¹¼ö °¡Á®¿À±â
  function l_countcheck(obj) {
    var count = 0;
    if (obj.length != null) {
      for (i=0; i<obj.length; i++) {
        if (obj[i].checked == true)
          count++;
      }
    } else {
      if (obj != null && obj.checked == true)
          count++;
    }
    return count;
  }

  // ÀÌ¸§ÀÌ °°Àº Ã¼Å©¹Ú½º ¸ðµÎ ¼±ÅÃ/Ãë¼Ò, isCheck : T/F
  function l_selectAll(obj,isCheck) {
  	if (obj!=null & obj.length > 1) {
	    for (i=0; i<obj.length; i++) {
	      if (isCheck=="T") obj[i].checked = true;
	      else obj[i].checked = false;
	    }
  	}
  	else if (obj != null) {
  		if (isCheck=="T") obj.checked = true;
	    else obj.checked = false;
  	}
  }
  // obj1 : ÀüÃ¼¼±ÅÃ checkbox, obj2 : ¼±ÅÃµÇ¾îÁö´Â checkbox
  function l_selectAll2(obj1, obj2) {
    if(obj2!=null && obj2.length!=null) {
      if(obj1.checked) {
        l_selectAll(obj2, "T");
      } else {
        l_selectAll(obj2, "F");
      }
    } else if(obj2!=null) {
      if(obj1.checked) {
        obj2.checked=true;
      } else {
        obj2.checked=false;
      }
    }
  }

  function l_disableObj(obj) {
    if (obj != null && obj.length > 1) {
      for (var i=0;i<obj.length;i++) {
        obj[i].disabled = true;
      }
      obj.disabled = true;
    } else if (obj != null) {
      obj.disabled = true;
    }
  }

  function l_enableObj(obj) {
    if (obj != null && obj.length > 1) {
      for (var i=0;i<obj.length;i++) {
        obj[i].disabled = false;
      }
      obj.disabled = false;
    } else if (obj != null) {
      obj.disabled = false;
    }
  }

  // obj1 ~ obj6 ±îÁöÀÇ °´Ã¼¸¦ disable Ã³¸®
  // flag : ¶óµð¿À¹öÆ°ÀÎ°æ¿ì flag¿¡ Y/N ¼ÂÆÃÇØ¼­ ³Ñ±â°í flagobj ¿¡ '' ³Ñ±ä´Ù.
  // flagobj : Ã¼Å©¹Ú½ºÀÎ°æ¿ì flagobj°¡ Ã¼Å©µÇ¸é ºñÈ°¼º ¾Æ´Ï¸é È°
  function l_swapDisableObj(flag, flagobj, obj1, obj2, obj3, obj4, obj5, obj6) {
    if (flag == "") { // ÇÃ·¡±×°¡ ¼³Á¤µÇÁö ¾ÊÀº °æ¿ì
      if (flagobj != null && flagobj.checked)
        flag = "N";
      else
        flag = "Y";
    }

    if (flag == "N") {
      if (obj1 != undefined && obj1 != null)
        l_disableObj(obj1);
      if (obj2 != undefined && obj2 != null)
        l_disableObj(obj2);
      if (obj3 != undefined && obj3 != null)
        l_disableObj(obj3);
      if (obj4 != undefined && obj4 != null)
        l_disableObj(obj4);
      if (obj5 != undefined && obj5 != null)
        l_disableObj(obj5);
      if (obj6 != undefined && obj6 != null)
        l_disableObj(obj6);
    } else {
      if (obj1 != undefined && obj1 != null)
        l_enableObj(obj1);
      if (obj2 != undefined && obj2 != null)
        l_enableObj(obj2);
      if (obj3 != undefined && obj3 != null)
        l_enableObj(obj3);
      if (obj4 != undefined && obj4 != null)
        l_enableObj(obj4);
      if (obj5 != undefined && obj5 != null)
        l_enableObj(obj5);
      if (obj6 != undefined && obj6 != null)
        l_enableObj(obj6);
    }
  }

  // ³â, ¿ù¿¡ µû¸¥ ¸»ÀÏ ¼ÂÆÃÇÏ±â
  // °´Ã¼¸¸ ³Ñ±ä´Ù
  function l_makeDay(yyyy, mm, dd) {

    var yearNum = Number(yyyy.value);
    var m = Number(mm.value) - 1;
    var endday = new Array(31,28,31,30,31,30,31,31,30,31,30,31);

    if ((yearNum%4==0 && yearNum%100!=0) || yearNum%400==0)
      endday[1] = 29;

    for (i=dd.length+1; i<=endday[m]; i++) {
      if (i < 10)
        dd.options[i-1] = new Option("0"+i, "0"+i);
      else
        dd.options[i-1] = new Option(i, i);
    }
    dd.length = endday[m];
  }
  // ¼±ÅÃÀÌ ÀÖÀ»¶§
  function l_makeDay2(yyyy, mm, dd) {

    if(yyyy.value!='' && mm.value!='') {

      var yearNum = Number(yyyy.value);
      var m = Number(mm.value) - 1;
      var endday = new Array(31,28,31,30,31,30,31,31,30,31,30,31);

      if ((yearNum%4==0 && yearNum%100!=0) || yearNum%400==0)
        endday[1] = 29;

      for (i=dd.length; i<=endday[m]; i++) {
        if (i < 10)
          dd.options[i] = new Option("0"+i, "0"+i);
        else
          dd.options[i] = new Option(i, i);
      }
      dd.length = endday[m]+1;

    } else {
      dd.length = 1;
    }
  }

  function l_setDisable(obj) {
    obj.disabled=true;
    obj.style.background="#EFEFEF";
  }

  function l_setEnable(obj) {
    obj.disabled=false;
    obj.style.background="#FFFFFF";
    obj.focus();
  }

  function l_formatMoney(str) {
    var money = "";
    str = new String(str);
    var fgminus	=	false;
    
    if(str.substring(0,1)=='-'){
    	fgminus	=	true;
    	str	=	str.substring(1,str.length);
    }
    
    var len = str.length;
    if (len <= 3)
      money = str;
    else if (len <= 6)
      money = str.substring(0,len-3)+","+str.substring(len-3,len);
    else if (len <= 9)
      money = str.substring(0,len-6)+","+str.substring(len-6,len-3)+","+str.substring(len-3,len);

		if(fgminus) money	='-'+money;
		
    return money;
    
  }
  function l_formatDate(str,division) {
    var year	=	str.substring(0,4);
    var month	=	str.substring(5,7);
    var day	=	str.substring(8,10);
    var date	=year+division+month+division+day;
    return date;
  }
  // À½¾ÇÆÄÀÏ ½ÇÇà
  function playSound(filename) {
    document.all.music.src='http://www.dongahomeschool.com/file/mp3/' + filename; // ½ÇÁ¦
  }

  function MM_preloadImages() {
    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_findObj(n, d) {
    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_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_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 changeLinkFocus() {
     var len = document.links.length;
     for(var i=0;i<len;i++){
         document.links[i].onfocus = function(){this.blur();}
     }
  }

  // write document contents
  function documentwrite(src) {
    document.write(src);
  }

  // browser type
  function getNavigatorType() {
    if ( navigator.appName == "Microsoft Internet Explorer" )
      return 1;
    else if ( navigator.appName == "Netscape" )
      return 2;
    else
      return 0;
  }
  // browser version
  function getNavigatorVersion() {
    info = window.navigator.appVersion.split(" ");
    return info[0];
  }

  // ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ° Å¬¸¯ ±ÝÁö
  function l_keypressed() {
    if((event.ctrlKey==true && (event.keyCode>=65 || event.keyCode<=82)) || (event.keyCode>=112 && event.keyCode<=123) || event.keyCode==8) {
      event.keyCode = 0;
      event.cancelBubble = true;
      event.returnValue = false;
    }
  }
  function l_rightclick() {
    return false;
  }

  function action(url) {
    //top.main.document.location = url;
    top.document.location = url;
  }

  function link(url) {
    //top.main.document.location = url;
    top.document.location = url;
  }
  
  function toplink(url,type) {
   
    if(url.indexOf('http') > 0){
      top.document.location = url;
    }else{
	   var arr_splitUrl = document.URL.split('/');
	   var top_domain  = arr_splitUrl[2];
      
	    if(type == 's'){
	      top.document.location = 'https://'+top_domain+url;
	    }else{
	      if(url == '/click/click_info.html?code=textbook' || url == '/click/click_info.html?code=club') {
	      window.open(url);
	      } else {
	      top.document.location = 'http://'+top_domain+url;
	      }
	      
	    }
    }
  }
  
  function clickViewExcel(excelurl) {
    window.open(excelurl, "excelviewer", "width=920, height=600, left=0, top=0, scrollbars=yes, resizable=yes, menubar=yes");
  }

  function pleaseLogin() {
    alert("·Î±×ÀÎ ÇÏ¼Å¾ß »ç¿ë °¡´ÉÇÕ´Ï´Ù.");
    if (opener != null) {
      opener.document.location = "/member/loginCheck.html";
      window.close();
    } else {
      document.location = "/member/loginCheck.html";
    }
  }
  function viewFlash(flashname, width, height) {
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
    document.write("<param name='movie' value='"+flashname+"'>");
    document.write("<param name='quality' value='high'>");
    document.write("<embed src='"+flashname+"' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
  }

  function mainviewFlash(flashname, width, height) {
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"'>");
    document.write("<param name='movie' value='"+flashname+"'>");
    document.write("<param name='quality' value='high'>");
    document.write("<param name='bgcolor' value='#ffffff' /> ");
    document.write("<param name='wmode' value='transparent' />");
    document.write("<embed src='"+flashname+"' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
  }

  function l_cipherNum(num, cipher) {
    var numlength = (num.toString()).length;
    var applength = cipher - numlength;
    for (i=0; i<applength; i++)
      num = '0' + num;
    return num;
  }

  // ÇöÀç³¯Â¥ ¹ÝÈ¯ YYYY-MM-DD
  function l_getDate() {
    var today = new Date();
    return (today.getYear()+'-'+l_cipherNum((today.getMonth()+1), 2)+'-'+l_cipherNum(today.getDate(), 2));
  }

  // ÇöÀç ½Ã°£ ¹ÝÈ¯ hh:mm:ss
  function l_getTime() {
    var today = new Date();
    return (l_cipherNum(today.getHours(), 2)+':'+l_cipherNum(today.getMinutes(), 2)+':'+l_cipherNum(today.getSeconds(), 2));
  }

  // ÇöÀç ³¯Â¥ ½Ã°£ ¹ÝÈ¯ YYYY-MM-DD hh:mm:ss
  function l_getDateTime() {
    return (l_getDate()+' '+l_getTime());
  }

  // ¹®ÀÚ¿­ Ä¡È¯
  function replace(str,sstr,rstr) {
    return String(str).replace(new RegExp(sstr,"ig"),rstr);  // i´Â ´ë¼Ò¹®ÀÚ ±¸ºÐ¾ø°í, g´Â Áßº¹µÇ¾îµµ ´ÙÃ³¸®
  }

  // HTML Tag &lt; &gt; ·Î Ä¡È¯
  function replaceHTMLTag(str) {
  	str = replace(str, "<", "&lt;");
		str = replace(str, ">", "&gt;");
    return str;
  }

  function trimText(str, len) {
  	if (str.length > len)
  		str = str.substring(0, len)+'..';
  	return str;
  }

	// numbers typeof Array
  function min(numbers) {
  	var min = 0;
  	for (i=0; i<numbers.length; i++) {
  		min = numbers[i];
  		if (min>numbers[i]) {
  			min = numbers[i];
  		}
  	}
  	return min;
  }

	// numbers typeof Array
  function max(numbers) {
  	var max = 0;
  	for (i=0; i<numbers.length; i++) {
  		if (max<numbers[i]) {
  			max = numbers[i];
  		}
  	}
  	return max;
  }

  function l_commonHiddenButton(button_name, is_view_msg, td_id, msg, font_color) {
		var obj = eval("document.images['" + button_name + "']");

		if (obj != null) {
			obj.style.display = "none";

			if (is_view_msg != null && is_view_msg == "Y") {
				if (msg == null || msg == "") msg = "Ã³¸®ÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ¼¼¿ä.";
				if (font_color == null || font_color == "") font_color = "red";

				html_msg = 	"<table width='100%' border='0' cellpadding='0' cellspacing='0'>"
									+	"	 <tr>"
									+ "		 <td align='center'><font color='" + font_color + "'><BLINK>" + msg + "</BLINK></font></td>"
									+ "	 </tr>"
									+	"</table>";

				var table = eval("document.getElementById('" + td_id + "')");
				table.innerHTML = html_msg;

  			if (document.all) setInterval("doBlink()" ,800);
			}
		}
	}

	 //Æ¯¼ö¹®ÀÚ(|) ÀÔ·Â ±ÝÁö
  function l_checkChar(obj, nostr)
  {
    var str = obj.value;

      if (str.indexOf(nostr) >= 0) {
        alert("'"+nostr+"'¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    return true;
  }

  function getCookie( name ) {
	  var nameOfCookie = name + "=";
	  var x = 0;
	  while ( x <= document.cookie.length )
	  {
	    var y = (x+nameOfCookie.length);
	    if ( document.cookie.substring( x, y ) == nameOfCookie ) {
	      if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
	       endOfCookie = document.cookie.length;
	      return unescape( document.cookie.substring( y, endOfCookie ) );
	    }
	    x = document.cookie.indexOf( " ", x ) + 1;
	    if ( x == 0 )
	      break;
	  }
	  return "";
	}

//TreeEvent Flash Popup
	function viewFlashhpmath(flashname,dongakidcheck, width, height) {
  	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='dd_game_0701_01' align='middle'>");
  	document.write("<param name='movie' value='"+flashname+"'>");
	  document.write("<PARAM NAME=wmode VALUE=transparent>");
  	document.write("<param name='quality' value='high'>");
  	document.write("<param name='bgcolor' value='#ffffff' />");
		document.write("<param name='FlashVars' value='dongakidcheck=Y' />");
  	document.write("<embed src='dd_game_0701_01.swf' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='dd_game_0701_01' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
  }
  function eventviewFlash(flashname, width, height,logincheck){
   document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='700' height='284'>");
   var loginchecks = "";
   if(logincheck == "true"){
   	loginchecks = 1;
   }
	 document.write("<param name='movie' value='/image/swf/071121_event_top.swf?login="+loginchecks+"'>");
	 document.write("<param name='quality' value='high'>");
	 document.write("<embed src='/image/swf/071121_event_top.swf' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='700' height='284'></embed>");
	 document.write("</object>");
  }
  function viewdiv(img){
  	var html = "";
  	html += "<TABLE id='Table1' border='0'>";
		html += "<TR><TD><IMG src='/popup/img/"+img+"' border='0'></TD></TR>";
		html += "</TABLE>";
		H.innerHTML = html;	
  }
  
  function viewdiv_pos() {
  	H.style.posLeft = event.x + document.body.scrollLeft - 80 ; 
  	H.style.posTop = event.y+10  + document.body.scrollTop;
	}

	function viewdiv_hide(){ H.innerHTML = ''; }
	
	// Æ÷Ä¿½º ÀÚµ¿ ÀÌµ¿
	// <input name="isbn1" type="text" class="inputttext" size="2" maxlength="2" onKeyup="l_nextFocus(isbn1, isbn2, 2);"> 
  function l_nextFocus(obj, obj2, len) {
  	if (obj != null && obj2 != null) {
  		if (obj.value.length == len) obj2.focus();
  	}
  }
  
  function showflashes(_file_, _width_, _height_) {
	  var _object_ = "";
	  _object_ += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ _width_ +'" height="'+ _height_ +'">';
	  _object_ += '<param name="movie" value="'+ _file_ +'">';
	  _object_ += '<param name="quality" value="high">';
	  _object_ += '<param name="wmode" value="transparent">';
	  _object_ += '<embed src="'+ _file_ +'" wmode="transparent" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ _width_ +'" height="'+ _height_ +'"></embed>';
	  _object_ += '</object>';
	
	  document.write(_object_);
  }
  
	/* ÇÑ±Û, ¿µ¹® */
  function IsCheckName(strValue, strMsg) {
	var isKorea ;
	var isEnglish;
	var pattern = new RegExp("[^°¡-Èþ¤¡-¤¾]", "i");
	
	if (pattern.exec(strValue) == null) {
		isKorea = true ;
	} else {
	    //alert(strMsg + "´Â ÇÑ±Û ¶Ç´Â  ¿µ¹® ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù." );
	    isKorea = false;
	}
	
	var pattern2 = new RegExp("[^a-zA-Z]", "i");
	
	if (pattern2.exec(strValue) == null) {
		isEnglish = true ;
	} else {
	    //alert(strMsg + "´Â ÇÑ±Û ¶Ç´Â  ¿µ¹® ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù." );
	    isEnglish = false;
	}
	
	
	if(!isKorea && !isEnglish){
		alert(strMsg + "´Â ÇÑ±Û,¿µ¹® Á¶ÇÕ ¶Ç´Â Æ¯¼ö¹®ÀÚ,¼ýÀÚ ´Â  ÀÔ·Â ÇÒ¼ö ¾ø½À´Ï´Ù." );
		return false;
	}
	
	if(isKorea && !isEnglish){
		return true;	//ÇÑ±Û¸¸ 
	}

	if(isEnglish && !isKorea){
		return true;	//¿µ¾î¸¸
	}
	

	
  }
  
  	//Çö µµ¸ÞÀÎ Á¤º¸ ¸®ÅÏ(2010.09.02 ¿°ºÀ°É Ãß°¡)
	function Host(){ 
		var Dns; 
		Dns=location.href; 
		Dns=Dns.split("//"); 
		Dns=Dns[1].substr(0,Dns[1].indexOf("/")); 
		return Dns; 
	} 

  
//-->