function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// »ç¾÷ÀÚ µî·Ï¹øÈ£ Ã¼Å©
function chkWorkNumb(strNumb) {
	if (strNumb.length != 10) {
		return false;
	}
	sumMod  = 0;
	sumMod += parseInt(strNumb.substring(0,1));
	sumMod += parseInt(strNumb.substring(1,2)) * 3 % 10;
	sumMod += parseInt(strNumb.substring(2,3)) * 7 % 10;
	sumMod += parseInt(strNumb.substring(3,4)) * 1 % 10;
	sumMod += parseInt(strNumb.substring(4,5)) * 3 % 10;
	sumMod += parseInt(strNumb.substring(5,6)) * 7 % 10;
	sumMod += parseInt(strNumb.substring(6,7)) * 1 % 10;
	sumMod += parseInt(strNumb.substring(7,8)) * 3 % 10;
	sumMod += Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
	sumMod += parseInt(strNumb.substring(8,9)) * 5 % 10;
	sumMod += parseInt(strNumb.substring(9,10));

	if (sumMod % 10 != 0) {
		return false;
	}
	return true;
}

// ¼ýÀÚ¿µ¹®Á¶ÇÕ Ã¼Å©
function num_char_chk(val) {
	for (var i=0; i < val.length; i++) {
		var ch = val.charAt(i);
		if (!((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))) return false; // ¼ýÀÚ¿µ¹®Á¶ÇÕÀÌ ¾Æ´Ô
	}
	return true; // ¼ýÀÚ¿Í ¿µ¹®ÀÚÀÇ Á¶ÇÕÀÔ´Ï´Ù.
}

// Ã¹±ÛÀÚ ¿µ¹® Ã¼Å©
function checkFirstEnglish(val) {
	var ch = val.charAt(0);
	if (!(ch >= 'a' && ch <= 'z')) return false;
	else return true;
}

// ¼ýÀÚÃ¼Å©
function checkNumber(){
    var objEv = event.srcElement;
    var numPattern = /([^0-9])/;
    numPattern = objEv.value.match(numPattern);
    if(numPattern != null){
        alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
        objEv.value="";
        objEv.focus();
        return false;
    }
}

// ÀÌ¸ÞÀÏ Ã¼Å©
function checkemail(str) {
	var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
	var check=/@[\w\-]+\./;
	var checkend=/\.[a-zA-Z]{2,3}$/;
	if(((str.search(exclude) != -1) || (str.search(check)) == -1) || (str.search(checkend) == -1)) return false;
	else return true;
}

