	function MakeFlash(){
		document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="750" height="70" title="menu">');
		document.write ('<param name="movie" value="../image/memu.swf" />');
		document.write ('<param name="quality" value="high" />');
		document.write ('<embed src="../image/memu.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="70"></embed>');
		document.write ('</object>');
	}



	function setOpenWin(url,ww,hh,nm){
		window.open(url,nm,'width='+ww+',height='+hh+',left='+(screen.width-ww)/2+',top='+(screen.height-hh-40)/2);
	}
	function setOpenFullWin(url,nm){
		var WW = screen.width;
		var HH = screen.height;
		window.open(url,nm,'width='+WW+',height='+HH+',left=0,top=0');
	}




	function setIframeConfirmWin(url,msg){
		if (confirm(msg,'')){
			hFrm.location.href=url;
		}
	}

	function imgHelp_onclick() {
		window.open("/form/Help.asp",null,"toolbar=no width=1000 height=750")
	}

	function imgManual_onclick() {
		//window.location.href = "/upload/temp/RM(°üÀç½Ã½ºÅÛ)»ç¿ëÀÚ¸Å´º¾ó.ppt"
		window.open("/upload/temp/RM(°üÀç½Ã½ºÅÛ)»ç¿ëÀÚ¸Å´º¾ó.ppt")
	}
	/* --------------------------------------------------
	   ¸ÞÀÎ ÇÁ·¹ÀÓ¿¡¼­ ¿ÞÂÊÆí ÇÁ·¹ÀÓÀÇ ÀÌµ¿ ¼³Á¤
	  ------------------------------------------------*/
	function setIframeWin(url){
		lFrm.location.href=url;
	}

	/* --------------------------------------------------
	   ¿À¸¥ÂÊ ÇÁ·¹ÀÓ¿¡¼­ ¿ÞÂÊÆí ÇÁ·¹ÀÓÀÇ Å¸°Ù ¼³Á¤
	  ------------------------------------------------*/
	function setIframeParentWin(url){
		parent.lFrm.location.href=url;
	}



	/* --------------------------------------------------
	   ¿µ¹®Ã¼Å©
	  ------------------------------------------------*/
	function check_eng(val,ment,which,extra) {
		if (extra == 'id'){
			ex = /^[a-zA-Z]/;
			if (ex.test(val.substr(0,1))) {
			} else {
				alert(ment+'\nÃ¹ÀÚ¸®°¡ ¾ËÆÄºªÀÌ¾î¾ß ÇÕ´Ï´Ù.');
				return false;
			}
		}
		if (which == 'eng') {
			ex = /[a-zA-Z]/;
			attachment = '\n¿µ¹®¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdig') {
			ex = /[a-zA-Z0-9]/;
			attachment = '\n¿µ¹®,¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigminus') {
			ex = /[a-zA-Z0-9-]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigminusdot') {
			ex = /[a-zA-Z0-9-.]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ÇÏÀÌÇÂ,Á¡¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigminusbar') {
			ex = /[a-zA-Z0-9-_]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ÇÏÀÌÇÂ,¾ð´õ¹Ù¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigblk') {
			ex = /[a-zA-Z0-9 ]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ºóÄ­¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigblkcom') {
			ex = /[a-zA-Z0-9 ,]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ºóÄ­,ÄÞ¸¶¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigblkcomdot') {
			ex = /[a-zA-Z0-9 ,.]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ºóÄ­,ÄÞ¸¶,Á¡¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigblkcomdotminus') {
			ex = /[a-zA-Z0-9 ,.-]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ºóÄ­,ÄÞ¸¶,Á¡,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'engdigminusgol') {
			ex = /[a-zA-Z0-9-.@]/;
			attachment = '\n¿µ¹®,¼ýÀÚ,ÇÏÀÌÇÂ,Á¡,@¸¸ °¡´ÉÇÕ´Ï´Ù.';
		}
		for (i=0;i<val.length;i++) {
			str = '';
			str = val.substr(i,1);
			if (ex.test(str)) {
			} else {
				alert(ment+attachment);
				return false;
			}
		}
		return true;
	}





	/* --------------------------------------------------
	  ÇÑ±ÛÃ¼Å©
	  ------------------------------------------------*/
	function check_kor(val,ment,which) {
		if (which == 'kor') {
			ex = /[°¡-ÆR]/;
			attachment = '\nÇÑ±Û¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordig') {
			ex = /[°¡-ÆR0-9]/;
			attachment = '\nÇÑ±Û,¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordigblk') {
			ex = /[°¡-ÆR0-9 ]/;
			attachment = '\nÇÑ±Û,¼ýÀÚ,ºóÄ­¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordigblkcom') {
			ex = /[°¡-ÆR0-9 ,]/;
			attachment = '\nÇÑ±Û,¼ýÀÚ,ºóÄ­,ÄÞ¸¶¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordigblkcomdot') {
			ex = /[°¡-ÆR0-9 ,.]/;
			attachment = '\nÇÑ±Û,¼ýÀÚ,ºóÄ­,ÄÞ¸¶,Á¡¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordigblkcomdotminus') {
			ex = /[°¡-ÆR0-9 ,.-]/;
			attachment = '\nÇÑ±Û,¼ýÀÚ,ºóÄ­,ÄÞ¸¶,Á¡,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		}
		for (i=0;i<val.length;i++) {
			str = '';
			str = val.substr(i,1);
			if (ex.test(str)) {
			} else {
				alert(ment+attachment);
				return false;
			}
		}
		return true;
	}





	/* --------------------------------------------------
	   ÇÑ±Û, ¿µ¹®Ã¼Å©
	  ------------------------------------------------*/
	function check_koreng(val,ment,which) {
		if (which == 'koreng') {
			ex = /[°¡-ÆRa-zA-Z]/;
			attachment = '\nÇÑ±Û,¿µ¹®¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'korengdigminus') {
			ex = /[°¡-ÆRa-zA-Z0-9-]/;
			attachment = '\nÇÑ±Û,¿µ¹®,¼ýÀÚ,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'korengdigblk') {
			ex = /[°¡-ÆRa-zA-Z0-9 ]/;
			attachment = '\nÇÑ±Û,¿µ¹®,¼ýÀÚ,ºóÄ­¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'korengdigblkminus') {
			ex = /[°¡-ÆRa-zA-Z0-9 -]/;
			attachment = '\nÇÑ±Û,¿µ¹®,¼ýÀÚ,ºóÄ­,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'kordigblkcomdotminus') {
			ex = /[°¡-ÆRa-zA-Z0-9 ,.-]/;
			attachment = '\nÇÑ±Û,¿µ¹®,¼ýÀÚ,ºóÄ­,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		}
		for (i=0;i<val.length;i++) {
			str = '';
			str = val.substr(i,1);
			if (ex.test(str)) {
			} else {
				alert(ment+attachment);
				return false;
			}
		}
		return true;
	}





	/* --------------------------------------------------
	   ¼ýÀÚÃ¼Å©
	  ------------------------------------------------*/
	function check_digit(val,ment,which) {
		if (which == 'dig') {
			ex = /[0-9]/;
			attachment = '\n¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'digcom') {
			ex = /[0-9,]/;
			attachment = '\n¼ýÀÚ,ÄÞ¸¶¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'digcom2') {
			ex = /[0-9,.]/;
			attachment = '\n¼ýÀÚ,ÄÞ¸¶,¼Ò¼ýÁ¡¸¸ °¡´ÉÇÕ´Ï´Ù.';
		} else if (which == 'digminus') {
			ex = /[0-9-]/;
			attachment = '\n¼ýÀÚ,ÇÏÀÌÇÂ¸¸ °¡´ÉÇÕ´Ï´Ù.';
		}
		for (i=0;i<val.length;i++) {
			str = '';
			str = val.substr(i,1);
			if (ex.test(str)) {
			} else {
				alert(ment+attachment);
				return false;
			}
		}
		return true;
	}




	function fc_chk_byte(frm,ele,maxlen) {
		var ls_str				=  ele.value;
		var li_str_len		=  ls_str.length;
		var li_max			=  maxlen;
		var li_byte			=  0;
		var li_len				=  0;
		var ls_one_char	=  "";
		var ls_str2			=  "";
		for (i=0;i<li_str_len;i++) {
			ls_one_char =  ls_str.charAt(i);
			if (escape(ls_one_char).length > 4) {
				li_byte =  li_byte+2;
			} else {
				li_byte++;
			}
			if(li_byte <=  li_max) {
				li_len =  i + 1;
			}
		}
		if(li_byte > li_max) {
			alert(li_max+"±ÛÀÚ¸¦ ÃÊ°ú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù.\nÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù.");
			ls_str2 = ls_str.substr(0, li_len);
			aro_name.value = ls_str2;
		}
		ele.focus();
	}

	//---------------------------------------------------------------------
	// Function name		:	getFormattedVal 
	// Description			:	¼ýÀÚ¸¦ Æ÷¸äÀÌ °®Ãß¾îÁø ¹®ÀÚ¿­·Î ¹Ù²Þ
	//								###3 <= ¼ýÀÚ3Àº ¼¼ÀÚ¸®¸¶´Ù ,¸¦ Âï°Ú´Ù´Â ¸»
	//								.##### <= .(¼Ò¼öÁ¡)µÚ·Î 5ÀÚ¸®±îÁö Ç¥ÇöÇÏ°Ú´Ù´Â ¸»
	// Parameter			:	value  : °Ë»çÇÒ °ª
	// format				:	º¯È¯ÇÒ ÇüÅÂ
	// Return				:	º¯È¯µÈ °ª ¸®ÅÏ
	// -------------------------------------------------------------------- 
	// Usage					:	getFormattedVal(value , "###3.#####")
	//---------------------------------------------------------------------

	function addCommaStr(strVal,arrNum) {
		var str = strVal.value;
		str = delCommaStr(str);
		//alert(str);
		//return;
		if (str.length < 1) {
			return "";
		} else {
			var tm = "";
			var ck = "";
			if (str.substring(0, 1) == "-") { //À½¼ö
				tm = str.substring(1, str.length);
				ck = "Y";
			} else {//¾ç¼ö
			tm = str;
			ck = "N";
			}
			var st = "";
			var cm = ",";

			for (var i = tm.length, j = 0; i > 0; i--, j++) {
				if ((j % 3) == 2) {
					if (tm.length == j + 1) st = tm.substring(i - 1, i) + st;
					else st = cm + tm.substring(i - 1, i) + st;
				} else {
					st = tm.substring(i - 1, i) + st;
				}
			}
			if (ck == "Y") st = "-" + st;
		}
		strVal.value =  st;
	}

	function addCommaStr2(str) {
		str = delCommaStr(str);
		//alert(str);
		//return;
		if (str.length < 1) {
			return "";
		} else {
			var tm = "";
			var ck = "";
			if (str.substring(0, 1) == "-") { //À½¼ö
				tm = str.substring(1, str.length);
				ck = "Y";
			} else {//¾ç¼ö
			tm = str;
			ck = "N";
			}
			var st = "";
			var cm = ",";

			for (var i = tm.length, j = 0; i > 0; i--, j++) {
				if ((j % 3) == 2) {
					if (tm.length == j + 1) st = tm.substring(i - 1, i) + st;
					else st = cm + tm.substring(i - 1, i) + st;
				} else {
					st = tm.substring(i - 1, i) + st;
				}
			}
			if (ck == "Y") st = "-" + st;
		}
		return st;
	}



	function delCommaStr(str) {
		if (str.length < 1) {
			return "";
		} else {
			var st = "";
			var sp = ",";
			for (var i = 0; i < str.length; i++) {
				if (sp.indexOf(str.substring(i, i + 1)) == -1) {
					st += str.substring(i, i + 1);
				}
			}
		return st;
		}
	}

function isZero(args){
	var iz = '';
	if (args=='')
	{
		iz = '0';
	}else{
		iz = args
	}
}






// -------------------------------------------------------------------- 
// ¼ýÀÚÇü µ¥ÀÌÅÍ¸¦ ¼Ò¼ýÁ¡ ÇüÅÂ·Î º¯È¯
//---------------------------------------------------------------------
function sosuJJum(num){
	num = (Math.round(num*100)) / 100;
	return num;
}

function onlyNumber(Ev){

 var evCode = ( window.netscape ) ? Ev.which : event.keyCode ; 
     /* FFÀÏ °æ¿ì Ev.which °ªÀ», 
        IEÀ» °æ¿ì event.keyCode °ªÀ» evCode¿¡ ´ëÀÔ */ 
  if ( ! ( evCode == 0 || evCode == 8 || ( evCode > 47 && evCode < 58 ) ) ) { 
    /* ´­·¯Áø Å° ÄÚµå°¡ ¼ýÀÚ°¡ ¾Æ´Ñ °æ¿ì 
        ( '0'Àº FF¿¡¼­ Tab Å°, 
          '8'Àº FF¿¡¼­ BackSpace°¡ ¸ÔÈ÷Áö ¾Ê¾Æ »ðÀÔ)    */ 
        if ( window.netscape ) {        // FFÀÏ °æ¿ì 
            Ev.preventDefault() ;        // ÀÌº¥Æ® ¹«È¿È­ 
        } else {                                // IEÀÏ °æ¿ì 
            event.returnValue=false;    // ÀÌº¥Æ® ¹«È¿È­ 
        } 
    } 
} 
