/******************************
*  ±â´É :  ¹®ÀÚ¿­ Valid °Ë»çÃ³¸® *
*  ¼öÁ¤ÀÏ : 2002-01-25              *
*  parameter : string, space  *
*******************************/

function chkField(field, name)
{
	if(trim(field.value).length < 1)
	{
		alert(name + " Ç×¸ñÀº ¹Ýµå½Ã ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		field.focus();
		return false;
	}
	return true;
}

function chkJno(entry_no){      
    len = entry_no.length;      
    temp = "";      
    no_ck = 0;      
      
    no_1 = parseInt( entry_no.substring(0,1) );      
    no_2 = parseInt( entry_no.substring(1,2) );      
    no_3 = parseInt( entry_no.substring(2,3) );      
    no_4 = parseInt( entry_no.substring(3,4) );      
    no_5 = parseInt( entry_no.substring(4,5) );      
    no_6 = parseInt( entry_no.substring(5,6) );      
    no_7 = parseInt( entry_no.substring(6,7) );      
    no_8 = parseInt( entry_no.substring(7,8) );      
    no_9 = parseInt( entry_no.substring(8,9) );      
    no_10 = parseInt( entry_no.substring(9,10) );      
      
    if(len == 13){ // ÁÖ¹Îµî·Ï¹øÈ£      
        no_11 = parseInt( entry_no.substring(10,11) );      
        no_12 = parseInt( entry_no.substring(11,12) );      
        no_13 = parseInt( entry_no.substring(12,13) );      
      
        if((no_7 > 0) && (no_7 < 5)){ //ÁÖ¹Îµî·Ï¹øÈ£(2000³â ÀÌÈÄ Ãâ»ýÀÚ´Â      
            no_ck += no_1 * 2; //µÞÀÚ¸® Ã¹¹øÂ° ¼ýÀÚÀÚ ³²¼ºÀÇ °æ¿ì 3,      
            no_ck += no_2 * 3; // ¿©¼ºÀÇ °æ¿ì 4·Î ºÎ¿©µÈ´Ù.)      
            no_ck += no_3 * 4;      
            no_ck += no_4 * 5;      
            no_ck += no_5 * 6;      
            no_ck += no_6 * 7;      
            no_ck += no_7 * 8;      
            no_ck += no_8 * 9;      
            no_ck += no_9 * 2;      
            no_ck += no_10 * 3;      
            no_ck += no_11 * 4;      
            no_ck += no_12 * 5;      
            no_ck = no_ck % 11;      
            no_ck = 11 - no_ck;      
            no_ck = no_ck % 10;      
      
            if(no_ck == no_13){ return true; }      
            else { return false; }      
        }      
        else { return false; }      
    }      
      
    if(len == 10){ // »ç¾÷ÀÚµî·Ï¹øÈ£      
      
        no_ck += no_1 * 1;      
        no_ck += no_2 * 3;      
        no_ck += no_3 * 7;      
        no_ck += no_4 * 1;      
        no_ck += no_5 * 3;      
        no_ck += no_6 * 7;      
        no_ck += no_7 * 1;      
        no_ck += no_8 * 3;      
        no_ck += Math.floor(no_9 * 5 / 10);       
        no_ck += no_9 * 5 % 10;       
        no_ck += no_10;       
               
        if( no_ck % 10 == 0) { return true; }       
        else { return false; }      
    }      
      
}   

function CheckValid(String, space)
{
   var retvalue = false;

   for (var i=0; i<String.length; i++)
   {		//StringÀÌ 0("") ÀÌ³ª null)ÀÌ¸é ¹«Á¶°Ç false
      if (space == true)
      {
         if (String.charAt(i) == ' ')
         {			//StringÀÌ 0ÀÌ ¾Æ´Ò¶§ space°¡ ÀÖ¾î¾ß¸¸ true(valid)
            retvalue = true;
            break;
         }
      } else {
         if (String.charAt(i) != ' ')
         {			//stringÀÌ 0ÀÌ ¾Æ´Ò¶§ space°¡ ¾Æ´Ñ ±ÛÀÚ°¡ ÀÖ¾î¾ß¸¸ true(valid)
            retvalue = true;
            break;
         }
      }
   }

   return retvalue;
}
/******************************
*  ±â´É :  ¹®ÀÚ¿­ ±æÀÌ °¡Á®¿À±â       
*  ¼öÁ¤ÀÏ : 2006-09-21              
*  parameter : field               
*  return    : ¹®ÀÚ¿­±æÀÌ 
*******************************/
function strLength(field)
{

   var Length = 0;

   var Nav = navigator.appName;
   var Ver = navigator.appVersion;

   var IsExplorer = false;

   var ch;

   if ( (Nav == 'Microsoft Internet Explorer') && (Ver.charAt(0) >= 4) )
   {
      IsExplorer = true;
   }

   if(IsExplorer)
   {

      for(var i = 0 ; i < field.value.length; i++)
      {

         ch = field.value.charAt(i);

         if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) ||
             ((ch >="¤¡") && (ch <="¤¾")))
		{
	    	Length += 2;
		} else
		{
	    	Length += 1;
       	}

	  }

   }else {
      Length = field.value.length ;
   }

   return Length;
}
/******************************
*  ±â´É :  Empty ¹× °ø¹é Ã³¸®    *
*  ¼öÁ¤ÀÏ : 2002-01-25              *
*  parameter : field, error_msg  *
*******************************/