// ÁÖ¹Î¹øÈ£ Ã¼Å©
function checkjumin(jumin1, jumin2) {
	if (jumin1.value.length != 6) {
		return 1; // ÁÖ¹Î¹øÈ£ ¾ÕÀÇ ±æÀÌ°¡ 6ÀÚ¸®°¡ ¾Æ´Ï´Ù.
	} else if (jumin2.value.length != 7) {
		return 2; // ÁÖ¹Î¹øÈ£ µÚÀÇ ±æÀÌ°¡ 7ÀÚ¸®°¡ ¾Æ´Ï´Ù.
	}
	var digit = 0;
	for (var i=0; i < jumin1.value.length; i++) {
		var str_dig = jumin1.value.substring(i, i+1);
		if (str_dig < '0' || str_dig > '9') digit=digit+1;
	}
	if (jumin1.value == '') {
		return 3; // ÁÖ¹Î¹øÈ£ÀÇ ¾ÕÀÚ¸®°¡ ºñ¾î ÀÖ´Ù.
	}
	if ( digit != 0 ) {
		return 4; // ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®°¡ ¼ýÀÚ°¡ ¾Æ´Ï´Ù.
	}
	var digit1 = 0;
	for (var i=0; i < jumin2.value.length; i++) {
		var str_dig1 = jumin2.value.substring(i, i+1);
		if (str_dig1 < '0' || str_dig1 > '9') digit1 = digit1+1;
	}
	if (jumin2.value == '') {
		return 5; // ÁÖ¹Î¹øÈ£ µÞÀÚ¶ó°¡ ºñ¾î ÀÖ´Ù.
	}
	if ( digit1 != 0 ) {
		return 6; // ÁÖ¹Î¹øÈ£ µÞÀÚ¶ó°¡ ¼ýÀÚ°¡ ¾Æ´Ï´Ù.
	}
	if (jumin1.value.substring(2, 3) > 1) {
		return 7; // ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®ÀÇ Çü½ÄÀÌ Æ²·È´Ù.
	}
	if (jumin1.value.substring(4, 5) > 3) {
		return 8; // ÁÖ¹Î¹øÈ£ ¾ÕÀÚ¸®ÀÇ Çü½ÄÀÌ Æ²·È´Ù.
	}
	if (jumin2.value.substring(0, 1) > 4 || jumin2.value.substring(0, 1) == 0) {
		return 9; // ÁÖ¹Î¹øÈ£ µÞÀÚ¸®ÀÇ Çü½ÄÀÌ Æ²·È´Ù.
	}
	var a1 = jumin1.value.substring(0, 1);
	var a2 = jumin1.value.substring(1, 2);
	var a3 = jumin1.value.substring(2, 3);
	var a4 = jumin1.value.substring(3, 4);
	var a5 = jumin1.value.substring(4, 5);
	var a6 = jumin1.value.substring(5, 6);
	var check_digit = a1*2+a2*3+a3*4+a4*5+a5*6+a6*7;
	var b1 = jumin2.value.substring(0, 1);
	var b2 = jumin2.value.substring(1, 2);
	var b3 = jumin2.value.substring(2, 3);
	var b4 = jumin2.value.substring(3, 4);
	var b5 = jumin2.value.substring(4, 5);
	var b6 = jumin2.value.substring(5, 6);
	var b7 = jumin2.value.substring(6, 7);
	var check_digit = check_digit+b1*8+b2*9+b3*2+b4*3+b5*4+b6*5;
	check_digit = check_digit%11;
	check_digit = 11 - check_digit;
	check_digit = check_digit%10;
	if (check_digit != b7) {
		return 10; // ¿Ã¹Ù¸¥ ÁÖ¹Î¹øÈ£°¡ ¾Æ´Ï´Ù.
	} else {
		return 0; // ¿Ã¹Ù¸¥ ÁÖ¹Î¹øÈ£
	}
}

// ÇÑ±ÛÃ¼Å©
function _strCharByte(chStr) {
		alert(chStr);
	if (chStr.substring(0, 2) == '%u') {
		if (chStr.substring(2,4) == '00') return false;
		else return true; //ÇÑ±Û
	} else if (chStr.substring(0,1) == '%') {
		if (parseInt(chStr.substring(1,3), 16) > 127) return true; //ÇÑ±Û
		else return false;
	} else {
		return false;
	}
}

//	Çã¿ëµÈ ±ÛÀÚ¼ö Ã¼Å©
function lengthCheck(str, numOfBytes) {
	var strLen = 0;
	for (var i=0; i <str.length; i++) {
		var ch = escape(str.charAt(i));
		if (_strCharByte(ch)) strLen += 2;
		else strLen++;
	}
	if (strLen > numOfBytes) return false;
	else return true;
}

function lengthMinCheck(str, numOfBytes) {
	var strLen = 0;
	for (var i=0; i <str.length; i++) {
		var ch = escape(str.charAt(i));
		if (_strCharByte(ch)) strLen += 2;
		else strLen++;
	}
	if (strLen < numOfBytes) return false;
	else return true;
}

// ¹ÙÀÌÆ® Ã¼Å©
function formLengthCheck(obj, formName, len) {
	if (!lengthCheck(obj.value, len)) {
		alert(formName + " ±æÀÌ°¡ ÃÊ°úµÇ¾ú½À´Ï´Ù. ÃÖ´ë±æÀÌ´Â " + len + " byteÀÔ´Ï´Ù.");
		obj.focus();
		return false;
	}
	return true;
}

