	function chkInteger(Form1)	{
		
		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 isEmail(str) {
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0;
	  if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr)) supported = 1;
	  }
	  if (!supported) 
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
	  return (!r1.test(str) && r2.test(str));
	}

	function trim(str) {
		var space = " ";
		var tab = "	";
		var re_space = new RegExp(/ /g);
		var re_tab = new RegExp(/	/g);

		if (str.replace(re_space, "").replace(re_tab, "") == "")
			return "";

		if (str.substr(0, 1) == space || str.substr(0, 1) == tab) {
			while (true) {
				if (str.substr(0, 1) == space || str.substr(0, 1) == tab)
					str = str.substr(1);
				else
					break;
			}
		}

		if (str.substr(str.length - 1, 1) == space || str.substr(str.length - 1, 1) == tab) {
			while (true) {
				if (str.substr(str.length - 1, 1) == space || str.substr(str.length - 1, 1) == tab)
					str = str.substr(0, str.length - 1);
				else
					break;
			}
		}

		return str;
	}

	function isNumeric(str) {
		var str1 = trim(str);

		if (str1 != "" && str1 != null && str1 != undefined && !isNaN(str1) && str1.indexOf(".") < 0) {
			return true;
		}
		else {
			return false;
		}
	}

	// ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸¥Áö ÆÇº°ÇÏ´Â ÇÔ¼ö
	function isJuminNumValid(jumin_num) {
		if (isNaN(jumin_num) || jumin_num.indexOf(".") != -1) {
			return false;
		}
		
		strKeyValue = new String("234567892345");
		strJuminNum = new String(jumin_num);
		
		DigitSum = 0;
		for (i=0; i<=11; i++)
			DigitSum = DigitSum + parseInt(strJuminNum.substring(i, i+1)) * parseInt(strKeyValue.substring(i, i+1));
		
		i = 1;
		
		while((i * 11) <= DigitSum) {
			i = i + 1;
		}
		
		CheckDigit = ((i * 11) - DigitSum) % 10;
		
		if (CheckDigit == strJuminNum.substring(12, 13))
			return true;
		else
			return false;
	}

	function onlyNumber() {
		if (event.keyCode < 48 || event.keyCode > 57){
			event.returnValue = false;
		}
	}
	function numberDot() {
		if(event.keyCode != 46 && (event.keyCode < 48 || event.keyCode > 57)) {
			event.returnValue = false;
		}
	}
	function numberBar() {
		if(event.keyCode != 45 && (event.keyCode < 48 || event.keyCode > 57)) {
			event.returnValue = false;
		}
	}