function isEmpty(field, error_msg)
{
	// error_msg°¡ ""ÀÌ¸é alert¿Í focusingÀ» ÇÏÁö ¾Ê´Â´Ù
	if(error_msg == "") {
		if(!CheckValid(field.value, false)) 	{
			return true;
		} else {
			return false;
		}
	} else {
		if(!CheckValid(field.value, false)) {
			alert(error_msg);
			field.focus() ;
			return true;
		} else {
			return false;
		}
	}
}


/******************************
*  ±â´É :  NumberCheck           *
*  ¼öÁ¤ÀÏ : 2002-03-29(denial)              *
*  parameter : field, error_msg  *
*******************************/
function isNotNumber(field, error_msg)
{
	var val = field.value;

	if(isNaN(val) ) {
		if(error_msg.length > 0) {
			alert(error_msg);
			field.focus();
			field.select();
		}
		return true;
	} else {
		return false;
	}
}


/***************************************
*  ±â´É : String ¾ËÆÄºª°ú ¼ýÀÚ¸¸~ Check  *
*  ¼öÁ¤ÀÏ : 2002-01-25                           *
*  parameter : Form                              *
****************************************/
function isNotAlphaNumeric(field,error_msg)
{

   for (var i=0; i < field.value.length; i++)
   {
      if ( ( (field.value.charAt(i) < "0") || (field.value.charAt(i) > "9") ) &&
           ( ( (field.value.charAt(i) < "A") || (field.value.charAt(i) > "Z") ) &&
             ( (field.value.charAt(i) < "a") || (field.value.charAt(i) > "z") ) ) )
	  {
         alert(error_msg);
		 field.focus();
		 field.select();
		 return true;
	   }
   }

   return false;
}