// ºó°ª Ã¼Å©
function checkBlank(val) {
	var sLength = val.length;
	var flag = false;
	if (sLength == 0) flag = false;
	for (var i=0; i<sLength; i++) {
		if (val.substring(i, i+1) != " ") {
			flag = true;
			break;
		}
	}
	return flag;
}

// select, checkbox, radio ÀÇ ¼±ÅÃ°ª ÁÖ±â
function default_value(obj, val, gubun) {
	if (gubun == "S") {
		if (val == "") {
//			obj.options[0].selected = true;

		} else {
			for (var i=0; i < obj.length; i++) {
				if (obj.options[i].value == val) obj.options[i].selected = true;
			}
		}
	} else if (gubun == "C") {
		
		if (val == obj.value) obj.checked = true;
	
	} else if (gubun == "R") {
		
		for (var i=0; i < obj.length; i++) if (obj[i].value == val) obj[i].checked = true;
	
	}
}

//checkbox ¸ðµÎ ¼±ÅÃ,¸ðµÎ Ãë½Ã
function checkAll(obj){
	if(obj){
		if(obj.length >= 2){
			for(var i=0;i<obj.length;i++){
				if(obj[i].checked) obj[i].checked = false;
				else obj[i].checked = true;
			}
		}else{
			if(obj.checked) obj.checked = false;
			else obj.checked = true;
		}
	}
}

function autoTab(input, lens) {
	if (input.value.length == lens) {
		input.form[(getIndex(input)+1) % input.form.length].focus();
	}
}

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;
}

function comma(str) {
	if (str.length <= 3) return str;

	strCount = parseInt(str.length / 3);
	strMod = str.length % 3;

	first = str.substring(0, strMod);
	remain = str.substring(strMod);
	result = "";

	for (var i=1; i<=strCount; i++) {
		result += "," + remain.substring((i-1) * 3, (i-1) * 3 + 3);
	}
	
	result = first + result;
	if (result.substring(0,1) == ",") return result.substring(1);
	else return result;
}

//EnterÅ°
function EnterCheck()
	{
		var str = event.keyCode;       //ÀÔ·ÂµÈ ÄÚµå°ª.

		if(str==13)
		{
			frmchk();
		}
	}

//´ñ±Û Ã¼Å©
	function updateChar(id, length_limit)
	{
			var comment=id;

			var length = calculate_msglen(comment.value);
			document.getElementById(id.name+"Limit").innerHTML = length;

			if (length > length_limit) {
					alert("ÃÖ´ë " + length_limit + "byteÀÌ¹Ç·Î ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.");
					comment.value = comment.value.replace(/\r\n$/, "");
					comment.value = assert_msglen(comment.value, length_limit, id.name);
			}
	}

	function calculate_msglen(message)
	{
			var nbytes = 0;

			for (i=0; i<message.length; i++) {
					var ch = message.charAt(i);
					if(escape(ch).length > 4) {
							nbytes += 2;
					} else if (ch == '\n') {
							if (message.charAt(i-1) != '\r') {
									nbytes += 1;
							}
					} else if (ch == '<' || ch == '>') {
							nbytes += 4;
					} else {
							nbytes += 1;
					}
			}

			return nbytes;
	}

	function assert_msglen(message, maximum)
	{
			var inc = 0;
			var nbytes = 0;
			var msg = "";
			var msglen = message.length;

			for (i=0; i<msglen; i++) {
					var ch = message.charAt(i);
					if (escape(ch).length > 4) {
							inc = 2;
					} else if (ch == '\n') {
							if (message.charAt(i-1) != '\r') {
									inc = 1;
							}
					} else if (ch == '<' || ch == '>') {
							inc = 4;
					} else {
							inc = 1;
					}
					if ((nbytes + inc) > maximum) {
							break;
					}
					nbytes += inc;
					msg += ch;
			}
			document.getElementById("commentLimit").innerHTML = nbytes;
			return msg;
	}

	//´ÙÀ½¸ÞÀÏÃ¼Å©
	function chkDaumMail(Form1)
	{
/*        if(Form1.value != "")
        {
            if(Form1.value=="hanmail.net" || Form1.value=="daum.net")
            {
				alert("´ÙÀ½¸ÞÀÏÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."); 
				Form1.value=""
				Form1.focus();
				return false; 
            }
            return true;
        }*/
	}
