<!--
// ÀÔ·Â Ã¼Å©
function check_input(tmp, variable)
{
	if (tmp.value.search(/(\S+)/) == -1) {
		alert (variable + "À»(¸¦) ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return ;
	}
	return true;
}

// ÀÔ·Â ÃÖ¼Ò±æÀÌ Ã¼Å©
function check_minlength(tmp, minlength, variable)
{
	if (tmp.value.length < minlength) {
		alert(variable + "ÀÌ(°¡) ³Ê¹« Âª½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

// ÀÔ·Â ÃÖ¼Ò±æÀÌ Ã¼Å©1
function check_minlength1(tmp, minlength)
{
	if (tmp.value.length < minlength) {
		alert(minlength + "ÀÌ»óÀÔ´Ï´Ù.\nÈ®ÀÎ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

// ¼ýÀÚ Ã¼Å©
function check_number(tmp, variable) 
{
	var i;
	for (i=0; i<tmp.value.length; i++) 
	if (tmp.value.charAt(i) < '0' || tmp.value.charAt(i) > '9') {
		alert(variable + "Àº(´Â) ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

// ¼ýÀÚ Ã¼Å©1
function check_number1(tmp) 
{
	var i;
	for (i=0; i<tmp.value.length; i++) 
	if (tmp.value.charAt(i) < '0' || tmp.value.charAt(i) > '9') {
		alert("\n¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.");
		tmp.value = "";
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}


//------ºñ¹Ð¹øÈ£ Ã¼Å©---------------------------------------------------------------------------
function check_pwd(obj1, obj2 )	{
 if (obj1.value != obj2.value) {
  alert("ºñ¹Ð¹øÈ£¿Í È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\n\n4~15ÀÚ ¹üÀ§·Î µ¿ÀÏÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä...");
	obj2.focus();
  return false
 }

 if(obj1.value.length < 4 || obj1.value.length > 15) {
  alert("ºñ¹Ð¹øÈ£´Â 4~15ÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
  return false
 }
 return true
}//------------------------------------------------------------------------------

// ¿µ¹®ÀÚ¿Í ¼ýÀÚ Ã¼Å©
function check_stringornumber(tmp, variable)
{
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) >= 'a' && tmp.value.charAt(i) <= 'z')
			continue;
		else if (tmp.value.charAt(i) >= 'A' && tmp.value.charAt(i) <= 'Z')
			continue;
		else {
			alert(variable + "Àº(´Â) ¿µ¹®ÀÚ, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus();
			tmp.select();
			return false;
		}
	}
	return true;
}


// °èÁÂÃ¼Å©
function check_account(tmp, variable)
{
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) >= '-' && tmp.value.charAt(i) <= '-')
			continue;
		else {
			alert(variable + "Àº(´Â) ¿µ¹®ÀÚ, (-)¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus();
			tmp.select();
			return false;
		}
	}
	return true;
}

// ¼±ÅÃ Ã¼Å©
function check_select(tmp, variable)
{
	if (tmp.options[tmp.selectedIndex].value == "") {
		alert (variable + "À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		return false;
	}
	return true;
}

// ¶óµð¿À Ã¼Å©
function check_radio(tmp, variable)
{
	var checked_idx = -1;
	for (i=0; i<tmp.length; i++){
		if (tmp[i].checked)	{
			checked_idx = i;
		}
	}
	if (checked_idx < 0) {
		alert (variable + "À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		tmp[0].focus();
		return false
	}
	return true;
}

// Ã¼Å©¹Ú½º Ã¼Å©
function check_checkbox(tmp, variable)
{
	var checked_cnt = 0;
	for (i=0; i<tmp.length; i++){
		if (tmp[i].checked)	{
			checked_cnt = checked_cnt + 1;
		}
	}
	if (checked_cnt <= 0) {
		alert (variable + "À»(¸¦) Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		tmp[0].focus();
		return false
	}
	return true;
}

// ¸Þ½ÃÁö Ã¼Å©
function check_message(msg)
{
	return confirm(msg);
}

// ÀÔ·Â°ª ºñ±³ Ã¼Å©
function check_compare(tmp1, tmp2, variable)
{	
	if (tmp1.value != tmp2.value) {
		alert(variable + "(ÀÌ)°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.") ;
		tmp1.focus();
		tmp1.select();
		return false;
	}
	return true;
}


function select_compare(tmp1, tmp2)
{
	if (tmp1.value == tmp2.value ) {
		alert ("ÈÞ´ëÆùÀÌ³ª ÀÏ¹ÝÀüÈ­ Áß¿¡¼­ ÇÏ³ª´Â ¹Ýµå½Ã ÀÔ·Â ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		return false;
	}
	return true;
}

 function orderid()
        {
            var today = new Date();
            var year  = today.getFullYear();
            var month = today.getMonth() + 1;
            var date  = today.getDate();
            var time  = today.getTime();

            if(parseInt(month) < 10) {
                month = "0" + month;
            }

            if(parseInt(date) < 10) {
                date = "0" + date;
            }

            var order_idxx =  year + "" + month + "" + date + "" + time;

            //document.form1.lecture_num.value = order_idxx;
			//document.form1.pidx_num.value = time;
            return order_idxx;
		}


// ÀÌ¸ÞÀÏ Ã¼Å©
function check_email(tmp)
{
	if (tmp.value.search(/(\S+)@(\S+)\.(\S+)/) == -1) { 
		alert("ÀÌ¸ÞÀÏÀÇ Çü½ÄÀº '°èÁ¤@[È£½ºÆ®|µµ¸ÞÀÎ]'°ú °°ÀÌ ±¸¼ºµÇ¾î¾ß ÇÕ´Ï´Ù.");
		tmp.focus(); 
		tmp.select(); 
		return false; 
	} 	
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) >= 'a' && tmp.value.charAt(i) <= 'z')
			continue;
		else if (tmp.value.charAt(i) >= 'A' && tmp.value.charAt(i) <= 'Z')
			continue;
		else if (tmp.value.charAt(i) == '_' || tmp.value.charAt(i) == '-' || tmp.value.charAt(i) == '@' || tmp.value.charAt(i) == '.')
			continue;
		else {
			alert("ÀÌ¸ÞÀÏÀº ¿µ¹®ÀÚ, ¼ýÀÚ, ±âÈ£ '@', '.', '-' , '_' ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus(); 
			tmp.select(); 
			return false; 
		}
	}
	if (tmp.value.charAt(0) == '_' || tmp.value.charAt(0) == '-') {
		alert("'_'¿Í '-'´Â ÀÌ¸ÞÀÏÀÇ Ã¹±ÛÀÚ·Î »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		tmp.focus(); 
		tmp.select();
		return false;
	} 
	return true;
}

// ÁÖ¹Î¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident(tmp1, tmp2, variable)
{
	if (validity_resident1(tmp1, tmp2, variable)) {
		return true;
	} else {
		if (validity_resident2(tmp1, tmp2, variable)) {
			return true;
		} else {			
			alert(variable + "Àº(´Â) Àß¸øµÈ ¹øÈ£ÀÔ´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			tmp1.focus();
			tmp1.select();
			return false;   
		}
	}		
}

// ÁÖ¹Î¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident1(tmp1, tmp2, variable)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}

	if (a[2] > 1) return false;   
	if (a[4] > 3) return false;   
	if (a[6] > 4 || a[6] == 0) return false;   

	var j = a[0]*2 + a[1]*3 + a[2]*4 + a[3]*5 + a[4]*6 + a[5]*7 + a[6]*8 + a[7]*9 + a[8]*2 + a[9]*3 + a[10]*4 + a[11]*5;
	var j = j % 11;
	var k = 11 - j;

	if (k > 9) k = k % 10;

	if (k != a[12]) return false;

	return true;
}

// ¿Ü±¹ÀÎ¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident2(tmp1, tmp2, variable)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	var birthday;
	var birthYear;
	var birthMonth;
	var birthDate;

	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}
	
	if (a[6] == "5" || a[6] == "6") {
		birthYear = "19";
	} else if (a[6] == "7" || a[6] == "8") {
		birthYear = "20";
	} else if (a[6] == "9" || a[6] == "0") {
		birthYear = "18";
	} else {
		return false;
	}        

	birthYear += tmp.substr(0, 2);
	birthMonth = tmp.substr(2, 2) - 1;
	birthDate = tmp.substr(4, 2);
	birthday = new Date(birthYear, birthMonth, birthDate);
		
	if (birthday.getYear() % 100 != tmp.substr(0, 2) || birthday.getMonth() != birthMonth || birthday.getDate() != birthDate) return false;

	if (((a[7]*10 + a[8]) % 2) != 0) return false;

	if ((a[11] != 6) && (a[11] != 7) && (a[11] != 8) && (a[11] != 9)) return false;

	var j = a[0]*2 + a[1]*3 + a[2]*4 + a[3]*5 + a[4]*6 + a[5]*7 + a[6]*8 + a[7]*9 + a[8]*2 + a[9]*3 + a[10]*4 + a[11]*5;
	var j = j % 11;
	var k = 11 - j;

	if (k>=10) k-=10;
	k += 2;

	if (k>=10) k-=10;
	if ( k != a[12]) {
		return false;
	} else {
		return true;
	}
}

// »ç¾÷ÀÚµî·Ï ¹øÈ£ Ã¼Å©
function check_bsn(tmp)
{
	if (tmp.value.search(/(\S+)-(\S+)\-(\S+)/) == -1) { 
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£ÀÇ Çü½ÄÀº '###-##-#####'°ú °°ÀÌ ±¸¼ºµÇ¾î¾ß ÇÕ´Ï´Ù."); 
		tmp.focus(); 
		tmp.select(); 
		return false; 
	} 	
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) == '-')
			continue;
		else {
			alert("»ç¾÷ÀÚµî·Ï¹øÈ£´Â ¼ýÀÚ, ±âÈ£ '-' ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus(); 
			tmp.select(); 
			return false; 
		}
	}
	return true;
}

// ¼ºÀÎ Ã¼Å©
function check_adult(tmp1, tmp2)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}
	var birthday;
	var today;
	var birthYear;
	var birthMonth;
	var birthDate;
	if (a[6] == "1" || a[6] == "2")	{
		birthYear = "19"
	} else if (a[6] == "3" || a[6] == "4") {
		birthYear = "20";
	} else if (a[6] == "5" || a[6] == "6") {
		birthYear = "19";
	} else if (a[6] == "7" || a[6] == "8") {
		birthYear = "20";
	} else if (a[6] == "9" || a[6] == "0") {
		birthYear = "18";
	} else {
		return false;
	} 

	birthYear += tmp.substr(0, 2);
	birthMonth = tmp.substr(2, 2) - 1;
	birthDate = tmp.substr(4, 2);
	birthday = new Date(birthYear, birthMonth, birthDate);

	var today;
	var toYear;
	var toMonth;
	var toDate;

	today = new Date();
	toYear = today.getYear();
	toMonth = today.getMonth() + 1;
	toDate = today.getDate();
	today = new Date(toYear, toMonth, toDate);

	var age;
	age = (today - birthday) / (24*60*60*1000*365);

	if (age < 19) {
		alert("¼ºÀÎÀÌ ¾Æ´Õ´Ï´Ù.");
		return false;
	}
	return true;
}

function checkNum(obj) {
 var str = obj.value;
 var flag = 0;

 /* ³Î°ªÇã¿ë... */
 if(obj.value == "")
  return true;

 for(i=0 ; i<str.length ; i++)
  {
  if(str.charAt(i)!="0" &&
   str.charAt(i)!="1" &&
   str.charAt(i)!="2" &&
   str.charAt(i)!="3" &&
   str.charAt(i)!="4" &&
   str.charAt(i)!="5" &&
   str.charAt(i)!="6" &&
   str.charAt(i)!="7" &&
   str.charAt(i)!="8" &&
   str.charAt(i)!="9" &&
   str.charAt(i)!=" " )
   {
   alert("¼ýÀÚ·Î Á¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
   obj.value = "" ;
   obj.focus();
   return false;
   }
  }
  return true;
}

//---------ÅØ½ºÆ®Æû¿¡¼­ °ø¹é Á¦°Å-------------------------
function del_blank(obj) {
  var str_in = obj.value	
	  str_out = ""
  for(i=0 ; i<str_in.length ; i++)
	if (str_in.charAt(i) != " ")	
		str_out = str_out + str_in.charAt(i)
  obj.value = str_out
}//-------------------------------------------------------

/******************************************************************
	title : ¸ÖÆ¼¼¿·ºÆ® v2.1
	update : 2006-02-21
	contents : Select, Checkbox, Radio, Text ÀÇ °ªÀ» °Ë»ç
	ÀÚµ¿À¸·Î Checked, Selected °ªÀ» ³Ö½À´Ï´Ù.
	by : http://blog.daum.net/battlej
	******************************************************************/

	function mSelect(input_name,input_value) {
	  if(input_name==null || input_name=='') {

	    return false;
	  }
		if(!(fn = document.getElementById(input_name))) {
			name = document.getElementsByName(input_name);
			fn = name[0];
		}
		if(fn!=null && input_value != '') {
			if(fn.type=='radio') {
				
				count = document.getElementsByName(input_name).length;
				for(i=0;i<count;i++) {
					if(document.getElementsByName(input_name)[i].value==input_value) {
						document.getElementsByName(input_name)[i].checked=true;
					}
				}
			} else {
				switch (fn.type) {
					case 'checkbox' :
						if(fn.value==input_value) {
							fn.checked = true;
						}
						break;
					case 'select-one' :
						fn.value = input_value;
						if(fn.value=='') {
							fn.options[0].selected = true;
						}
						break;
					case 'text' :
					case 'textarea' :
					case 'password' :
						fn.value = input_value;
						break;
					default :
				}
			}
		}
	}


	////////////////////////////////// Ã¼Å©¹Ú½º ÇÏ³ªÀÌ»ó ¼±ÅÃ
	function checkOne() {
		var co = document.getElementsByName('SID[]');
		var co_count = co.length;
		var i, tmp, value;
		tmp = 0;
		for(i=1;i<co_count;i++) {
			if(co[i].checked==true) {
				tmp++;
				value = co[i].value;
			}
		}
		if(tmp!=1) {
			if(!(co.length == null && co.checked==true)) {
				alert('1°³ÀÌ»óÀ» ¼±ÅÃÇÏ½Ê½Ã¿À.');
				return false;
			}
		}

		return false;
	}


		 function delivery_trace(d_num){
 window.open('http://www.hanjinexpress.hanjin.net/customer/hddcw99gm.tracking?w_num='+d_num,'trace','width=700,height=700,scrollbars=yes');
 }



function chkchar(obj)
{
 var chrTmp;
 var strTmp  = obj.value;
    var strLen      = strTmp.length;
 var chkAlpha = false;
 var resString = '';
    if (strLen > 0) {
        for (var i=0; i<strTmp.length; i++)
        {
            chrTmp = strTmp.charCodeAt(i);
            if (!((chrTmp > 47 && chrTmp < 58) || (chrTmp > 64 && chrTmp < 91) || (chrTmp > 96 && chrTmp < 123) || (chrTmp > 44031 && chrTmp < 55203) || (chrTmp > 12592 && chrTmp < 12644)))
            {
                chkAlpha = true;
            }
            else
            {
                resString = resString + String.fromCharCode(chrTmp);
            }
        }
    }
 if (chkAlpha == true)
 {
  alert("ÇÑ±Û,¿µ¹®,¼ýÀÚ·Î¸¸ ÀÛ¼ºÇØÁÖ¼¼¿ä.");
  obj.value = resString;
  obj.focus();
  return false;
 }
}


function chkTitleChar(ee)
{
  var aa = ee.value;
  var regG = /[-a-zA-Z0-9!@#$^&*()<>{},.?/'"_=+\\\[\]\:;¤¿-¤Ó¤¡-¤¾°¡-ÆR ]/;
  var abc = true;
  for(i=0;i<aa.length;i++)
  {
    var str = aa.substr(i,1);
    if(!regG.test(str))
    {
      	abc = false  
    }
	
  }
  
  if(abc==false){
   alert("Æ¯¼ö±âÈ£´Â ÀÔ·ÂÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.");
   ee.value = '';
  }
}

function inputCheckSpecial(str){
  var strobj = str; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  re = /[~!@\#$%^&*\()\-=+_']/gi;
  if(re.test(strobj.value)){
    alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
  }
}



//¼ýÀÚ¸¸ ÀÔ·Â Ã¼Å©...   <onBlur="numChk(this,this.value)">
	function numChk(obj,v){
	
				var num = '1234567890,';
				var i;
				
			for(i=0;i<v.length;i++)
			{
				if(num.indexOf(v.substring(i,i+1)) < 0)
								{
									alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
									obj.value="";
									obj.focus();
									return;
								}
			}
}
	
	
function currency(obj)
{
	if (event.keyCode >= 48 && event.keyCode <= 57) {
		
	} else {
		event.returnValue = false
	}
}
function com(obj)
{
	obj.value = unComma(obj.value);
	obj.value = Comma(obj.value);
}

function Comma(input) {

  var inputString = new String;
  var outputString = new String;
  var counter = 0;
  var decimalPoint = 0;
  var end = 0;
  var modval = 0;

  inputString = input.toString();
  outputString = '';
  decimalPoint = inputString.indexOf('.', 1);

  if(decimalPoint == -1) {
     end = inputString.length - (inputString.charAt(0)=='0' ? 1:0);
     for (counter=1;counter <=inputString.length; counter++)
     {
        var modval =counter - Math.floor(counter/3)*3;
        outputString = (modval==0 && counter <end ? ',' : '') + inputString.charAt(inputString.length - counter) + outputString;
     }
  }
  else {
     end = decimalPoint - ( inputString.charAt(0)=='-' ? 1 :0);
     for (counter=1; counter <= decimalPoint ; counter++)
     {
        outputString = (counter==0  && counter <end ? ',' : '') +  inputString.charAt(decimalPoint - counter) + outputString;
     }
     for (counter=decimalPoint; counter < decimalPoint+3; counter++)
     {
        outputString += inputString.charAt(counter);
     }
 }
    return (outputString);
}

/* -------------------------------------------------------------------------- */
/* ±â´É : ¼ýÀÚ¿¡¼­ Comma Á¦°Å                                                 */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                            */
/*        -  input : ÀÔ·Â°ª                                                   */
/* -------------------------------------------------------------------------- */
function unComma(input) {
   var inputString = new String;
   var outputString = new String;
   var outputNumber = new Number;
   var counter = 0;
   if (input == '')
   {
	return 0
   }
   inputString=input;
   outputString='';
   for (counter=0;counter <inputString.length; counter++)
   {
      outputString += (inputString.charAt(counter) != ',' ?inputString.charAt(counter) : '');
   }
   outputNumber = parseFloat(outputString);
   return (outputNumber);
}
	


function left_str(str, n){
if (n <= 0)
    return "";
else if (n > String(str).length)
    return str;
else
    return String(str).substring(0,n);
}


function right_str(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}


function calBytes(str)
{
  var tcount = 0;

  var tmpStr = new String(str);
  var temp = tmpStr.length;

  var onechar;
  for ( k=0; k<temp; k++ )
  {
    onechar = tmpStr.charAt(k);
    if (escape(onechar).length > 4)
    {
      tcount += 2;
    }
    else
    {
      tcount += 1;
    }
  }

  return tcount;
}


/***********************************************************
	ÇÔ¼ö¸í		:newXMLHttpRequest()
	Ã³¸®³»¿ë	:¿äÃ»°´Ã¼¸¦ »ý¼ºÈÄ ¹ÝÈ¯
***********************************************************/
// function from http://www-128.ibm.com/developerworks/kr/library/j-ajax1/index.html
function newXMLHttpRequest() {
	var xmlreq = false;
	if (window.XMLHttpRequest) {
		// Create XMLHttpRequest object in non-Microsoft browsers
		xmlreq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		// Create XMLHttpRequest via MS ActiveX
		try {
			// Try to create XMLHttpRequest in later versions
			// of Internet Explorer
			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			// Failed to create required ActiveXObject
			try {
				// Try version supported by older versions
				// of Internet Explorer
				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				// Unable to create an XMLHttpRequest with ActiveX
			}
		}
	}
	return xmlreq;
}


/***********************************************************
	ÇÔ¼ö¸í		:replace123(str1, str2, str3)
	Ã³¸®³»¿ë	:str3¿¡¼­ str1À» str2·Î º¯È¯ÇÏ¿© ¹ÝÈ¯
***********************************************************/
function replace123(str1, str2, str3){
    var rgexp = new RegExp(str1,"g");
    return (str3.replace(rgexp, str2));
}

/***********************************************************
	ÇÔ¼ö¸í		:toEntity(strHtml)
	Ã³¸®³»¿ë	:Æ¯¼ö ¹®ÀÚ(<)¸¦ HTML ¿£ÅÍÆ¼·Î º¯È¯ÈÄ ¹ÝÈ¯
***********************************************************/
function toEntity(strHtml){
	return replace123("<","&lt;",strHtml);
}

/***********************************************************
	ÇÔ¼ö¸í		:toDate(timestamp)
	Ã³¸®³»¿ë	:SQL¹öÁ¯¿¡ µû¸¥timestampÇü½ÄÀ» ÀÏÁ¤Çü½ÄÀÇ ³¯ÀÚÆ÷¸äÀ¸·Î ¹ÝÈ¯(¿¹:2006.01.01)
***********************************************************/
function toDate(timestamp){
	var strYY;
	var strMM;
	var strDD;
	
	timestamp = replace123("-","",timestamp);
	timestamp = replace123("/","",timestamp);
	timestamp = replace123(":","",timestamp);
	
	strYY = timestamp.substr(0,4);
	strMM = timestamp.substr(4,2);
	strDD = timestamp.substr(6,2);
	return strYY+"."+strMM+"."+strDD;
}

/*==========================================================
	ÆÄÀÏ¸í		:common.js
	ÆÄÀÏ¼³¸í	:ajax¿¡¼­ »ç¿ëµÇ´Â °øÅëÇÔ¼öµé
==========================================================*/

/***********************************************************
	ÇÔ¼ö¸í		:func_paging(ÃÑ°Ô½Ã¹°¼ö)
	Ã³¸®³»¿ë	:ÆäÀÌÂ¡¿ë ÇÔ¼ö
***********************************************************/
function func_paging(totalcnt){
	var totpages = Math.ceil(totalcnt/LISTUNIT); //ÃÑÆäÀÌÁö¼ö
	var thisblock = Math.ceil(THISPAGE/PAGEUNIT); //ÇöÀç ÆäÀÌÂ¡ºí·°
	var startpage, endpage;
	var ret_HTML = "";
	
	// ÇöÀç ÆäÀÌÁöºí·°ÀÇ ½ÃÀÛÆäÀÌÁö¹øÈ£
	if(thisblock > 1){
		startpage = (thisblock-1)*PAGEUNIT+1;
	}else{
		startpage = 1;
	}
	
	// ÇöÀç ÆäÀÌÁöºí·°ÀÇ ³¡ÆäÀÌÁö¹øÈ£
	if( (thisblock*PAGEUNIT) >= totpages ){
		endpage = totpages;
	}else{
		endpage = thisblock*PAGEUNIT;
	}
	
	ret_HTML = "<TR>";
	ret_HTML += "  <TD align='center' colspan='5' class='paging_td'>";
	if(THISPAGE > 1){
		ret_HTML += "  [<A href='javascript:act_search("+(startpage-10)+");'><B>&lt;&lt;</B></A>]"; // ¸ÇÃ³À½À¸·Î °¡±â
		ret_HTML += "  [<A href='javascript:act_search("+(THISPAGE-1)+");'><B>&lt;</B></A>]"; // ÇöÀçºí·°ÀÇ ÀüÆäÀÌÁö
	} else {
		ret_HTML += "  [&lt;&lt;]"; // ¸ÇÃ³À½À¸·Î °¡±â
		ret_HTML += "  [&lt;]"; // ÇöÀçºí·°ÀÇ ÀüÆäÀÌÁö
	}
	for(i=startpage; i<=endpage; i++){
		if(i!=THISPAGE){
			ret_HTML += " <A href='javascript:act_search("+i+");'>"+i+"</A>";
		}else{
			ret_HTML += " <B>"+i+"</B>";
		}
	}
	
	if(THISPAGE < totpages){
		ret_HTML += "  [<A href='javascript:act_search("+(THISPAGE+1)+");'><B>&gt;</B></A>]"; // ÇöÀçºí·°ÀÇ ´ÙÀ½ÆäÀÌÁö
		ret_HTML += "  [<A href='javascript:act_search("+(endpage+1)+");'><B>&gt;&gt;</B></A>]"; // ¸Ç ¸¶Áö¸·ÆäÀÌÁö
	} else {
		ret_HTML += "  [&gt;]"; // ÇöÀçºí·°ÀÇ ´ÙÀ½ÆäÀÌÁö
		ret_HTML += "  [&gt;&gt;]"; // ¸Ç ¸¶Áö¸·ÆäÀÌÁö
	}
	ret_HTML += "  </TD>";
	ret_HTML += "</TR>";
	
	return ret_HTML;
}


/////////////////////////  iframe ÀÚµ¿³ôÀÌÁ¶Àý ////////////


 function resizeHeight(fr) {
     var frbody = fr.contentWindow.document.body;
     fr.style.height = frbody.scrollHeight + ( frbody.offsetHeight - frbody.clientHeight );
    }


/////////////////////////  virtualPost ////////////


  function virtualPost(remoteURL,param){
	virtual = getXMLHttpRequest();
    var url = remoteURL+'?'+param
	virtual.open("Post",url,false);   
    virtual.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
    virtual.send(param); 
    return virtual.responseText; 
	//alert(virtual.responseText);
  }



function chkchar(obj)
{
 var chrTmp;
 var strTmp  = obj.value;
    var strLen      = strTmp.length;
 var chkAlpha = false;
 var resString = '';
    if (strLen > 0) {
        for (var i=0; i<strTmp.length; i++)
        {
            chrTmp = strTmp.charCodeAt(i);
            if (!((chrTmp > 47 && chrTmp < 58) || (chrTmp > 64 && chrTmp < 91) || (chrTmp > 96 && chrTmp < 123) || (chrTmp > 44031 && chrTmp < 55203) || (chrTmp > 12592 && chrTmp < 12644)))
            {
                chkAlpha = true;
            }
            else
            {
                resString = resString + String.fromCharCode(chrTmp);
            }
        }
    }
 if (chkAlpha == true)
 {
  alert("ÇÑ±Û,¿µ¹®,¼ýÀÚ·Î¸¸ ÀÛ¼ºÇØÁÖ¼¼¿ä.");
  obj.value = resString;
  obj.focus();
  return false;
 }
}


function chkTitleChar(ee)
{
  var aa = ee.value;
  var regG = /[-a-zA-Z0-9!@#$^&*()<>{},.?/'"_=+\\\[\]\:;¤¿-¤Ó¤¡-¤¾°¡-ÆR ]/;
  var abc = true;
  for(i=0;i<aa.length;i++)
  {
    var str = aa.substr(i,1);
    if(!regG.test(str))
    {
      	abc = false  
    }
	
  }
  
  if(abc==false){
   alert("Æ¯¼ö±âÈ£´Â ÀÔ·ÂÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.");
   ee.value = '';
  }
}

function inputCheckSpecial(str){
  var strobj = str; //ÀÔ·Â°ªÀ» ´ãÀ»º¯¼ö.
  re = /[~!@\#$%^&*\()\-=+_']/gi;
  if(re.test(strobj.value)){
    alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
    strobj.value=strobj.value.replace(re,"");
  }
}

function py(n1,n2){
  
var v = document.getElementById('p'+n1).value;
 
v = v.replace(/,|\s/g,'');
v = parseFloat(v) * 3.3; 
if(!isNaN(v)){
document.getElementById('p'+n2).value = parseFloat(v.toFixed(1));
}else{
document.getElementById('p'+n2).value = "";
}
}

//---------ÁÖ¹Îµî·Ï¹øÈ£Ã¼Å©------------------------------------------------------
function check_psnum(obj1, obj2){
 var persono  = obj1.value + obj2.value;
 var pidLength = persono.length;


 if(obj1.value == "" || obj2.value == "")
  return true;

 if (pidLength == 13) {
  for (var i = 0; i < pidLength; i++) {
   var ch1 = persono.substring(i, i+1);
   if (ch1 < '0' || ch1 > '9') {
    alert("ÁÖ¹Îµî·Ï ¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.\n\nÁ¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
    return false;
   } 
  }
 } else {
  alert("ÁÖ¹Îµî·Ï ¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.\n\nÁ¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
  return false;
 }

 ch1= persono.charAt(0);
 ch2= persono.charAt(1);
 ch3= persono.charAt(2);
 ch4= persono.charAt(3);
 ch5= persono.charAt(4);
 ch6= persono.charAt(5);
 ch7= persono.charAt(6);
 ch8= persono.charAt(7);
 ch9= persono.charAt(8);
 ch10= persono.charAt(9);
 ch11= persono.charAt(10);
 ch12= persono.charAt(11);
 ch13= persono.charAt(12);

 kflag = 2;
 chtot =0;
 ch_buf = ch1 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch2 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch3 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch4 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch5 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch6 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch7 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch8 * kflag;
 chtot = chtot + ch_buf;
 kflag=2;
 ch_buf = ch9 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch10 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch11 * kflag;
 chtot = chtot + ch_buf;
 kflag++;
 ch_buf = ch12 * kflag;
 chtot = chtot + ch_buf;
 chtot = chtot % 11;
 last = 11 - chtot;
 if(last == 10)
     last = 0;
 if(last == 11)
     last = 1;
 if(last == ch13)
     return true;
 else
  {
  alert("ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸øµÇ¾ú½À´Ï´Ù.\n\nÁ¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
  return false;
  }
}

function film(url,yn){
	
	var a = document.getElementById('SLB_film');
	if(yn==1) {
        document.getElementById(url).style.display='';
		a.style.top = 0;
		a.style.left = 0;
		a.style.display = "";
		if (document.documentElement.scrollHeight > document.body.scrollHeight) {
			a.style.height = document.documentElement.scrollHeight + 'px';
		} else { 
			a.style.height = document.body.scrollHeight + 'px';
		}

		} else {
		a.onclick = '';
		a.style.display = "none";
		a.style.height = '100%';
		a.style.width = '100%';
		document.getElementById(url).style.display='none';

	}
}



	 function cert_print(oidx){
	  window.open('/doc/cert.asp?oidx='+oidx,'opt','width=820,height=600,scrollbars=yes');
	 }


// ÄíÅ° °ª ºÒ·¯¿À±â
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 "";
}

// ÄíÅ°°ª ¼³Á¤
function setCookie( name, value, expiredays ) {
  var todayDate = new Date();
  todayDate.setDate( todayDate.getDate() + expiredays );
  document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";";
}



function cart_in(idx,gprice){
var cartnum = orderid();
document.location.href='/shop/cart_add.asp?idx='+idx+'&cart='+cartnum+'&gubun=1&p_ea=1&gpoint=0&gprice='+gprice;
}

function OnOffLeftSubMenu(fnm,sw)
	{
		var leftcate = document.all(fnm);
		if(sw=="on")
			leftcate.style.visibility = "visible";
		else
			leftcate.style.visibility = 'hidden';
	}	


	function checkFileExt(obj, fileExts, msg){
	var filePath = obj.value;
	var parentNode = obj.parentNode;
	
	if(filePath == "") return;
	
	var pos = filePath.lastIndexOf('.');
	if(pos >= 0){
		var fileExt = filePath.substr(pos + 1).toLowerCase();
		if(('|' + fileExts.toLowerCase() + '|').indexOf('|' + fileExt + '|') < 0){
			var fileInputHtml = parentNode.innerHTML;
			parentNode.innerHTML = fileInputHtml;
			alert(msg);
		}
	}
} 



function updateChar(FieldName,obj,txt){
	var strCount = 0;
	var tempStr, tempStr2;	
	for(i = 0;i < obj.value.length;i++)
	{
		tempStr = obj.value.charAt(i);
		if(escape(tempStr).length > 4) strCount += 2;
      		else strCount += 1 ;
    	}
	if (strCount > FieldName){
		alert("ÃÖ´ë " + FieldName + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.");		
		strCount = 0;		
		tempStr2 = "";
		for(i = 0; i < obj.value.length; i++) 
		{
			tempStr = obj.value.charAt(i);	
			if(escape(tempStr).length > 4) strCount += 2;
	      	else strCount += 1 ;
	      	if (strCount > FieldName)
	      	{
	      		if(escape(tempStr).length > 4) strCount -= 2;
	      		else strCount -= 1 ;	
	      		break;	      		
	      	}
	      	else tempStr2 += tempStr;
	    }	    
		obj.value = tempStr2;
	}		
	document.getElementById(txt).innerHTML = strCount;
}


	/*
	 * ´º½ºº¸±â ÆäÀÌÁö ÀÌµ¿
	 */
    function isNewsView(newsNo){
        document.location.href='/news/view.asp?newsNo=' + newsNo;
	}
    
    //
    function isVideoNewsView(newsNo){
        $('#newsNo').val(newsNo);
        $('#theForm').attr('action', '/news/video_view.asp').submit();
	}

    /*
     * ´º½º ÇÁ¸°Æ® Popup
     */
    function isNewsPrint(newsNo){
    	window.open("/news/print.asp?newsNo=" + newsNo, "newsPrintForm", "width=800,height=600,scrollbars=yes,resizable=yes,toolbar=no,top=0,left=0");
    }
    
    /*
     * ´º½º ¸ÞÀÏº¸³»±â
     */
    function isNewsEmailSend(newsNo){
    	window.open("/news/send_email.asp?newsNo=" + newsNo, "newsEmailSendForm", "width=800,height=400,scrollbars=yes,toolbar=no,top=0,left=0");
    }
    
    /*
     * ´º½º ½ºÅ©·¦
     */
    function isNewsScrap(newsNo){
    	document.pcs.location.href='/news/myclip.asp?newsno='+newsNo;
    }
    
   /*
    * ´º½ºÆùÆ® Up
    */
    function isNewsFontUp(){
    	//¿µ¿ªid
    	var $articleArea = $('div.newsview_article');
    	
    	//ÇöÀç ÆùÆ® »çÀÌÁî
    	var currentFontSize = $articleArea.css('fontSize');
    	
    	//px ¹®ÀÚ¿­À» Á¦¿ÜÇÑ 16¸¸ °¡Á®¿À±â
    	var num = parseFloat(currentFontSize, 10); //16px ==> 16
    	
    	//px ´ÜÀ§¸¦ °¡Á®¿À±â
    	var unit = currentFontSize.slice(-2); //16px => px
    	
    	//ÆùÆ® Up
    	num *= 1.2;
    	
    	//¼³Á¤
    	$articleArea.css('fontSize', num + unit);
    }
    
    /*
     * ´º½ºÆùÆ® Down
     */
     function isNewsFontDown(){
     	//¿µ¿ªid
     	var $articleArea = $('div.newsview_article');
     	
     	//ÇöÀç ÆùÆ® »çÀÌÁî
     	var currentFontSize = $articleArea.css('fontSize');
     	
     	//px ¹®ÀÚ¿­À» Á¦¿ÜÇÑ 16¸¸ °¡Á®¿À±â
     	var num = parseFloat(currentFontSize, 10); //16px ==> 16
     	
     	//px ´ÜÀ§¸¦ °¡Á®¿À±â
     	var unit = currentFontSize.slice(-2); //16px => px
     	
     	//ÆùÆ® Up
     	num /= 1.2;
     	
     	//¼³Á¤
     	$articleArea.css('fontSize', num + unit);
     }
     

	 
	//º¹Á¶¸®
	function CallRadio() {		
		KFMActiveX.KFMPlay(document.all.paramStr.value) ;
	}	


	//Menu All Close Open
function HideDIV(d) { document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }


//open Window - popup
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ChAll()
{
   if(document.all.cbAllChk.checked)
   {
     CheckBoxCheck(true) 
   }
   else
   {
     CheckBoxCheck(false) 
   }
}
  
function CheckBoxCheck(boolCH) 
{ 
   for(var i=0; i < document.frm.elements.length; i++) 
   {
       if(document.frm.elements[i].type=="checkbox") 
      {
           document.frm.elements[i].checked = boolCH; 
       } 
    } 
} 

function radio(id){
	 document.radio_ifrm.location.href='/radio/main.asp?id='+id;
	}


	/**
 * writeFlash(Chart SWF URL, Width, Height, Object ID, Background Color, Parameter, Window Mode);
 *
 *
 */

function writeFlash(p_sURL, p_iWidth, p_iHeight, p_sID, p_sBgColor, p_sVars, p_sWinMode)
{

    p_sID = p_sID.replace(new RegExp("[ \f\n\r\t\v]", "gi"), "_");

    // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	oHtmlText =
            "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'\n" +
            "        codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'\n" +
            "        width='" + p_iWidth + "' height='" + p_iHeight + "' id='" + p_sID + "' align='middle'>\n" +
            "    <param name='allowScriptAccess' value='always' />\n" +
            "    <param name='movie' value='" + p_sURL + "' />\n" +
            "    <param name='FlashVars' value='" + p_sVars + "' />\n" +
            "    <param name='wmode' value='" + p_sWinMode + "' />\n" +
            "    <param name='menu' value='true' />\n" +
            "    <param name='quality' value='high' />\n" +
            "    <param name='bgcolor' value='" + p_sBgColor + "' />\n" +
            "    <param name='name' value='" + p_sID + "' />\n" +
            "    <embed src='" + p_sURL + "' FlashVars='" + p_sVars + "' wmode='" + p_sWinMode + "' menu='false'\n" +
            "            quality='high' bgcolor='" + p_sBgColor + "' width='" + p_iWidth + "' height='" + p_iHeight + "'\n" +
            "            name='" + p_sID + "' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'\n" +
            "            pluginspage='http://www.macromedia.com/go/getflashplayer' />\n" +
            "</object>\n";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	this.document.write(oHtmlText);

}

 var oHtmlText2;

function writeFlash2(p_sURL, p_iWidth, p_iHeight, p_sID, p_sBgColor, p_sVars, p_sWinMode, divNm)
{

    var saveurl   = 'saveurl=/chart/imgSave.jsp';   //ÀÌ¹ÌÁö ÀúÀå ±â´ÉÀ» ÇÏ´Â ÆäÀÌÁö¸¦ ÆÄ¶ó¸ÞÅÍ¿¡ Ãß°¡
    var deleteurl = 'deleteurl=/chart/imgDel.jsp'   //ÀÌ¹ÌÁö »èÁ¦ ±â´ÉÀ» ÇÏ´Â ÆäÀÌÁö¸¦ ÆÄ¶ó¸ÞÅÍ¿¡ Ãß°¡
    var menu      = true;                                         //Â÷Æ® ¿À¸¥ÂÊ Å¬¸¯½Ã ¸Þ´º Ç¥½Ã À¯¹« ¼³Á¤

	// ÇÃ·¡½¬ width, height »çÀÌÁî ·Îµå ¹®Á¦ ÇØ°á
    p_sVars += "&width="+p_iWidth+"&height="+p_iHeight+ '&' + saveurl + '&' + deleteurl;

    var oHtmlText;

    p_sID = p_sID.replace(new RegExp("[ \f\n\r\t\v]", "gi"), "_");

    // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	oHtmlText2 =
            "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'\n" +
            "        codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'\n" +
            "        width='" + p_iWidth + "' height='" + p_iHeight + "' id='" + p_sID + "' align='middle'>\n" +
            "    <param name='allowScriptAccess' value='always' />\n" +
            "    <param name='movie' value='" + p_sURL + "' />\n" +
            "    <param name='FlashVars' value='" + p_sVars + "' />\n" +
            "    <param name='wmode' value='" + p_sWinMode + "' />\n" +
            "    <param name='menu' value='true' />\n" +
            "    <param name='quality' value='high' />\n" +
            "    <param name='bgcolor' value='" + p_sBgColor + "' />\n" +
            "    <param name='name' value='" + p_sID + "' />\n" +
            "    <embed src='" + p_sURL + "' FlashVars='" + p_sVars + "' wmode='" + p_sWinMode + "' menu='false'\n" +
            "            quality='high' bgcolor='" + p_sBgColor + "' width='" + p_iWidth + "' height='" + p_iHeight + "'\n" +
            "            name='" + p_sID + "' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'\n" +
            "            pluginspage='http://www.macromedia.com/go/getflashplayer' />\n" +
            "</object>\n";

	var va = eval("document.all."+divNm);
	va.innerHTML=oHtmlText2;
}

/**
 * ÇÃ·¡½Ã Â÷Æ® ³»ºÎÀÇ ÀÌ¹ÌÁö ´Ù¿î ÇÔ¼ö È£ÃâÇÏ´Â ÇÔ¼öÀÌ´Ù.
 * ÆÄ¶ó¸ÞÅÍ flashID´Â ÇÃ·¡½¬¸¦ »ý¼ºÇÒ ¶§ ID¿Í µ¿ÀÏÇÏ°í(writeFlash ÇÔ¼öÀÇ g_sChartName) °íÀ¯ÇØ¾ß ÇÑ´Ù.
 */
function funcImgDown(flashID)
{
    try
    {
        if (navigator.appName.indexOf("Microsoft") != -1)
        {
            window[flashID].imageDown();
        }
        else
        {
            document[flashID].imageDown();
        }
    }
    catch(e){alert('funcImgDown Error:'+e);}
}


function viewprint(ARTICLE_NO){
	 window.open('/bbs/popup_view.asp?ARTICLE_NO='+ARTICLE_NO,'vv','width=700,height=500,scrollbars=yes');
	}


	function comment_write(comnum){
	document.getElementById("comment"+comnum).style.display= (document.getElementById("comment"+comnum).style.display == "block") ? "none" : "block";
	}

	function comment_del(bbsno,ARTICLE_NO,board_no,str_list){
      if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){
	    document.location.href='/bbs/comment_del.asp?bbsno='+bbsno+'&ARTICLE_NO='+ARTICLE_NO+'&board_no='+board_no+'&str_list='+str_list;
	  }
	}

//-->
