///////////////////////////////////////////////////////////////////////////////////
// °¡¿îµ¥ ¶ß´Â ÆË¾÷Ã¢

	function npopup(url,wx,hy,winname,scroll,resize) {

		var openWin;

		if(!winname){winname = "winname";}
		if(wx==""){wx = 600;}
		if(hy==""){hy = 500;}
		if(scroll==""){scroll = "yes";}
		if(resize==""){resize = "yes";}

		var maxw = screen.width;
		var maxh = screen.height;
		var sx = (maxw - wx) / 2;
		var sy = (maxh - hy) / 2;

		openWin = window.open('',winname,'scrollbars='+scroll+',resizable='+resize+', width='+wx+', height='+hy);
		openWin.focus();

		if(document.all)
			openWin.moveTo(sx,sy); 

		openWin.location = url;

	}

///////////////////////////////////////////////////////////////////////////////////
// ±âº» ÆË¾÷Ã¢

	function popup(url,wx,hy,winname,scroll,resize) {

		if(!winname){winname = "winname";}
		if(wx==""){wx = 600;}
		if(hy==""){hy = 500;}
		if(scroll==""){scroll = "no";}
		if(resize==""){resize = "yes";}

		openWin = window.open('',winname,'scrollbars='+scroll+',resizable='+resize+', width='+wx+', height='+hy);
		openWin.focus();

		if(document.all){ 
			openWin.moveTo(0,0); 
		}

		openWin.location = url;

	}

////////////////////////////////////////////////////////////////////////////////
//¼ýÀÚ¸¸À» ±âÀÔ¹Þ°Ô ÇÏ´Â ¹æ¹ý

	function only_num(){
	
   		if((event.keyCode>=48)&&(event.keyCode<=57)){
      		event.returnValue = true;
		}

		else{
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä!");
			event.returnValue = false;	
		}

	}

////////////////////////////////////////////////////////////////////////////////
// ¹®ÀÚ¿­ ±æÀÌ Ã¼Å©

	function ValidLength(item, len) { 
			return(item.length >= len);
	}

////////////////////////////////////////////////////////////////////////////////
// ¸¶¿ì½º¿À¹ö »ö»óÁöÁ¤

	function overbgcolor(curTR) {
		curTR.style.backgroundColor = "#F8F8F8";
	}

////////////////////////////////////////////////////////////////////////////////
// ¸¶¿ì½º¾Æ¿ô »ö»óÁöÁ¤

	function outbgcolor(curTR) {
		curTR.style.backgroundColor = "";
	}

////////////////////////////////////////////////////////////////////////////////
// °Ë»ö input clear

	function clear_search() {
		document.frm_search.searchstring.value = "";
	}

////////////////////////////////////////////////////////////////////////////////
// select¹Ú½º option Ãß°¡ 

	function add_option(target,i,val,sel_val){
		
			var target = eval(target);
			target.options[i] = new Option(val,val); 
			target.options.selectedIndex = sel_val;
		
	}

////////////////////////////////////////////////////////////////////////////////
// ÇÑ±Û¸¸ ÀÔ·Â¹ÞÀ½ 

function hangul() {

	if((event.keyCode < 12592) || (event.keyCode > 12687))
		event.returnValue = false;

}

////////////////////////////////////////////////////////////////////////////////