//	À©µµ¿ìÆË¾÷
	function WindowOpen(strURL,strName,intWidth,intHeight,intLeft,intTop,blnScrollbar){
		window.open(strURL, strName, "width=" + intWidth + ", height=" + intHeight + ", left=" + intLeft + ", top=" + intTop + ", scrollbars=" + (blnScrollbar ? "yes" : "no"));
	}


	function StatusBar(){
		window.status="°¡Á·°ú ¿©Çà ±×¸®°í ´ç½ÅÀÇ¼±ÅÃ TNU";
	}

//¼ýÀÚÃ¼Å©
    function ChkNumber(Form1)
    {
        if(Form1.value != "")
        {
            for( i=0 ; i < Form1.value.length ; i++ ) 
            {
                if((Form1.value.charAt(i)<"0") || (Form1.value.charAt(i)>"9"))
                {  
                    alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù."); 
                    Form1.value=""
                    Form1.focus();
                    return false; 
                } 
            } // end for 
            return true;
        }
    }


//ÇÑ±Û
    function ChkKorea(Form1)
    {
        if(Form1.value != "")
        {
            for( i=0 ; i < Form1.value.length ; i++ ) 
            {
                if((Form1.value.charAt(i)<"°¡") || (Form1.value.charAt(i)>"ÆR"))
                {  
                    alert("ÇÑ±Û¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù."); 
                    Form1.value=""
                    Form1.focus();
                    return false; 
                } 
            } // end for 
            return true;
        }
    }

//¾ÆÀÌµðÃ¼Å©
    function ChkLength(Form1)
    {
        if(Form1.value != "")
        {
			if( Form1.value.length < 4 || Form1.value.length > 10)
			{
				alert("4ÀÚ ÀÌ»ó 10ÀÚ ÀÌ³»·Î ÀÔ·ÂÇÏ¼¼¿ä."); 
				Form1.value=""
				Form1.focus();
				return false; 
			}
		}
	}

//¾ÆÀÌµðÃ¼Å©
    function ChkId(Form1)
    {
        if(Form1.value != "")
        {
//			if( Form1.value.length < 4 || Form1.value.length > 10)
//			{
//				alert("4ÀÚ ÀÌ»ó 10ÀÚ ÀÌ³»·Î ÀÔ·ÂÇÏ¼¼¿ä."); 
//				Form1.value=""
//				Form1.focus();
//				return; 
//			}
//			if (ChkLength(Form1) == false) return;
			if((Form1.value.charAt(0)<"a") || (Form1.value.charAt(0)>"z"))
			{  
				alert("Ã¹±ÛÀÚ´Â ¿µ¹®¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù."); 
				Form1.value=""
				Form1.focus();
				return false; 
			} 
            for( i=0 ; i < Form1.value.length ; i++ ) 
            {
                if(((Form1.value.charAt(i)<"a") || (Form1.value.charAt(i)>"z")) && ((Form1.value.charAt(i)<"0") || (Form1.value.charAt(i)>"9")))
                {  
                    alert("¿µ¹®,¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù."); 
                    Form1.value=""
                    Form1.focus();
                    return false; 
                } 
            } // end for 
            return true;
        }
    }

//°ø¹éÃ¼Å©
    function ChkSpace(formx)
    {
        if(formx.value != "")
        {
            var xx = 0 ;
            for (ii = 0 ; ii < formx.value.length ; ii ++)
            {
                if(formx.value.charAt(ii) == " ")
                    xx = xx + 1;
            }
            if ( xx > 0 && xx == formx.value.length) 
            {
                alert("°ø¹éÀ» ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù..");
                formx.value = ""
                formx.focus();
            }
        }
    }