var old = '';
function menu(name){

	submenu=eval("submenu_prodeval"+name+".style");

    if(old!=submenu)
    {
        if(old!='')
        {
            old.display='none';
        }
        submenu.display='block';
        old=submenu;
    }
    else
    {
        submenu.display='none';
        old='';
    }
}

	function goLogin() {
		location.href = "/login/login.asp?url=" + escape(location.href);
	}

	function winFileUpload(fileLoc, rtnMethod)
	{
		var win = window.open("/common/fileupload.asp?fileLoc=" + fileLoc + "&rtnMethod=" + rtnMethod, "winFileUpload", "width=352, height=183");
		win.focus();
	}

	function winFileDownload(boardname, idx, filepath, filename)
	{
		location.href = "/pop/filedownload.asp?idx=" + idx + "&boardname=" + boardname + "&filepath=" + filepath + "&filename=\\" + filename;
	}
	
	function winFileDownloadetc(idx, filepath, filename)
	{
		location.href = "/pop/filedownload.asp?idx=" + idx + "&filepath=" + filepath + "&filename=\\" + filename;
	}
	function winZipcode()
	{
		var win = window.open("/pop/Zipcode.asp", "winZopcode", "width=400, height=285")
		win.focus()
	}

	function openShipImage(ImageURL) {
		var win = window.open("/pop/imageView.asp?ImageURL=" + ImageURL, "winImageView", "width=100, height=100, scrollbars=no")
		win.focus()
	}

	
	// ±Ý¾× ¼ýÀÚ¸¦ ÇÑ±Û·Î.. : num_han, ciphers_han, NUM_HAN
	function num_han(nums)
	{
		
		if ( nums == "1" )       return "ÀÏ";
		else if ( nums == "2" )  return "ÀÌ";
		else if ( nums == "3" )  return "»ï";
		else if ( nums == "4" )  return "»ç";
		else if ( nums == "5" )  return "¿À";
		else if ( nums == "6" )  return "À°";
		else if ( nums == "7" )  return "Ä¥";
		else if ( nums == "8" )  return "ÆÈ";
		else if ( nums == "9" )  return "±¸";
		else if ( nums == "½Ê" ) return "½Ê";
		else if ( nums == "¹é" ) return "¹é";
		else if ( nums == "Ãµ" ) return "Ãµ";
		else if ( nums == "¸¸" ) return "¸¸ ";
		else if ( nums == "¾ï" ) return "¾ï ";
		else if ( nums == "Á¶" ) return "Á¶ ";
		else if ( nums == "0" )  return "";
	}

	
	function NUM_HAN(num,mode,return_input)
	{
	/*
		fnc(num,1):alert
		fnc(num,2):°°ÀºÈ­¸é
		fnc(num,3,return_input):´Ù¸¥ input¿¡ ¹ÝÈ¯
	*/
		if ( num == "" || num == "0" ) {
			if ( mode == "3" ) {
				return_input.value = "";
			}
			return;
		}

		num=new String(num);
		num=num.replace(/,/gi,"");

		var len  = num.length;
		var temp1 = "";
		var temp2 = "";

		if ( len/4 > 3 && len/4 <= 4 ) {
			if ( len%4 == 0 ) {
				temp1 = ciphers_han(num.substring(0,4)) + "Á¶" + ciphers_han(num.substring(4,8)) + "¾ï" + ciphers_han(num.substring(8,12)) + "¸¸" + ciphers_han(num.substring(12,16));
			}
			else {
				temp1 = ciphers_han(num.substring(0,len%4)) + "Á¶" + ciphers_han(num.substring(len%4,len%4+4)) + "¾ï" + ciphers_han(num.substring(len%4+4,len%4+8)) + "¸¸" + ciphers_han(num.substring(len%4+8,len%4+12));
			}
		}
		else if ( len/4 > 2 && len/4 <= 3 ) {
			if ( len%4 == 0 ) {
				temp1 = ciphers_han(num.substring(0,4)) + "¾ï" + ciphers_han(num.substring(4,8)) + "¸¸" + ciphers_han(num.substring(8,12));
			}
			else {
				temp1 = ciphers_han(num.substring(0,len%4)) + "¾ï" + ciphers_han(num.substring(len%4,len%4+4)) + "¸¸" + ciphers_han(num.substring(len%4+4,len%4+8));
			}
		}
		else if ( len/4 > 1 && len/4 <= 2 ) {
			if ( len%4 == 0 ) {
				temp1 = ciphers_han(num.substring(0,4)) + "¸¸" + ciphers_han(num.substring(4,len));
			}
			else {
				temp1 = ciphers_han(num.substring(0,len%4)) + "¸¸" + ciphers_han(num.substring(len%4,len));
			}
		}
		else if ( len/4 <= 1 ) {
			temp1 = ciphers_han(num.substring(0,len));
		}

		for (var i=0; i<temp1.length; i++) {
			temp2 = temp2 + num_han(temp1.substring(i, i+1));
		}

		temp3=new String(temp2);
		temp3=temp3.replace(/¾ï ¸¸/gi,"¾ï ");
		temp3=temp3.replace(/Á¶ ¾ï/gi,"Á¶ ");

		if ( mode == 1 ) {
			alert(temp3 + "¿ø");
		} else if ( mode == 2 ) {
			return temp3;
		} else if ( mode == 3 ) {
			return_input.value = temp3 + "¿ø";
			//return_input.value = temp3;
			//return_input.value = "\\ "+temp3;
		}
	}

	function ciphers_han(num){
		var len  = num.length;
		var temp = "";

		if ( len == 1 ) {
			temp = num;
		}
		else if ( len == 2 ) {
			temp = num.substring(0,1) + "½Ê" + num.substring(1,2);
		}
		else if ( len == 3 ) {
			temp = num.substring(0,1) + "¹é" + num.substring(1,2) + "½Ê" + num.substring(2,3);
		}
		else if ( len == 4 ) {
			temp = num.substring(0,1) + "Ãµ" + num.substring(1,2) + "¹é" + num.substring(2,3) + "½Ê" + num.substring(3,4);
		}

		num=new String(temp);
		num=num.replace(/0½Ê/gi,"");
		num=num.replace(/0¹é/gi,"");
		num=num.replace(/0Ãµ/gi,"");
		return num;
	}