/******************************
*  ±â´É : ±æÀÌ Check     *
*  parameter : Form                  *
*******************************/
function isNotExactLength(field, len, error_msg) {
	if(strLength(field) != len) {
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}

/****************************************
*  ±â´É : ¹®ÀÚ¿­ ±æÀÌÁ¦ÇÑ                          *
*  ¼öÁ¤ÀÏ : 2002-01-25                              *
*  parameter : field, min, max, error_msg  *
*****************************************/
function isOutOfRange(field, min, max, error_msg)
{
	if(strLength(field) < min || strLength(field) > max)
	{
		alert(error_msg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}


/*******************************
*  ±â´É : ºñ¹Ð¹øÈ£ Check            *
*  ¼öÁ¤ÀÏ : 2002-01-25                *
*  parameter : Form                  *
*******************************/
function isNotValidPassword(form) {

	if(isEmpty(form.webpass1,"ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!")) return true;
	if(isEmpty(form.webpass2,"ÆÐ½º¿öµå¸¦ ÀçÀÔ·ÂÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotAlphaNumeric(form.webpass1,"ºñ¹Ð¹øÈ£´Â 4~10ÀÚ »çÀÌÀÇ ¼ýÀÚ ¹× ¿µ¹® ´ë¼Ò¹®ÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotAlphaNumeric(form.webpass2,"ºñ¹Ð¹øÈ£´Â 4~10ÀÚ »çÀÌÀÇ ¼ýÀÚ ¹× ¿µ¹® ´ë¼Ò¹®ÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isOutOfRange(form.webpass1, 4, 10, "ºñ¹Ð¹øÈ£´Â 4~10ÀÚ »çÀÌÀÇ ¼ýÀÚ ¹× ¿µ¹® ´ë¼Ò¹®ÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isOutOfRange(form.webpass2, 4, 10, "ºñ¹Ð¹øÈ£´Â 4~10ÀÚ »çÀÌÀÇ ¼ýÀÚ ¹× ¿µ¹® ´ë¼Ò¹®ÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(form.webpass1.value != form.webpass2.value) {
		alert("ºñ¹Ð¹øÈ£°¡ ¼­·Î ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\n ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		form.webpass1.value="";
		form.webpass2.value="";
		form.webpass1.focus();
		form.webpass1.select();
		return true;
	}
	return false;
}


// Æ¯¼ö ¹®ÀÚ Ã¼Å©ÇÏ´Â Æû
 function ValueCheck(fm) {
 
   var flag = 1;
	var checkNo = "?&+%*!#$';";
	for (i = 0;  i < fm.value.length;  i++)
	{
	  ch = fm.value.charAt(i);
	  
	  for (j = 0;  j < checkNo.length;  j++)
	    if (ch == checkNo.charAt(j)){
		flag = 0;
	    }
	}
	
	if (flag == 0)
	{
	  alert("Æ¯¼ö¹®ÀÚ(/,?,@,&,+,%,*,',;,!,#,$)´Â ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
	  fm.value="";
	  fm.focus();
	  return false;
     }
	 return true;
}

//ÀÌ¸ÞÀÏ Ã¼Å©
function isVaildMail(email)
{
     var result = false;

     if( email.indexOf("@") != -1 )
     {
          result = true;

          if( email.indexOf(".") != -1 )
          {
               result = true;
          }
          else
          {
               result = false;
          }
     }
     return result;
}

//´ÙÀ½ ÇÊµå·Î ³Ñ±â±â
function do_Next(len, frm1, frm2){		//ÁÖ¹Î¹øÈ£ ÀÔ·Â½Ã µÞÀÚ¸®·Î ÀÚµ¿ ³Ñ±â±â
		if (frm1.value.length == len) {
			frm2.focus();
		} 
		else
		return true;    
}

/**
 * <PRE>
 * Scroll ÀÌ ¾ø´Â »õ Ã¢À» ¶ç¿î´Ù
 * </PRE>
 * @param   theURL : »õ·Î ¶ç¿ï ÆÄÀÏ ÀÌ¸§ÀÌ´Ù
 * @param   winName : »õÃ¢ ÀÌ¸§
 * @param   winTitle : »õÃ¢ title
 * @param	width : »õÃ¢ °¡·Î Å©±â
 * @param	height : »õÃ¢ ¼¼·Î Å©±â
 * @param   param : Ãß°¡ÀûÀÎ È­¸é argument
 */
function openNoScrollWin(theURL, winName, winTitle, width, height, param)
{
	var win = window.open(theURL + "?popupTitle=" + winTitle + "&tableWidth=" + width + param, winName, "menubar=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height);
}
function openScrollWin(theURL, winName, winTitle, width, height, param)
{
	var win = window.open(theURL + "?popupTitle=" + winTitle + "&tableWidth=" + width + param, winName, "menubar=no, scrollbars=yes, resizable=no, width=" + width + ", height=" + height);
}
function openWinDel(theURL, winName, width, height, param)
{
	var win = window.open(theURL + "?"+ param, winName, "menubar=no, scrollbars=yes, resizable=yes, width=" + width + ", height=" + height);
}
		


//¿£ÅÍÅ° Ã¼Å©
function fKeyEnter(){
   if (event.keyCode == 13){
     return true;  
   }else return false;
}


//¼ýÀÚ¸¸ ÀÔ·Â¹ÞÀ½
function checkNumber()
{
	///if (event.keyCode >128 ) event.returnValue = false;
	//if (event.keyCode < 47 || event.keyCode > 57) event.returnValue = false;

	if (event.keyCode ==8) event.returnValue = true;
	if (event.keyCode ==9) event.returnValue = true;

	if ((event.keyCode>47 && event.keyCode<58) || (event.keyCode>95 && event.keyCode<106) || event.keyCode ==8){
		event.returnValue = true;
	}else{
		event.returnValue = false;
	}
}

//¿µ¹®¸¸ ÀÔ·Â¹ÞÀ½
function checkEng()
{
	if(event.keyCode <65 ) event.returnValue = false;
	else if(event.keyCode >90 && event.keyCode <97 ) event.returnValue = false;
	else if(event.keyCode >122) event.returnValue = false;
}
//¿µ¹®, ¼ýÀÚ¸¸ ÀÔ·Â¹ÞÀ½
function checkNumberEng()
{
	if (event.keyCode < 48 ) event.returnValue = false;
	else if(event.keyCode >57 && event.keyCode <65 ) event.returnValue = false;
	else if(event.keyCode >90 && event.keyCode <97 ) event.returnValue = false;
	else if(event.keyCode >122) event.returnValue = false;

	if (event.keyCode ==8) event.returnValue = true;
}

//¿µ¹®, ¼ýÀÚ¸¸ ÀÔ·Â
function toEngNum()
{
	var RegExpE = /[azAZ]/i;
	var RegExpN = /[09]/;


	if ( RegExpE  )
	{	
		alert("¼ýÀÚ ¶Ç´Â ¿µ¹®À¸·Î ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä.");
		event.returnValue=false;
	}		
}

function checkEmail()
{
	if (event.keyCode < 48 ) event.returnValue = false;
	else if(event.keyCode >57 && event.keyCode <65 ) event.returnValue = false;
	else if(event.keyCode >90 && event.keyCode <97 && event.keyCode !=95 ) event.returnValue = false;
	else if(event.keyCode >122) event.returnValue = false;
}


function makeEmailHost(name) {
	var option = new Array();
	option[0]= ["     Á÷Á¢ÀÔ·Â     ",""];
	option[1]= ["naver.com", "naver.com"];
	option[2]= ["hanmail.net", "hanmail.net"];
	option[3]= ["nate.com", "nate.com"];
	option[4]= ["paran.com", "paran.com"];
	option[5]= ["korea.com", "korea.com"];
	option[6]= ["hotmail.com", "hotmail.com"];
	option[7]= ["dreamwiz.com", "dreamwiz.com"];
	option[8]= ["empal.com", "empal.com"];
	option[9]= ["yahoo.co.kr", "yahoo.co.kr"];
	option[10]= ["chol.com", "chol.com"];
	option[11]= ["freechal.com", "freechal.com"];
	option[12]= ["hanafos.com", "hanafos.com"];
	option[13]= ["hanmir.com", "hanmir.com"];
	option[14]= ["hitel.net", "hitel.net"];
	option[15]= ["lycos.co.kr", "lycos.co.kr"];
	option[16]= ["netian.com", "netian.com"];
	option[17]= ["unitel.co.kr", "unitel.co.kr"];

	for (var i=0; i < option.length; i++) {
		name.options[i]=new Option(option[i][0],option[i][1]);
		if (i==0) {        name.options[i].selected=true;       }
	}
}


function popPost(){
	window.open("order_first_post.asp","AutoAddr","toolbar=no,menubar=no,overflow=auto,scrollbars=yes,resizable=yes,width=485,height=250");
	}

//  End -->


//Á¯È­¹øÈ£, ÇÚµåÆù select  ¸¸µé±â
//makePhoneSelect(selectname , gubun)
//gubun°ª - ÁýÀüÈ­ : P, Á÷ÀåÀüÈ­ : J, ÇÚµåÆù : H
function makePhoneSelect(name,gubun) {
	var option1 = new Array();
	var cnt = 0;

	if(gubun == "P" || gubun == "J"){
		option1[0]= ["Áö¿ª¹øÈ£",""];
		option1[1]= ["02", "02"];
		option1[2]= ["031","031"];
		option1[3]= ["032","032"];
		option1[4]= ["033","033"];
		option1[5]= ["041","041"];
		option1[6]= ["042","042"];
		option1[7]= ["043","043"];
		option1[8]= ["051","051"];
		option1[9]= ["052","052"];
		option1[10]= ["053","053"];
		option1[11]= ["054","054"];
		option1[12]= ["055","055"];
		option1[13]= ["061","061"];
		option1[14]= ["062","062"];
		option1[15]= ["063","063"];
		option1[16]= ["064","064"];
		cnt = 17;
	}else if(gubun=="H"){
		for(i=name.options.length-1;i>0;i--){
			name.options[i] = null;
		}
		option1[0]= ["°¡ÀÔÀÚ¹øÈ£",""];
		option1[1]= ["010", "010"];
		option1[2]= ["011","011"];
		option1[3]= ["016","016"];
		option1[4]= ["017","017"];
		option1[5]= ["018","018"];
		option1[6]= ["019","019"];
		cnt = 7;
	}

	for (i=0; i < cnt; i++) {
		name.options[i]=new Option(option1[i][0],option1[i][1]);
		if (i==0) {        name.options[i].selected=true      }
	}
}



/******************************
*  ±â´É :  ÄíÅ°¼³Á¤
*  ¼öÁ¤ÀÏ : 2004-04-12              *
*******************************/
function notice_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 "";
}


/******************************
*  ±â´É :  ¿À´Ã ÇÏ·ç ¾È º¸±â ¼³Á¤
*  ¼öÁ¤ÀÏ : 2004-04-12              *
*******************************/
function notice_setCookie( name, value, expiredays )
	{
		var todayDate = new Date();
		todayDate.setDate( todayDate.getDate() + expiredays );
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
		}


function notice_closeWin(name) 
{ 
		notice_setCookie( name, "done" , 1); // 1=ÇÏ·íµ¿¾È °øÁöÃ¢ ¿­Áö ¾ÊÀ½
		self.close(); 
}


/******************************
*  ±â´É :  ¿À´Ã ÇÏ·ç ¾È º¸±â ¼³Á¤ 
*  ¼öÁ¤ÀÏ : 2004-04-12              *
*******************************/


/************************************  ±â´É : ¸Þ´º ·Ñ¿À¹ö ***********************************/
/***********************************
 µå¸²À§¹ö ·Ñ¿À¹ö ½ºÅ©¸³Æ® 
***********************************/
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];}
}
/***********************************
 ÁöÁ¤ ¹®ÀÚ°¹¼ö°¡ ÀÔ·ÂµÇ¸é ÀÚµ¿À¸·Î ´ÙÀ½ ÆûÀ¸·Î ³Ñ¾î°¡´Â ½ºÅ©¸³Æ®
***********************************/
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
	
	var keyCode = (isNN) ? e.which : e.keyCode; 
	var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
	if(input.value.length >= len && !containsElement(filter,keyCode)) {
	input.value = input.value.slice(0, len);
	input.form[(getIndex(input)+1) % input.form.length].focus();
}
function containsElement(arr, ele) {
	var found = false, index = 0;
	while(!found && index < arr.length)
	if(arr[index] == ele)
	found = true;
	else
	index++;
	return found;
}
function getIndex(input) {
	var index = -1, i = 0, found = false;
	while (i < input.form.length && index == -1)
	if (input.form[i] == input)index = i;
	else i++;
	return index;
}
return true;
}


/******************************
*  ±â´É :  ÇÊµå°ªÀÇ ¹®ÀÚ¿­ ±æÀÌ Ã¼Å© *
*  ¼öÁ¤ÀÏ : 2006-10-02              *
*  parameter : field, maxlen*
*******************************/
function checkTextArea(field,maxlen){
	if(strLength(field)>maxlen){
		alert(maxlen+"ÀÚÀÌÇÏ·Î ÀÔ·ÂÇÏ¼¼¿ä");
		field.value=field.value.substring(0,maxlen-1);
		field.focus();
	}	
}
function calendar(field){
	var win = window.open("/Popup/Spop/calendar_parent.asp?txt_id="+field, "Calendar", "menubar=no, scrollbars=no, resizable=no, width=" + 200 + ", height=" + 290);
}

function ShowFlash(url, width, height){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
	document.write('<param name="movie" value="' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">'); 
	document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}


// ·Î±×ÀÎ ##################################################
function gotoLogin() {
	//location.href = "/v09/login.asp?redirect="+escape(document.URL);

	var subimg = document.getElementById('login_tb');
        
	if (subimg.style.display == 'none') 
		subimg.style.display='block';
	else
		subimg.style.display='none';
}

// °Ô½ÃÆÇ ÀÌ¹ÌÁö OVER
function fn_over(file_nm,imgID)
{
	document.getElementById(imgID).src="/v09/images/Global/"+file_nm;
}

// °Ô½ÃÆÇ ÀÌ¹ÌÁö OUT
function fn_out(file_nm,imgID)
{
	document.getElementById(imgID).src="/v09/images/Global/"+file_nm;
}

/*******************************
*  ±â´É : ºÏ¸¶Å© Bookmark      *
*  ÀÛ¼ºÀÏ : 2009-11-18         *
*  ¼öÁ¤ÀÏ : 2009-11-18         *
*******************************/
function addbookmark()
{
bookmarkurl="http://www.bizbc.or.kr/"
bookmarktitle="ºÎÃµ»ê¾÷Á¤º¸Æ÷ÅÐ(Bizbc.or.kr)"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


/*******************************
*  ±â´É : °Ô½ÃÆÇ »èÁ¦          *
*  ÀÛ¼ºÀÏ : 2009-11-18         *
*  ¼öÁ¤ÀÏ : 2009-11-18         *
*******************************/
function deleteBoard(){
		if(confirm("»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
			DeleteForm.action = "/v09/Inc/delete_process.asp";			
			DeleteForm.submit();
		}
		return;
	}


/*******************************
*  ±â´É : DIV ÇÁ¸°Æ®           *
*  ÀÛ¼ºÀÏ : 2009-11-18         *
*  ¼öÁ¤ÀÏ : 2009-11-18         *
*******************************/
var div2print;
function printDiv (id) {
  if (document.all && window.print) {
    div2print = document.all[id];
    window.onbeforeprint = hideDivs;
    window.onafterprint = showDivs;
    window.print();
  }
  else if (document.layers) {
    div2print = document[id];
    hideDivs();
    window.print();
  } 
}
function hideDivs () {
  if (document.all) {
    var divs = document.all.tags('DIV');
    for (var d = 0; d < divs.length; d++)
      if (divs[d] != div2print)
        divs[d].style.display = 'none';
  }
  else if (document.layers) {
    for (var l = 0; l < document.layers.length; l++)
      if (document.layers[l] != div2print)
        document.layers[l].visibility = 'hide';

  }
}
function showDivs () {
  var divs = document.all.tags('DIV');
  for (var d = 0; d < divs.length; d++)
    divs[d].style.display = 'block';
}