//ºñ¾î ÀÖ´ÂÁö Ã¼Å© ÈÄ °æ°í Ã¢
function ChkEmpty(checkText, alertStr)
{
	if (checkText.value == "")
	{
		alert(alertStr);
		checkText.focus();
		return (false);
	}
}
	
	
//Æ¯Á¤ ¹®ÀÚ Ã¼Å©
    function ChkStr(formx,str,msg)
    {
        if(formx.value != "")
        {
            var xx = 0 ;
            for (ii = 0 ; ii < formx.value.length ; ii ++)
            {
                if(formx.value.charAt(ii) == str){
					if (msg!="") alert(msg);
	                formx.value = ""
		            formx.focus();
				}
            }
        }
    }

// ºñ±³ÇÏ¿© °á°ú¸¦ ¸Þ½ÃÁöº¸¿©ÁÖ°í true or false·Î µ¹·ÁÁÖ±â
	function chkValue(str1,str2,msg){
		if(str1.value==str2){
			if(msg != "")
				alert(msg);
			str1.focus();
			return false;
		}
		else
			return true;
	}

//e-mailÁÖ¼Ò check
    function ChkMail(eml)
    {
        comIndex=eml.value.indexOf(",");
        aIndex=eml.value.indexOf("@");
        dotIndex=eml.value.indexOf(".");
        len=eml.value.length;
        if(len==0) return true;
        else if(comIndex=="-1" && aIndex>1 && dotIndex>3 && aIndex<(dotIndex-1)){
            return true;
        }
        else{
            alert("e-MailÁÖ¼Ò¸¦ ¿Ã¹Ù¸£°Ô ÀÔ·ÂÇÏ¼¼¿ä");
            eml.value="";
            eml.focus();
            return false;
        }
        return true;
    }

