<!--
	function openSimpleWindow(url, name, width, height) {
	    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height);
	}
	
	function openSimpleScrolledWindow(url, name, width, height) {
	    window.open(url, name, 'scrollbars=yes, statusbar=no, status=no, width='+width+', height='+height);		
	}
	
	function openWindow(url, name, width, height, top, left) {
	    window.open(url, name, 'scrollbars=no, statusbar=no, status=no, width='+width+', height='+height+', top='+top+', left='+left);
	}
	
	function openScrolledWindow(url, name, width, height, top, left) {
	    window.open(url, name, 'scrollbars=yes, statusbar=yes, status=yes, width='+width+', height='+height+', top='+top+', left='+left);
	}
	
	// search a target in selectBox and make it selected.
	function findAndSelect(sel, value) {
		var opt = sel.options;
		var size = opt.length;
		
		for (var fi=0; fi<size; fi++) {
			if (opt[fi].value == value) {
				opt.selectedIndex = fi;
				break;
			}
		}
	}
	
	// check whether check/radio box is selected.
	function isBoxSelected(sel) {
		// if it's not array
		if (!sel.length) {
			if (sel.checked) return true;
			else return false;
		} else {
			var cnt = 0;
			for (i=0; i<sel.length; i++)
				if (sel[i].checked) cnt++;
			if (cnt > 0) return true;
			else return false;
		}
	}
	
	// check whether all check/radio box is selected.
	function isBoxAllSelected(sel) {
		// if it's not array
		if (!sel.length) {
			if (sel.checked) return true;
			else return false;
		} else {
			var cnt = 0;
			for (i=0; i<sel.length; i++)
				if (sel[i].checked) cnt++;
			if (cnt == sel.length) return true;
			else return false;
		}
	}
	
//¼ýÀÚ°¡ ¾Æ´Ñ °æ¿ì Alert¸¦ ¶ç¿ì°í ÇØ´ç °ªÀ» ÃÊ±âÈ­ÇÏ´Â ÇÔ¼ö 
function NumberCheck(obj){
	if(!IsNumber(obj.value) && obj.value!=""){
		alert('¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù');
		obj.value="";
		obj.focus();
	}
}	

function ChangeParameter(obj){
	var addstr;
	var RealURL	= location.href; 
	var strURL	= RealURL.toLowerCase();
	var s;
	var e;
	var column = obj.name;
	var value	 = obj.value;

	//ÆÄ¶ó¸ÞÅ¸°¡ ¾øÀ¸¸é
	if(strURL.indexOf(column.toLowerCase()+"=")==-1){
		RealURL = AddParameter(RealURL,column+"="+value);
	}else{
		s = strURL.indexOf(column.toLowerCase()+"=");
		e = strURL.indexOf("&",s)==-1?strURL.length:strURL.indexOf("&",s);
		RealURL = RealURL.replace(RealURL.substring(s,e),column+"="+value);
	}

	//gotopage ÆÄ¶ó¸ÞÅ¸¸¦ »èÁ¦ÇÑ´Ù
	if(strURL.indexOf("gotopage=")!=-1){
		s = strURL.indexOf("gotopage=");
		e = strURL.indexOf("&",s)==-1?strURL.length:strURL.indexOf("&",s)+1;
		RealURL = RealURL.replace(RealURL.substring(s,e),"");
	}

	location.href=RealURL;
}

function AddParameter(str,p){
	if(str.indexOf("?")==-1){
		str += "?"+p;
	}else{
		str += "&"+p;
	}
	return str;
}

/** 2000-1-1Çü½ÄÀÇ ¹®ÀÚ¿­À» ¹Þ¾Æ date¿ÀºêÁ§Æ®·Î Çü¼º **/
function converToDate(strDate)
{
	var arr = strDate.split("-");	
	return new Date(arr[0],(arr[1]-1),arr[2],"0","0","0","0");
}

function isNullStr ( strVal )
{
	if ( ( strVal == "" )
		|| ( strVal == "undefined" )
		|| ( strVal == "null" )
		 )
	{
		return true;
	}
	
	return false;
}

/** ·¡µð¿À¹öÆ° ¼±ÅÃµÈ°ª ±¸ÇÏ±â */
function getRadioValueById(componentId)
{
	return getRadioValueByObj(document.all(componentId));
}
function getRadioValueByObj(componentObj)
{
	var fieldVal = "";
	if ( componentObj != null )
	{
			var fieldLen = componentObj.length;
			
			if (  fieldLen != null  )
			{
				for ( var i=0; i< fieldLen ; i++ )
				{
					if ( componentObj[i].checked )
					{
						fieldVal = componentObj[i].value;
					}		
				}		
			}
			else
			{
				fieldVal = componentObj.value;
			}
			
	}	
	return fieldVal;	
}

/**
 * °°Àº ÀÌ¸§À¸·Î Á¤ÀÇµÈ Ã¼Å©¹Ú½ºÁß Ã¼Å©µÈ °ÍµéÀÇ value¸¦ °¡Á®¿Í delimieter·Î ±¸ºÐµÈ ½ºÆ®¸µ ¸¸µé¾î ¸®ÅÏÇÏ±â
 */
function getCheckedList( chkNm, delimieter)
{		

	var chkObj = document.all(chkNm);
	var fieldLen = chkObj.length; 
	var listStr = "";
		
	if ( fieldLen != null )
	{
		for ( i=0; i< fieldLen ; i++)
		{
			if ( chkObj[i].checked == true )
			{
				listStr += chkObj[i].value + delimieter;
			}
		}			
	}
	else //Ã¼Å©¹Ú½º°¡ ÇÏ³ªÀÏ °æ¿ì
	{
		listStr += chkObj.value + ",";
	}	
	//alert(listStr);
	return listStr;
}

function getCheckedNameList( chkNm, delimieter)
{		

	var chkObj = document.all(chkNm);
	var fieldLen = chkObj.length; 
	var listStr = "";
		
	if ( fieldLen != null )
	{
		for ( i=0; i< fieldLen ; i++)
		{
			if ( chkObj[i].checked == true )
			{
				listStr += chkObj[i].user_name + delimieter;
			}
		}			
	}
	else //Ã¼Å©¹Ú½º°¡ ÇÏ³ªÀÏ °æ¿ì
	{
		listStr += chkObj.value + ",";
	}	
	//alert(listStr);
	return listStr;
}

/**
* Ã¼Å©¹Ú½º ÁöÁ¤µÈ °ªÀ¸·Î ÃÊ±âÈ­..
*/
function initCheckBoxComponentById( componentId, value, disabled )
{
	initCheckBoxComponentByObj( document.all(componentId), value, disabled );
}
function initCheckBoxComponentByObj( componentObj, value, disabled )
{
		if ( componentObj != null )
		{
			var fieldLen = componentObj.length;
			
			if (  fieldLen != null  )
			{
				for ( var i=0; i< fieldLen ; i++ )
				{
					if ( componentObj[i].value == value)
					{				
						componentObj[i].checked = true;	
					}	
					
					componentObj[i].disabled = 	disabled;		
				}		
			}
			else
			{
				if ( componentObj.value == value)
				{
					componentObj.checked = true;	
				}	
				
				componentObj.disabled = disabled;			
			}
		}
}

//-->