<!--
  function not_login(returl){
    var msg = "·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ¼­ºñ½ºÀÔ´Ï´Ù."
    if(confirm(msg)){
      document.location.href = "/Member/Login.asp?returl=" + returl;
    }else{
      return;
    }
  }

  function win_open(winname,strlink,width,height,scroll){
    window.open(strlink,winname,'width=' + width + ',height=' + height + ',scrollbars=' + scroll + ',resizable=no');
    return;
  }

  function goBoard(board_link,bc_seq,method,page,b_seq,search_key,search_word){
    document.location.href = board_link + "?bc_seq=" + bc_seq + "&method=" + method + "&page=" + page + "&b_seq=" + b_seq + "&search_key=" + search_key + "&search_word=" + search_word;
  }

  function goQna(board_link,method,page,q_seq,q_type,s_word){
    document.location.href = board_link + "?method=" + method + "&page=" + page + "&q_seq=" + q_seq + "&q_type=" + q_type + "&s_word=" + s_word;
  }

  function openImage(target_img) {
    var newImg = new Image();
    newImg.src = target_img.src;
    imgw = newImg.width;
    imgh = newImg.height;

    var maxWidth = screen.width;
    var maxHeight = screen.height;

    if(imgw > maxWidth || imgh > maxHeight){
      if(imgw > imgh){
        if(imgw > maxWidth)
          newWidth = maxWidth;
        else
          newWidth = imgw;
          newHeight = Math.round((imgh * newWidth) / imgw);
      }else{
        if(imgh > maxHeight)
          newHeight = maxHeight;
        else
          newHeight = imgh;
          newWidth = Math.round((imgw * newHeight) / imgh);
      }
    }else{
      newWidth = imgw;
      newHeight = imgh;
    }

    var window_left = (maxWidth - newWidth)/2;
    var window_top = (maxHeight - newHeight)/2;

    image = window.open('', '', 'width=' + newWidth + ', height=' + newHeight + ', scrollbars=no,top=' + window_top + ',left=' + window_left + '');
    image.document.write('<body topmargin=0 leftmargin=0 marginheight=0 marwidth=0>');
    image.document.write('<a href=javascript:window.close() title=Ã¢´Ý±â>');
    image.document.write('<img src=\"' + newImg.src + '\" width=' + newWidth + ', height=' + newHeight + ' border=0></a></body>');
  }

  // ±×¸² ÀÌ¹ÌÁö ºñ·Ê Á¶Á¤
  function resizeImg(target_img,s_width,s_height){
    var newX;
    var newY;
    var newHeight;
    var newWidth;
    var maxWidth = s_width;
    var maxHeight = s_height;
    var newImg = new Image();
    newImg.src = target_img.src;
    imgw = newImg.width;
    imgh = newImg.height;

    if(imgw > maxWidth || imgh > maxHeight){
      if(imgw > imgh){
        if(imgw > maxWidth)
          newWidth = maxWidth;
        else
          newWidth = imgw;
          newHeight = Math.round((imgh * newWidth) / imgw);
      }else{
        if(imgh > maxHeight)
          newHeight = maxHeight;
        else
          newHeight = imgh;
          newWidth = Math.round((imgw * newHeight) / imgh);
      }
    }else{
      newWidth = imgw;
      newHeight = imgh;
    }
    newX = maxWidth / 2 - newWidth / 2;
    newY = maxHeight / 2 - newHeight / 2;
    target_img.onload = null;
    target_img.src = newImg.src;
    target_img.width = newWidth;
    target_img.height = newHeight;
  }

  /*** ºÎ¸ð iframe »çÀÌÁî º¯°æÇÏ´Â  function */
  function resizeParentIframe(iframeObj, w, h){
    if(iframeObj) {
      iframeObj.width=w;
      iframeObj.height=h;
    }
  }

  // ±âº» ½ºÅ©¸³Æ®
  function chkNull(obj, msg){
    if(obj.value.split(" ").join("") == ""){
      alert(msg);
      if(obj.type != "hidden"){
        obj.focus();
      }
      return false;
    }else{
      return true;
    }
  }

  function chkLen(obj, minSize, maxSize, msg){
    if(minSize > maxSize){
      alert(obj.name + '¿¡ ´ëÇÑ ±æÀÌ Ã¼Å©¿¡ Àß¸øµÈ ¹üÀ§¸¦ »ç¿ëÇß½À´Ï´Ù.');
      return false;
    }

    var objval_len = obj.value.length;
    var temp;

    for(i = 0; i < objval_len; i++){
      temp = obj.value.charAt(i);
      if(escape(temp).length > 4)
      objval_len++;
    }

    if((objval_len < minSize) || (objval_len > maxSize)){
      alert(msg);
      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function chkByte(obj, minSize, maxSize, msg){
    var curText;
    var strLen;
    var byteIs;
    var lastByte;
    var thisChar;
    var escChar;
    var curTotalMsg;
    var okMsg;

    curText = new String(obj.value);
    strLen = curText.length;
    byteIs = 0;

    for(i=0; i<strLen; i++) {
      thisChar = curText.charAt(i);
      escChar = escape(thisChar);

      // ¢¥,¡§, ¢¬ : 2byte ÀÓ¿¡µµ ºê¶ó¿ìÁ®¿¡¼­ 1byte·Î °è»ê
      if(thisChar == "¢¥" || thisChar == "¡§" || thisChar == "¢¬" || thisChar == "¡×" ){
        byteIs++;
      }

      if (escChar.length > 4) {
        byteIs += 2;  //Æ¯¼ö¹®ÀÚ ÇÑ±ÛÀÎ °æ¿ì.
      }else if(thisChar != '\r') {  //°³ÇàÀ» Á¦¿ÜÇÑ ÀÌ¿ÜÀÇ °æ¿ì
        byteIs += 1;
      }

      lastByte = byteIs;
    }

    if((byteIs < minSize) || (byteIs > maxSize)){
      alert(msg);
//      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function number_validate(theForm){
    if(theForm.value != ""){
      var str=theForm.value;
      for(var i = 0; i< str.length; i++){
        var ch = str.substring(i, i + 1);
        if((ch<"0" || ch>"9")){
          alert("¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖÀ¾´Ï´Ù.");
          tye = 1;
          theForm.value="";
          theForm.focus();
          return false;
        }else{
          tye=0;
        }
      }
    }else{
      tye=0;
    }
    return true;
  }

  function chkCheck(obj, msg){
    var cnt = 0;
    if(obj.length > 1){
      for(var i = 0; i < obj.length; i++){
        if(obj[i].checked){
          cnt++;
        }
      }
    }else{
      if(obj.checked){
        cnt++;
      }
    }

    if(cnt == 0){
      alert(msg);
//      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function chkRadio(obj, msg){
    var rchk = "0";
    if(obj.length > 1){
      for(var i = 0; i < obj.length; i++){
        if(obj[i].checked){
          rchk = "1";
          break;
        }
      }
    }else{
      if(obj.checked){
        rchk = "1";
      }
    }

    if(rchk == "0"){
      alert(msg);
      return false;
    }else{
      return true;
    }
  }

  function chkEmail(obj){
    var val = obj.value;

    if(val != ""){
      if(val.indexOf(" ") != -1){
        alert("°ø¹éÇã¿ë µÇÁö ¾Ê½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf("@") < 1){
        alert("'@' ´©¶ôµÇ¾ú½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf(".") == -1){
        alert("'.' ´©¶ôµÇ¾ú½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf(".") - val.indexOf("@") == 1){
        alert("'@' ´ÙÀ½¿¡ ¹Ù·Î '.'ÀÌ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.charAt(val.length-1) == '.'){
        alert("'.'Àº EMAILÁÖ¼Ò ³¡¿¡ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.charAt(val.length-1) == '@'){
        alert("'@'Àº EMAILÁÖ¼Ò ³¡¿¡ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }

    return true;
  }

  function isAlphanumeric(s){
    var i;
    if (isEmpty(s))
      if (isAlphanumeric.arguments.length == 1) return defaultEmptyOK;
      else return (isAlphanumeric.arguments[1] == true);

    for (i = 0; i < s.length; i++) {
      var c = s.charAt(i);

    if (!(isLetter(c) || isDigit(c)))
      return false;
    }
    return true;
  }

  function isDigit(c){
    return ((c >= "0") && (c <= "9"))
  }
  function isEmpty(s){
    return ((s == null) || (s.length == 0))
  }
  function isLetter(c){
    return ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) || c=="_")
  }

  // SET_VALUE
  function set_value(object, value){
    if(object!='[object]'||object=='undefined') return
    if(object.type=='hidden' || object.type=='text' || object.type=='password' || object.type=='textarea'){
      object.value=value
    }else if(object.type=='checkbox'){
      if(object.value.toUpperCase()==value.toUpperCase()) object.checked = true
    }else if(!isNaN(object.length)){
      for(i=0; i<object.length; i++){
        if(object(i).value.toUpperCase()==value.toUpperCase()){
          if(object.type=='select-one') object.value=value
          if(object(0).type=='radio') object(i).checked = true
        }
      }
    }
  }

  // Ã¼Å©¹Ú½º ¹è¿­·ÎÃ¼Å©
  function set_checkarr(object, value){
    if(object!='[object]'||object=='undefined') return;

    var vcnt = value.indexOf(",");

    if(vcnt < 1){
      set_checkbox(object, value);
    }else{
      var szvalue = value.split(",");

      for(var i = 0; i < szvalue.length; i++){
        set_checkbox(object, szvalue[i]);
      }
    }
  }

  // Ã¼Å©¹Ú½ºÃ¼Å©
  function set_checkbox(object, value){
    if(object!='[object]'||object=='undefined') return;

    if(object.length > 1){
      for(var i = 0; i < object.length; i++){
        if(object[i].value.toUpperCase() == value.toUpperCase()) object[i].checked = true;
      }
    }else{
      if(object.value.toUpperCase() == value.toUpperCase()) object.checked = true;
    }
  }

  // ÄÞ¸¶ ³ª´©´Â ºÎºÐ
  function commaSplit(srcNumber){
    var txtNumber = '' + srcNumber;
    var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
    var arrNumber = txtNumber.split('.');
    arrNumber[0] += '.';

    do{
      arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
    }
    while(rxSplit.test(arrNumber[0]));

    if(arrNumber.length > 1){
      return arrNumber.join('');
    }else{
      return arrNumber[0].split('.')[0];
    }
  }

  function f_comma(str_number) {
    var t_align = "right"; // ÅØ½ºÆ® ÇÊµå Á¤·Ä
    var t_num = str_number.value.substring(0,1); // Ã¹±ÛÀÚ È®ÀÎ º¯¼ö
    var num = /^[/,/,0,1,2,3,4,5,6,7,8,9,/]/; // ¼ýÀÚ¿Í , ¸¸ °¡´É
    var cnjValue = "";
    var cnjValue2 = "";
    if(!num.test(str_number.value)) {
      alert('¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
      str_number.value="";
      str_number.focus();
      return false;
    }

    if ((t_num < "0" || "9" < t_num)){
      alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
      str_number.value="";
      str_number.focus();
      return false;
    }

    for(i=0; i<str_number.value.length; i++) {
      if(str_number.value.charAt(str_number.value.length - i -1) != ",") {
        cnjValue2 = str_number.value.charAt(str_number.value.length - i -1) + cnjValue2;
      }
    }

    for(i=0; i<cnjValue2.length; i++) {
      if(i > 0 && (i%3)==0) {
        cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + "," + cnjValue;
      } else {
        cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + cnjValue;
      }
    }

    str_number.value = cnjValue;
    str_number.style.textAlign = t_align;
  }

  function showmenu(menuname,status){
    var layer_name = eval("document.all."+menuname);
    layer_name.style.pixel = Math.ceil(document.body);

    if (status == 'show') { layer_name.style.visibility='visible'; }
    else if (status == 'show2') { layer_name.style.visibility='visible'; }
    else { layer_name.style.visibility='hidden'; }
  }

  function ObjectEmbed(str){
    document.write(str);
  }

    /////////////////////////////////////////////////ÁÖ¹Îµî·ÏÃ¼Å©//////////////////////////////////////////
function chkSSN1(obj) {
	var DT = new Date();
	var curYear  = DT.getYear();
	var curMonth = DT.getMonth()+1;
	var curDay   = DT.getDate();
		
	var inYear  = "19" + obj.value.substr(0, 2);
	var inMonth = obj.value.substr(2,2);
	var inDay   = obj.value.substr(4,2);

	if ( true ==  isSpace(obj) ) {
		alert( ' ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		obj.focus();
		return false;
	}

	if ( false == check_format(obj.value,"0123456789" )) {
		alert ( ' ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.  ' );
		obj.focus();
		obj.select();
		return false;
	}

	if ( inMonth > 12 ) {
		alert( ' À¯È¿ÇÏÁö ¾ÊÀº ´ÞÀÔ´Ï´Ù. ');
		obj.focus();
		obj.select();
		return false;
	}

	
	if ( inDay > 31 ) {
		alert( ' À¯È¿ÇÏÁö ¾ÊÀº ÀÏÀÔ´Ï´Ù. ');
		obj.focus();
		obj.select();
		return false;
	}
	return true;
}	

function chkSSN2(obj){
	if ( true ==  isSpace(obj) ) {
		alert( ' ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		obj.focus();
		return false;
	}

	if ( false == check_format(obj.value,"0123456789" )) {
		alert ( ' ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.  ' );
		obj.focus();
		obj.select();
		return false;
	}

	if ( false == checkRange(obj, 7, 7) ) {
		alert ( ' 7 ÀÚ¸®·Î ÀÔ·ÂÇØÁÖ¼¼¿ä. ');
		obj.focus();
		obj.select();
		return false;
	}
	return true;
}

function chkSSN(strSSno1, strSSno2)   {
	var socialno;
	var i;
	var val0, val1, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11, val12;
	var sum, checkno;
	// check-digit °Ë»ç
	val0  = parseInt(strSSno1.value.charAt(0)) * 2;
	val1  = parseInt(strSSno1.value.charAt(1)) * 3;
	val2  = parseInt(strSSno1.value.charAt(2)) * 4;
	val3  = parseInt(strSSno1.value.charAt(3)) * 5;
	val4  = parseInt(strSSno1.value.charAt(4)) * 6;
	val5  = parseInt(strSSno1.value.charAt(5)) * 7;
	val6  = parseInt(strSSno2.value.charAt(0)) * 8;
	val7  = parseInt(strSSno2.value.charAt(1)) * 9;
	val8  = parseInt(strSSno2.value.charAt(2)) * 2;
	val9  = parseInt(strSSno2.value.charAt(3)) * 3;
	val10 = parseInt(strSSno2.value.charAt(4)) * 4;
	val11 = parseInt(strSSno2.value.charAt(5)) * 5;
	val12 = parseInt(strSSno2.value.charAt(6));

	sum = val0 + val1 + val2 + val3 + val4 + val5 + val6 + val7 + val8 + val9 + val10 + val11;

	checkno = (11-(sum % 11)) % 10;
   if (checkno == val12) return true;
   else {
	   alert('À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù\n´Ù½Ã ÇÑ¹ø È®ÀÎÇØÁÖ¼¼¿ä.');
	   strSSno1.focus();
	   return false;
   }
	 
}

function isSpace(obj) {
	if(obj.value == "") return true;
	else return false;
}

function check_format(TmpValues,strformat) {
   for (i=0; i<TmpValues.length;i++) {
       ch=strformat.indexOf(TmpValues.charAt(i));
       if (ch == '-1') {
           return false;
       } // if end
    } // for end
	return true;
}

function checkRange(obj, intNo1, intNo2)	{
	sum = 0;

	for(var i = 0; i < obj.value.length; i++){
		var k = obj.value.charCodeAt(i) ; 

		if(k >= 0 && k <= 255) 
			sum += 1;
		else
			sum += 2;
	}

	if ( sum >= intNo1 && sum <= intNo2 ) 
		return true;
	else
		return false;
}
function checkLength(obj, intNo1, intNo2, word) {
	if (!checkRange(obj, intNo1, intNo2)){
		alert(word+"Àº(´Â) "+intNo1+" ~ "+intNo2+"Byte±îÁöÀÔ´Ï´Ù.");
		obj.focus();
		return false;
	}
	return true;
}
/////////////////////////////////////////////////////////ÁÖ¹Îµî·ÏÃ¼Å© ³¡//////////////////////////////////////////

// ------------------------------------------------------

// ¸Þ´º ¸¶¿ì½º¿Â¿À¹ö ÀÌ¹ÌÁö º¯È­
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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// ------------------------------------------------------

// flash
function ViewSWF(src,w,h){
  html = '';
  html += '<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
  html += '<param name="movie" value="'+src+'">';
  html += '<param name="quality" value="high">';
  html += '<param name="wmode" value="transparent">';
  html += '<param name="allowScriptAccess" value="always">';
//  html += '<param name="menu" value="false">';
  //html += '<param name="swliveconnect" value="true">';
//  html += '<embed src="'+src+'" quality="high" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
  html += '<embed src="'+src+'" quality="high" width="'+w+'" height="'+h+'" id="param" name="param" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
  html += '<\/object>';

  document.write(html);
}

  function flash(url,w,h,bg,wmode,vars){
    var s=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' align='middle'>"+
    "<param name='movie' value='"+url+"' />"+
    "<param name='wmode' value='"+wmode+"' />"+
    "<param name='quality' value='high' />"+
    "<param name='flashvars' value='"+vars+"' />"+
    "<param name='bgcolor' value='"+bg+"' />"+
    "<embed src='"+url+"' quality='high' wmode='"+wmode+"' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
    "</object>";
    document.write(s);
  }

//-->