//ÁÖ¹Îµî·Ï¹øÈ£Ã¼Å©
    function jumin_chk(jumin1,jumin2)
    {
        if(jumin1.value !="" || jumin2.value !="")
        {
            jm0 = parseInt(jumin1.value.substring(0,1));
            jm1 = parseInt(jumin1.value.substring(1,2));
            jm2 = parseInt(jumin1.value.substring(2,3));
            jm3 = parseInt(jumin1.value.substring(3,4));
            jm4 = parseInt(jumin1.value.substring(4,5));
            jm5 = parseInt(jumin1.value.substring(5,6));
            jm6 = parseInt(jumin2.value.substring(0,1));
            jm7 = parseInt(jumin2.value.substring(1,2));
            jm8 = parseInt(jumin2.value.substring(2,3));
            jm9 = parseInt(jumin2.value.substring(3,4));
            jm10= parseInt(jumin2.value.substring(4,5));
            jm11= parseInt(jumin2.value.substring(5,6));
            jmchk=parseInt(jumin2.value.substring(6,7));

            jmtot=jm0*2 + jm1*3 + jm2*4 + jm3*5 + jm4*6 + jm5*7 + jm6*8 + jm7*9 + jm8*2 + jm9*3 + jm10*4 + jm11*5;
            tmpval=Math.floor(jmtot/11);
            jmval=11-(jmtot-tmpval*11);

            if(jmval == 10){
                jmval=0;
            }

            if(jmval == 11){
                jmval=1;
            }

            if(jmchk != jmval)	  {
                window.alert('ÀÔ·ÂÇÏ½Å ÁÖ¹Îµî·Ï¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù.');
                jumin1.value = "";
                jumin2.value = "";

                jumin1.focus();
                return false;
            }
        }
    }


	// ÄíÅ°°ªÀ» ÀÐ¾î¿À´Â ÇÔ¼ö
	function getCookie(strName) {

		var strArg = new String(strName + "="); 
		var nArgLen, nCookieLen, nEnd;
		var i = 0, j;

		nArgLen = strArg.length;
		nCookieLen = document.cookie.length;
alert(document.cookie);
		if(nCookieLen > 0) {
			while(i < nCookieLen) {
				j = i + nArgLen;
				if (document.cookie.substring(i, j) == strArg) {
					nEnd = document.cookie.indexOf (";", j);
					if (nEnd == -1) nEnd = document.cookie.length;
					return unescape(document.cookie.substring(j, nEnd));
				}
				i = document.cookie.indexOf(" ", i) + 1;
				if (i == 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 showButton(strName) {
//			return false;
		if (getCookie(strName) != "done") { 
			return true;
		}
		else
			return false;

	}

	// º°Á¡ÀÌ³ª ÃßÃ·ÇÏ±â¸¦ ´©¸£¸é ÇÑ¹ø¸¸ °¡´ÉÇÏ°Ô ÀúÀåÇÏ±â ÇÔ¼öc
	function closeButton(strName) 
	{ 
		setCookie(strName, "done" , 1);
	}
	////////////////////////////////////////////////////////////
//ºí·°Ã³¸®
function showB_1(num)
{	var i;
	for (i=0; i<=5; i++)
	{if (i == num)
		{	document.all("B_01_" + i).style.display = "block";}
		else
		{	document.all("B_01_" + i).style.display = "none";}}	}
//-->

	////////////////////////////////////////////////////////////
	// ÆË¾÷Ã¢À» ¶ç¿ì´Â ÇÔ¼ö
	// showPopup("040107", "/popup/040107/040107.html", 449, 734, 0, 0, false);
	function showPopup(strName, strURL, intWidth, intHeight, intLeft, intTop, blnScrollbar) {
		if (getCookie("popup_" + strName) != "done") { 
			window.open(strURL, strName, "width=" + intWidth + ", height=" + intHeight + ", left=" + intLeft + ", top=" + intTop + ", scrollbars=" + (blnScrollbar ? "yes" : "no"));
		}
	}

	// ÆË¾÷Ã¢ ´Ý±â ¹öÆ° Å¬¸¯ ½Ã Ã³¸®
	function closeWin() 
	{ 
		if (document.all.chkPopup.checked ) setCookie("popup_" + window.name, "done" , 1);
		window.close(); 
	}
function swf(src,w,h){
 html = '';
 html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.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="bgcolor" value="#ffffff">';
 html += '<param name="menu" value="false">';
 html += '<param name=wmode value="transparent">';
 html += '<param name="swliveconnect" value="true">';
 html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" 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 += '</object>';
 document.write(html);
}

	function EnterDown() {
		var keyValue = event.keyCode;
		if (keyValue =='13')
		Loginchk();
	}

	function EnterDown1() {
		var keyValue = event.keyCode;
		if (keyValue =='13')
		Loginchk1();
	}

	function EnterDown2() {
		var keyValue = event.keyCode;
		if (keyValue =='13')
		searchit();
	}


	function slideShow(str)
	{
			var photoimg = event.srcElement.value;
			var pname = photoimg.split("\\");
			var strn = str.charAt(4);
			var tpname = pname[pname.length-1];
		//	alert(pname[pname.length-1]);

			var tpfile = tpname.split(".");
			var tpext;
//		for ( i=0; i < 4; ++i)
		{
			if( tpfile.length == 1 ) {
				alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù.\n\n JPG, GIF, BMP ÆÄÀÏ Çü½Ä¸¸ °¡´ÉÇÕ´Ï´Ù.   \n\n ´Ù½Ã È®ÀÎÇØ ÁÖ½Ê½Ã¿ä.   \n");
				if(strn == 1) {
					document.frm1.p_file.value = "";
//				frm1.p_file.select();
//				document.selection.clear();
				}
				return;
			}
			else {
				tpext = tpfile[tpfile.length-1];
				tpext = tpext.toLowerCase();
				if(tpext != "jpg" && tpext != "jpeg" && tpext != "gif" && tpext != "bmp" ) {
					alert(" ÀÌ¹ÌÁö ÆÄÀÏÀº JPG, GIF, BMP ÆÄÀÏ Çü½Ä¸¸ °¡´ÉÇÕ´Ï´Ù.   \n\n ´Ù½Ã È®ÀÎÇØ ÁÖ½Ê½Ã¿ä.\n");
					if(strn == 1) {
						document.frm1.p_file.value = "";
//				frm1.p_file.select();
//				document.selection.clear();
					}
//					document.frm1.reset();
					return;
				}
			}

		//	alert(photoimg);

			if(photoimg.indexOf("'") != -1) {
				alert("ÆÄÀÏÀÇ ÀÌ¸§¿¡ \" ' \" ¹®ÀÚ¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
				return false;
			}
//			document.images[str].src = photoimg;
		}
}



//==================ÀÌ¹ÌÁöÃ¼Å©=================================

function imageFileCheck(itval, str)
{
		var photoimg = itval;
		var pname = photoimg.split("\\");
		var strn = str.charAt(4);
		var tpname = pname[pname.length-1];
	//	alert(pname[pname.length-1]);

		var tpfile = tpname.split(".");
		var tpext;

		if( tpfile.length == 1 ) {
			alert("ÀÌ¹ÌÁö ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù.\n\n JPG, GIF, BMP ÆÄÀÏ Çü½Ä¸¸ °¡´ÉÇÕ´Ï´Ù.   \n\n ´Ù½Ã È®ÀÎÇØ ÁÖ½Ê½Ã¿ä.   \n");
			if(strn == 1) {
				document.frm1.p_file.value = "";
//				frm1.p_file.select();
//				document.selection.clear();
			}
			return true;
		}
		else {
			tpext = tpfile[tpfile.length-1];
			tpext = tpext.toLowerCase();
			if(tpext != "jpg" && tpext != "jpeg" && tpext != "gif" && tpext != "bmp" ) {
				alert(" ÀÌ¹ÌÁö ÆÄÀÏÀº JPG, GIF, BMP ÆÄÀÏ Çü½Ä¸¸ °¡´ÉÇÕ´Ï´Ù.   \n\n ´Ù½Ã È®ÀÎÇØ ÁÖ½Ê½Ã¿ä.\n");
				if(strn == 1) {
					document.frm1.p_file.value = "";
//				frm1.p_file.select();
//				document.selection.clear();
				}
			//	document.form.reset();
				return false;
			}
		}

		if(photoimg.indexOf("'") != -1) {
			alert("ÆÄÀÏÀÇ ÀÌ¸§¿¡ \" ' \" ¹®ÀÚ¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		return false;
		}
	//	document.images[str].src = photoimg;
	return true;
}

//==================¼îÇÎ¸ô»ó¼¼º¸±â ºí·°(Q&A, ±¸¸ÅÈÄ±â)=================================
/*
	function readBoard(num,val)
		{
				alert("asd");
			{
			  if (val == "1"){
					menu = eval("document.all.block"+num+".style");
			  }else{
			  		menu = eval("document.all.block0"+num+".style");
			  }
				
				if (num==num){
					if (menu.display=="block"){
						menu.display="none";
					}
					else{
						menu.display="block";}
					}
			}
		}
*/

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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_showHideLayers() { //v6.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 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 login(){	//·Î±×ÀÎ ÇÔ¼ö
	
		url =" /member_01/login.asp?p_url="+window.location.href;
		window.open(url, "minor", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=450,height=350");

}
function cyberopen(page){// »çÀÌ¹ö Àü½Ã°ü 
		var page 
		url = page
		window.open(url, "cyber", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,screenX=0, screenY=0,width=1000,height=648,top=0,left=0");
}

function helpopen(){//»çÀÌÆ®ºÒÆí½Å°í
	url ="/popup/help.asp"
	window.open(url, "help", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,screenX=0, screenY=0,width=450,height=640,top=0,left=0");

}
function onlineopen(){//¿Â¶óÀÎ ºê·¯¼Å
	url ="/brochure/brochure.htm"
	window.open(url, "brochure", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,screenX=0, screenY=0,width=700,height=450,top=0,left=0");

}

function mess() {
     alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
}
