<!--


var testresults
function checkemail(str){
<!--
//	var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
//	if (filter.test(str))
		testresults=true;
//	else
//	{

//		testresults=false;
//	}
	
	return (testresults)
//-->
}

function CheckNumeric(checkStr){
	var checkOK = "0123456789";
	for (i = 0; i < checkStr.length; i++ ){
		ch = checkStr.charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j)){break;}
			
		if (j == checkOK.length){
			return (false);
			break;
		}
	}
	return true;
}

// ¼ýÀÚ¿Í -(À½¼ö°ª) ¸¸ ÀÔ·Â°¡´É
function CheckMinus(checkStr){
	var checkOK = "0123456789-";
	for (i = 0; i < checkStr.length; i++ ){
		ch = checkStr.charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j)){break;}
			
		if (j == checkOK.length){
			return (false);
			break;
		}
	}
	return true;
}
//-->

// ¼ýÀÚÀÎÁö ¾Æ´ÑÁö¸¦ Ã¼Å©ÇØ¼­alert Ã¢ ¶ç¿öÁÖ±â
function CheckNum(val)
{		
	var checkOK = "0123456789";
	for (i = 0; i < eval(val+".value.length"); i++ ){
		ch = eval(val+".value").charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j)){break;}
			
		if (j == checkOK.length){
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä.");
			eval(val+".focus();")
			eval(val+".value='';")
			return (false);
			break;
		}
	}
	return true;
}

// ¼ýÀÚ(FloatÇü)ÀÎÁö ¾Æ´ÑÁö¸¦ Ã¼Å©ÇØ¼­alert Ã¢ ¶ç¿öÁÖ±â
function CheckFloat(val)
{		
	var checkOK = "0123456789.";
	for (i = 0; i < eval(val+".value.length"); i++ ){
		ch = eval(val+".value").charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j)){break;}
			
		if (j == checkOK.length){
			alert("¼ýÀÚ(¼Ò¼ýÁ¡Æ÷ÇÔ)¸¸ ÀÔ·ÂÇÏ¼¼¿ä.");
			eval(val+".focus();")
			eval(val+".value='';")
			return (false);
			break;
		}
	}
	return true;
}

// ¹®ÀÚÀÇ ±æÀÌ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
// str1 ÀÌ str2 Å¬¶§¸¸ treu ¸¦ ¹ÝÈ¯ÇÑ´Ù.
function CheckLen(str1 , str2)
{
	if(eval(str1) > eval(str2))
	{
		return (true)
	}
	else
	{
		return (false)
	}
}

// cbox´Â Ã¼Å© ¹Ú½º!
// ÅØ½ºÆ®¸¦ Å¬¸¯ÇØµµ cbox°¡ checked µÇ°Ô ÇÑ´Ù.
function changeBox(cbox) 
{
	box = eval(cbox);
	box.checked = !box.checked;
}









// ÁÖ¼Ò Ã£±â.
function post(val)
{
	window.open('../Business/Post_Search.asp?FieldName='+val,'Customer','width=400,height=340,top=200')
}


function post2(val)
{
	window.open('./Membership/Post_Search.asp?Gubun='+val,'Customer','width=400,height=340,top=200')
}

function post3(val)
{
	window.open('../Membership/Post_Search.asp?Gubun='+val,'Customer','width=400,height=340,top=200')
}



// ÀÚµ¿À¸·Î Æ÷Ä¿½º ÀÌµ¿½ÃÅ°±â
// val0 => form ÀÌ¸§
// val1 => Ã¼Å© ´ë»ó name
// val2 => Ã¼Å©ÈÄ ÀÌµ¿ name
// len => ÀÌµ¿½ÃÅ³ ±ÛÀÚ¼ö
function AutoKeyUp(val0,val1,val2,len)
{
	if (eval("document."+val0+"."+val1+".value.length >= "+len+";"))
		eval("document."+val0+"."+val2+".focus();")
	else 
		return false

}






//³¯Â¥ Çü½ÄÀ» °Ë»çÇÑ´Ù.
// ³â,¿ù,ÀÏÀ» ¹Þ´Â´Ù.

<!--
function isdate(form,T_Year,T_Month,T_Day) 
{
    var t_year = eval("document."+form+"."+T_Year+".value");	// ³âµµ
	var t_month =  eval("document."+form+"."+T_Month+".value");	// ¿ù
	var t_day =  eval("document."+form+"."+T_Day+".value");		// ÀÏ

	

	var totalDay;

	if (t_month == 2 )
	{
	
		//ÇØ´ç³âµµ°¡ À±´ÞÀÎÁö¸¦ Ã¼Å©ÇÑ´Ù.
		if (((t_year % 4 == 0 ) && (t_year % 100 != 0)) || (t_year % 400 == 0))
		{
			totalDay = "29";
		}
		else
		{
			totalDay = "28";
		}
	}
	else if (t_month == 1 || t_month == 3 || t_month == 5 || t_month == 7 || t_month == 8 || t_month == 10 || t_month == 12)
	{
		totalDay = "31";
	}
	else
	{
		totalDay = "30";
	}
	
	
	//alert(totalDay);

	// À¯È¿¼ºÀ» Ã¼Å©ÇÏÀÚ.(±æÀÌ)
	if (t_year.length < "4" || t_year.length > "4")
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ³âµµÀÔ´Ï´Ù.\n\n³âµµ¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Year+".value = ''")
			eval("document."+form+"."+T_Year+".focus();")
			return false;
	}

	if (t_month.length > "3" || t_month.length < "1")
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ´ÞÀÔ´Ï´Ù.\n\n´ÞÀ» Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Month+".value = ''")
			eval("document."+form+"."+T_Month+".focus();")
			return false;
	}

	if (t_day.length > "3" || t_day.length == "0")
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ÀÏÂ¥ÀÔ´Ï´Ù.\n\nÀÏÂ¥¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Day+".value = ''")
			eval("document."+form+"."+T_Day+".focus();")
			return false;
	}
	


	// À¯È¿¼º Ã¼Å© ÀÔ·Â°ª Ã¼Å©..
	if (t_year < "1901" || t_year > "9999")
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ³âµµÀÔ´Ï´Ù.\n\n³âµµ¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Year+".value = ''")
			eval("document."+form+"."+T_Year+".focus();")
			return false;
	}

	if ( t_month == "0" || t_month == "00" || t_month > "12")
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ´ÞÀÔ´Ï´Ù.\n\n´ÞÀ» Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Month+".value = ''")
			eval("document."+form+"."+T_Month+".focus();")
			return false;
	}

	if (t_day == "0" || t_day == "00" || t_day > totalDay)
	{
			//alert("À¯È¿ÇÏÁö ¾Ê´Â ÀÏÂ¥ÀÔ´Ï´Ù.\n\nÀÏÂ¥¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä");
			eval("document."+form+"."+T_Day+".value = ''")
			eval("document."+form+"."+T_Day+".focus();")
			return false;
	}

	
}
//-->

// ¾÷¹«°ü¸® µî·Ï/¼öÁ¤ ÆäÀÌÁö¿¡¼­... ¸Þ¸ð¶õ ¿·¿¡ big Å¬¸¯½Ã Å«Ã¢À¸·Î º¸±â..±â´É.
function TextMemo(val1,val2)
{
	window.open('LeftMenu_Text.asp?FieldName='+val1+'&valuess='+val2,'Text','width=400,height=450,top=200');
}

// °ü¸®ÀÚ¸ðµå¿¡¼­ ÀÏ·Ã¹øÈ£ ¹öÆ° Å¬¸¯½Ã¿¡ ÀÏ·Ã¹øÈ£ ¼¼ÆÃ ÆäÀÌÁö ÆË¾÷...
function ManageAutoNo(val1,val2)
{	
	window.open('AutoNo_form.asp?num='+val1,'AutoNo','width=500,height=500,top=0');
}



// ¾÷¹« µî·Ï/¼öÁ¤½Ã ÀÏ·Ã¹øÈ£ ¿Ï¼º ½ÃÅ°¶ó´Â ¹öÆ° Å¬¸¯½Ã....
function AutoNo_input(val1,val2,val3,val4)
{
	// val1 => LeftMenuTableName
	// val2 => FieldCount
	// val3 => Form ¿¡¼­ name
	// val4 => form ÀÇ - ·Î ±¸ºÐµÇ´Â °¹¼ö

window.parent.parent.BottomFrame.location.href="LeftMenu_AutoNo_bottomWork.asp?LeftMenuTableName="+val1+"&FieldCount="+val2+"&FormName="+val3+"&FieldSplitCount="+val4;
//	window.open('LeftMenu_AutoNo_bottomWork.asp?LeftMenuTableName='+val1+'&FieldCount='+val2+'&FormName='+val3+'&FieldSplitCount='+val4,'','')
}

// Ã»±¸¹®¼­ÀÇ ¹®¼­¹øÈ£ ¿Ï¼º ½ÃÅ°¶ó´Â ¹öÆ° Å¬¸¯½Ã....
function PayAutoNo_input(val1,val2,val3,val4)
{

window.parent.parent.BottomFrame.location.href="pay_autono_input.asp?LeftMenuTableName="+val1+"&INandOUT="+val2+"&FormName="+val3+"&FieldSplitCount="+val4;
//	window.open('LeftMenu_AutoNo_bottomWork.asp?LeftMenuTableName='+val1+'&FieldCount='+val2+'&FormName='+val3+'&FieldSplitCount='+val4,'','')
}

function IsEmpty(val)
{
	if(val=="")
	{
		return false;
	}
}




function YearlySetup(LeftMenuTableName,No)
{
	window.open('LeftMenu_YearlyPay_Setting_Form.asp?LeftMenuTableName='+LeftMenuTableName+'&Num='+No,'YearlyPay','width=500,height=350');
}




// ÀÌº¥Æ® ¼³¸íÀ» ÆË¾÷À¸·Î º¸¿©ÁØ´Ù.
// »ç¿ëÆäÀÌÁö : ¾÷¹«°ü¸® µî·Ï/¼öÁ¤ ÆäÀÌÁö
// val1 °ª : ¾÷¹«°ü¸®ÀÇ LeftFieldInfor/SubMenuFieldInfor Å×ÀÌºíÀÇ num°ª
// val2 °ª : TableName °ª , ÇöÀç LeftMenuÀÎÁö, SubMenuÀÎÁö ±¸ºÐ.
// val3 °ª : LeftMenuTableName
// val4 °ª : SubMenuTableName
function Event_Explain(val1,val2,val3,val4)
{
	window.open('Event_Explain.asp?num='+val1+'&TableName='+val2+"&LeftMenuTableName="+val3+"&SubMenuTableName="+val4,'Event_Explain','width=500,height=400,scrollbars=yes,location=no,directories=no,resizable=no,status=no,toolbar=no,menubar=no');
}









// °ü¸®ÀÚ ¸ðµå¿¡¼­ ÇÊµå µî·Ï/¼öÁ¤½Ã »ç¿ëµÇ´Â ÇÔ¼ö

function Check_Type()
	{	

		theform = document.form2;
		var val2 = theform.FieldType.value;			

		// ¼ýÀÚÇü ÀÏ¶§´Â	( int , varchar , datetime , file , text )
			if(val2 == 'int')
			{	
				

				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =true;");
				eval("document.form2.FieldCustomer.disabled =true;");
				eval("document.form2.FieldSplit.disabled =true;");
				
				eval("document.form2.FieldSplit.disabled =true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled =true;");
				eval("document.form2.FieldDefault.disabled =false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");
				
				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}			
			
			if(val2 == 'varchar')
			{					
				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =false;");
				eval("document.form2.FieldCustomer.disabled =false;");		
				
				eval("document.form2.FieldSplit.disabled = false;");
				eval("document.form2.FieldSplitValue.style.background ='#ffffff';");
				eval("document.form2.FieldSplitValue.disabled = false;");
				eval("document.form2.FieldDefault.disabled = false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldCountry.disabled = false;");
//				eval("document.form2.FieldBrandKind.disabled = false;");
//				eval("document.form2.FieldDesignKind.disabled = true;");
				eval("document.form2.FieldMember.disabled = false;");
				eval("document.form2.FieldAttorney.disabled = false;");
				eval("document.form2.FieldBusu.disabled = false;");
				eval("document.form2.FileForm.disabled = false;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}

			if(val2 == "file")
			{	

				eval("document.form2.FieldSearch.disabled = true;");
				eval("document.form2.FieldStandInLine.disabled = true;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");
				
				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = true;");
				eval("document.form2.FieldLinkGubun.style.background ='#cccccc';");
				eval("document.form2.FieldLink.disabled = true;");
				eval("document.form2.FieldLink.style.background ='#cccccc';");
				
			}
			if(val2 == 'datetime')
			{	
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = false;");
				eval("document.form2.FieldDateAuto.disabled = false;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}
			if(val2 == 'text')
			{	
				eval("document.form2.FieldSearch.disabled =true;");
				eval("document.form2.FieldStandInLine.disabled = true;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = true;");
				eval("document.form2.FieldLinkGubun.style.background ='#cccccc';");
				eval("document.form2.FieldLink.disabled = true;");
				eval("document.form2.FieldLink.style.background ='#cccccc';");
				
			}

			if(val2 == 'scrollbar')
			{	
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");

				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}

			if(val2 == 'checkbox')
			{	
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");		
				
				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}

			if(val2 == 'radio')
			{	
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");	
				
				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}

			if(val2 == 'price')
			{	
				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =true;");
				eval("document.form2.FieldCustomer.disabled =true;");
				eval("document.form2.FieldSplit.disabled =true;");
				
				eval("document.form2.FieldSplit.disabled =true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled =true;");
				eval("document.form2.FieldDefault.disabled =false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");	
				
				eval("document.form2.FieldCountry.disabled = true;");
//				eval("document.form2.FieldBrandKind.disabled = true;");
//				eval("document.form2.FieldDesignKind.disabled = true;");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}
	}







// Å¸ÀÔ ¼±Á¤½Ã¿¡ ÇÊ¿äÇÑ °Í¸¸ Ã¼Å©µÇ°Ô ÇÏ±â...
		function FieldTypeChange(val1,val2,val3)
		{

			// ¼ýÀÚÇü ÀÏ¶§´Â	( int , varchar , datetime , file , text )
			if(val2 == 'int')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled =true;");
				eval("document.form2.FieldNotNull.disabled =false;");
				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =true;");
				eval("document.form2.FieldCustomer.disabled =true;");
				eval("document.form2.FieldSplit.disabled =true;");
				
				eval("document.form2.FieldSplit.disabled =true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled =true;");
				eval("document.form2.FieldDefault.disabled =false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}			
			
			if(val2 == 'varchar')
			{					
				eval("document.form2.FieldSize.style.background ='white';");
				eval("document.form2.FieldSize.disabled =false;");
				eval("document.form2.FieldNotNull.disabled=false;");
				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =false;");
				eval("document.form2.FieldCustomer.disabled =false;");		
				
				eval("document.form2.FieldSplit.disabled = false;");
				eval("document.form2.FieldSplitValue.style.background ='#ffffff';");
				eval("document.form2.FieldSplitValue.disabled = false;");
				eval("document.form2.FieldDefault.disabled = false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");

				eval("document.form2.FieldMember.disabled = false;");
				eval("document.form2.FieldAttorney.disabled = false;");
				eval("document.form2.FieldBusu.disabled = false;");
				eval("document.form2.FileForm.disabled = false;");
			}

			if(val2 == "file")
			{	

				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = true;");
				eval("document.form2.FieldStandInLine.disabled = true;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");
				
				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = true;");
				eval("document.form2.FieldLinkGubun.style.background ='#cccccc';");
				eval("document.form2.FieldLink.disabled = true;");
				eval("document.form2.FieldLink.style.background ='#cccccc';");
				
			}
			if(val2 == "multifile")
			{	

				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = true;");
				eval("document.form2.FieldStandInLine.disabled = true;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");
				
				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = true;");
				eval("document.form2.FieldLinkGubun.style.background ='#cccccc';");
				eval("document.form2.FieldLink.disabled = true;");
				eval("document.form2.FieldLink.style.background ='#cccccc';");
				
			}
			if(val2 == 'datetime')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");		
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = false;");
				eval("document.form2.FieldDateAuto.disabled = false;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}
			if(val2 == 'text')
			{	
				eval("document.form2.FieldSize.style.background ='white';");
				eval("document.form2.FieldSize.disabled = false;");		
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled =true;");
				eval("document.form2.FieldStandInLine.disabled = true;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");

				eval("document.form2.FieldLinkGubun.disabled = true;");
				eval("document.form2.FieldLinkGubun.style.background ='#cccccc';");
				eval("document.form2.FieldLink.disabled = true;");
				eval("document.form2.FieldLink.style.background ='#cccccc';");
				
			}

			if(val2 == 'scrollbar')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");		
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
				
			}

			if(val2 == 'checkbox')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");		
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");				

				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}

			if(val2 == 'radio')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled = true;");		
				eval("document.form2.FieldNotNull.disabled = false;");
				eval("document.form2.FieldSearch.disabled = false;");
				eval("document.form2.FieldStandInLine.disabled = false;");
				eval("document.form2.FieldDateSplit.disabled = true;");
				eval("document.form2.FieldDateAuto.disabled = true;");
				eval("document.form2.FieldPost.disabled = true;");
				eval("document.form2.FieldCustomer.disabled = true;");

				eval("document.form2.FieldSplit.disabled = true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled = true;");
				eval("document.form2.FieldDefault.disabled = true;");
				eval("document.form2.FieldDefaultValue.style.background ='#cccccc';");
				eval("document.form2.FieldDefaultValue.disabled = true;");

				eval("document.form2.FieldValues.disabled = false;");
				eval("document.form2.FieldValues.style.background ='#ffffff';");
				eval("document.form2.ValueInsertButton.disabled = false;");
				eval("document.form2.ValueDelButton.disabled = false;");
				eval("document.form2.FieldValuse2.disabled = false;");
				eval("document.form2.FieldValuse2.style.background ='#ffffff';");		
				
				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}

			if(val2 == 'price')
			{	
				eval("document.form2.FieldSize.style.background ='#cccccc';");
				eval("document.form2.FieldSize.disabled =true;");
				eval("document.form2.FieldNotNull.disabled =false;");
				eval("document.form2.FieldSearch.disabled =false;");
				eval("document.form2.FieldStandInLine.disabled =false;");
				eval("document.form2.FieldDateSplit.disabled =true;");
				eval("document.form2.FieldDateAuto.disabled =true;");
				eval("document.form2.FieldPost.disabled =true;");
				eval("document.form2.FieldCustomer.disabled =true;");
				eval("document.form2.FieldSplit.disabled =true;");
				
				eval("document.form2.FieldSplit.disabled =true;");
				eval("document.form2.FieldSplitValue.style.background ='#cccccc';");
				eval("document.form2.FieldSplitValue.disabled =true;");
				eval("document.form2.FieldDefault.disabled =false;");
				eval("document.form2.FieldDefaultValue.style.background ='#ffffff';");
				eval("document.form2.FieldDefaultValue.disabled =false;");

				eval("document.form2.FieldValues.disabled = true;");
				eval("document.form2.FieldValues.style.background ='#cccccc';");
				eval("document.form2.ValueInsertButton.disabled = true;");
				eval("document.form2.ValueDelButton.disabled = true;");
				eval("document.form2.FieldValuse2.disabled = true;");
				eval("document.form2.FieldValuse2.style.background ='#cccccc';");
				
				eval("document.form2.FieldLinkGubun.disabled = false;");
				eval("document.form2.FieldLinkGubun.style.background ='#ffffff';");
				eval("document.form2.FieldLink.disabled = false;");
				eval("document.form2.FieldLink.style.background ='#ffffff';");
			}
		}






function Open_BusinessMainSetup()
{
	window.open('../Setup/Business_MainSetupList.asp','','width=600,height=400,top=1,left=1,scrollbars=yes')
	//alert("Hi");
}


function Open_BusinessMonthSetup()
{
	window.open('../Setup/Business_MonthSetup.asp','','width=800,height=500,top=1,left=1,scrollbars=yes')
	//alert("Hi");
}








function Send_paper(val)
{
	window.open('../diary/day_Paper_Popwrite.asp?ID='+val,'paper','width=700,height=300,top=1');
	return false;
}


function Send_sms(val)
{
	window.open('../SMS_ID.asp?ID='+val,'smsform','width=166,height=400');
	return false;
}

//ÆÄÀÏ ¾÷·Îµå ÁøÇà¹Ù È£Ãâ
function Upload_Progress(returnval){
	strAppVersion = navigator.appVersion;
		if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
			winstyle = "dialogWidth=385px; dialogHeight:215px; center:yes";
			window.showModelessDialog("../include/Progress/show_progress.asp?nav=ie", null, winstyle);
		}
		else {
			winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-180)/2);
			winstyle="width=380,height=180,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
			window.open("../include/Progress/show_progress.asp?nav=ns",null,winstyle);
		}
	if (returnval != '1')
	{
		return true;
	}	
}



function loadPage() {
if (document.getElementById) {  
document.getElementById('hidepage').style.visibility = 'hidden';
}
else {
if (document.layers) {  
document.hidepage.visibility = 'hidden';
}
else {  
document.all.hidepage.style.visibility = 'hidden';
      }
   }
}







function isdate2(objName) 
	{
		var ThisYear , ThisMonth ,ThisDay
		DateArray = objName.split("-");

		ThisYear = DateArray[0];	// ³âµµ 
		ThisMonth = DateArray[1];	// ¿ù
		ThisDay = DateArray[2];	// ÀÏ
/*		
		if(isNaN(ThisYear))
		{
			alert("³âµµ°¡ ¼ýÀÚ°¡ ¾Æ´Õ´Ï´Ù.")
			return false;
		}
		if(isNaN(ThisMonth))
		{
			alert("¿ùÀÌ ¼ýÀÚ°¡ ¾Æ´Õ´Ï´Ù.")
			return false;
		}
		if(isNaN(ThisDay))
		{
			alert("³¯Â¥°¡ ¼ýÀÚ°¡ ¾Æ´Õ´Ï´Ù.")
			return false;
		}
*/
		if(ThisYear < 1990 || ThisYear > 2020)
		{
			alert("³âµµ´Â 1990³â ~ 2020³â »çÀÌ·Î ¼³Á¤°¡´ÉÇÕ´Ï´Ù.");
			return false;
		}
		if(ThisMonth < 1 || ThisMonth > 12)
		{
			return false;
		}

				// ¼±ÅÃµÈ ¿ùÀÇ ÃÑÀÏÀ» ±¸ÇÑ´Ù.
				var totalday;
				if(ThisMonth==4 || ThisMonth==6 || ThisMonth==9 || ThisMonth==11)
				{
					totalday = 30;
				}
				else if(ThisMonth==2)
				{
					if(ThisYear % 4 ==0 && ThisYear % 100 != 0 || ThisYear % 400 == 0)
					{
						totalday = 29;
					}
					else
					{
						totalday = 28;
					}
				}
				else
				{
					totalday = 31;
				}
				
			
		// ±¸ÇÑ ÃÑÀÏ·Î ºñ±³ÇÑ´Ù.
		if(ThisDay <1 || ThisDay > totalday)
		{
			return false;
		}

	}











////////////////////////////////////////////////////////////////////////////////////////////////////////////
///  ¿À¸¥ÂÊ ¿ÞÂÊ ¿Ô´Ù °¬´Ù ÇÏ±â SELECT ¹Ù 
function GoLeft()
	{
		var ThisValue;
		var ThisText;

		// ¿À¸¥ÂÊ select ¿¡ ¼±ÅÃµÈ °ÍÀÌ ÀÖ´ÂÁö¸¦ Ã¼Å©ÇÑ´Ù.
		if (IsRightSelectedCheck()==false)
		{
			return false;
		}

		// ¿À¸¥ÂÊ¿¡¼­ ¼±ÅÃµÈ °ªÀÉ INDEX °ªÀ» ¾Ë¾Æ³½´Ù... 'RightSelectedIndex' ¿©±â¿¡ °ªÀ» ´ã¾Æ¼­ ¸®ÅÏ½ÃÄÑÁØ´Ù.
		IsRightSelectIndex()		
		
		ThisValue = RightSelect.options[RightSelectedIndex].value;
		ThisText = RightSelect.options[RightSelectedIndex].text ;

			// RightSelectedIndex °ªÀ» °¡Áø ¿À¸¥ÂÊ ¸Þ´º¸¦ »«´Ù.
			RightSelect.options[RightSelectedIndex].value = '';
			RightSelect.options[RightSelectedIndex].text = '';

			// ¿À¸¥ÂÊ ¸Þ´º¿¡ ÀÌ»¡ºüÁø ºÎºÐÀÌ »ý±æ°Í ¶§¹®¿¡ Á¦Á¤·ÄÇÑ´Ù.
			RightReflush()
		
		// ¿ÞÂÊÀÇ ÇöÀç SELECTED Á¤º¸¸¦ ¾Ë¾Æ³½´Ù. 'LeftSelectedIndex'
		IsLeftSelectIndex()


		// ¼±ÅÃµÈ ³»¿ëÀÌÇÏºÎºÐÀº ÇÑÄ­¾¿ ¹Ð¾îÁØ´Ù.
		LeftOneStepDown(LeftSelectedIndex)

		
		LeftSelect.options[LeftSelectedIndex].value = ThisValue;
		LeftSelect.options[LeftSelectedIndex].text = ThisText;
		
	}



	function GoRight()
	{
		var ThisValue;
		var ThisText;

		// ¿ÞÂÊ select ¿¡ ¼±ÅÃµÈ °ÍÀÌ ÀÖ´ÂÁö¸¦ Ã¼Å©ÇÑ´Ù.
		if (IsLeftSelectedCheck()==false)
		{
			return false;
		}
		

		// ¿ÞÂÊ¿¡¼­ ¼±ÅÃµÈ °ªÀÇ INDEX °ªÀ» ¾Ë¾Æ³½´Ù... 'LeftSelectedIndex' ¿©±â¿¡ °ªÀ» ´ã¾Æ¼­ ¸®ÅÏ½ÃÄÑÁØ´Ù.
		IsLeftSelectIndex()		
		
		ThisValue = LeftSelect.options[LeftSelectedIndex].value;
		ThisText = LeftSelect.options[LeftSelectedIndex].text ;
			
			// LeftSelectedIndex °ªÀ» °¡Áø ¿ÞÂÊ ¸Þ´º¸¦ »«´Ù.
			LeftSelect.options[LeftSelectedIndex].value = '';
			LeftSelect.options[LeftSelectedIndex].text = '';

			// ¿ÞÂÊ ¸Þ´º¿¡ ÀÌ»¡ºüÁø ºÎºÐÀÌ »ý±æ°Í ¶§¹®¿¡ Á¦Á¤·ÄÇÑ´Ù.
			LeftReflush()

		// ¿ÞÂÊÀÇ ÇöÀç SELECTED Á¤º¸¸¦ ¾Ë¾Æ³½´Ù. 'LeftSelectedIndex'
		IsRightSelectIndex()


		// ¼±ÅÃµÈ ³»¿ëÀÌÇÏºÎºÐÀº ÇÑÄ­¾¿ ¹Ð¾îÁØ´Ù.
		RightOneStepDown(RightSelectedIndex)

		
		RightSelect.options[RightSelectedIndex].value = ThisValue;
		RightSelect.options[RightSelectedIndex].text = ThisText;

	}




	// ÀüºÎ ¿ÞÂÊÀ¸·Î °¡¶ó.
	function All_Left()
	{
		//¿ÞÂÊ¿¡ ÀÖ´Â  °¹¼ö¸¦ ¾Ë¾Æ³½´Ù..
		IsLeftCount()		


		// ¿À¸¥ÂÊ ¸Þ´º¸¦ ÇÏ³ª¾¿ µ¹·Á¼­,,, ¼ø¼­µ¥·Î ¿ÞÂÊ ¸Þ´º·Î ³Ö¾îÁØ´Ù.
		for (var i=0;i<(RightSelect.length);i++) 
		{			
			
			if(RightSelect.options[i].value != '' && RightSelect.options[i].text != '')
			{		

				LeftSelect.options[LeftCount].value = RightSelect.options[i].value;				
				LeftSelect.options[LeftCount].text = RightSelect.options[i].text;

				RightSelect.options[i].value = '';				
				RightSelect.options[i].text = '';

				LeftCount++;
			}
		}

	}




	// ÀüºÎ ¿À¸¥ÂÊÀ¸·Î °¡¶ó.
	function All_Right()
	{
		//¿À¸¥ÂÊ¿¡ ÀÖ´Â  °¹¼ö¸¦ ¾Ë¾Æ³½´Ù..
		IsRightCount()
		
	
		// ¿ÞÂÊ ¸Þ´º¸¦ ÇÏ³ª¾¿ µ¹·Á¼­,,, ¼ø¼­µ¥·Î ¿ÞÂÊ ¸Þ´º·Î ³Ö¾îÁØ´Ù.
		for (var i=0;i<(LeftSelect.length);i++) 
		{			
			
			if(LeftSelect.options[i].value != '' && LeftSelect.options[i].text != '')
			{		

				RightSelect.options[RightCount].value = LeftSelect.options[i].value;				
				RightSelect.options[RightCount].text = LeftSelect.options[i].text;

				LeftSelect.options[i].value = '';				
				LeftSelect.options[i].text = '';

				RightCount++;
			}
		}

	}












			////////////////////////////////  ¼±ÅÃµÈ °ªÀÌ ÀÖ´ÂÁö ¾ø´ÂÁö ¾Ë¾Æ³»±â ////////////////////
			// ¿ÞÂÊ¿¡ ¼±ÅÃµÈ ³»¿ëÀÌ ÀÖ¾î¾ß ÇÑ´Ù.
			function IsLeftSelectedCheck()
			{
				if(LeftSelect.value=='')
				{
					alert("¿ÞÂÊ ÀÓ½Ã¸®½ºÆ®¿¡¼­ ÇÏ³ª¸¦ ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À.");
					return false;
				}
			}
			// ¿À¸¥ÂÊ¿¡ ¼±ÅÃµÈ ³»¿ëÀÌ ÀÖ¾î¾ß ÇÑ´Ù.
			function IsRightSelectedCheck()
			{
				if(RightSelect.value=='')
				{
					alert("¿À¸¥ÂÊ ¸®½ºÆ®¿¡¼­ ÇÏ³ª¸¦ ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À.");
					return false;
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////



			////////////////////////////////////   ¼±ÅÃµÈ ³»¿ëÀ» ¾Ë¾Æ³»±â  ////////////////////////////////
			// ¿À¸¥ÂÊ¿¡¼­ ¼±ÅÃµÈ °ÍÀÇ Index °ªÀ» ¾Ë¾Æ³½´Ù.
			function IsRightSelectIndex()
			{		
				for (var i=0;i<(RightSelect.length);i++) 
				{				
					if(RightSelect.value == RightSelect.options[i].value)
					{					
						RightSelectedIndex = i;
						break;
					}
				}
			}
			// ¿ÞÂÊ¿¡¼­ ¼±ÅÃµÈ °ÍÀÇ Index °ªÀ» ¾Ë¾Æ³½´Ù.
			function IsLeftSelectIndex()
			{	
				for (var i=0;i<(LeftSelect.length);i++) 
				{				
					if(LeftSelect.value == LeftSelect.options[i].value)
					{					
						LeftSelectedIndex = i;						
						break;
					}
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////


			
			////////////////////////////////////   value ³»¿ëÀÇ °¹¼ö¸¦ ¾Ë¾Æ³»±â  ////////////////////////////////
			// ¿À¸¥ÂÊ¿¡ ÀÖ´Â °ªÀÇ ÃÑ °¹¼ö
			function IsRightCount()
			{		
				for (var i=0;i<(RightSelect.length);i++) 
				{				
					if(RightSelect.options[i].value=='' && RightSelect.options[i].text=='')
					{					
						RightCount = i;
						break;
					}
				}
			}
			// ¿ÞÂÊ¿¡ ÀÖ´Â °ªÀÇ ÃÑ °¹¼ö
			function IsLeftCount()
			{	
				for (var i=0;i<(LeftSelect.length);i++) 
				{				
					if(LeftSelect.options[i].value=='' && LeftSelect.options[i].text=='')
					{					
						LeftCount = i;						
						break;
					}
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////



			////////////////////////////////////   SELECT ÀçÁ¤·Ä ½ÃÅ°±â  ////////////////////////////////
			// ¿À¸¥ÂÊ¿¡¼­ reflush
			function RightReflush()
			{
				
				for (var i=0;i<(RightSelect.length);i++) 
				{				
					if(RightSelect.options[i].value == '' || RightSelect.options[i].text == '')
					{		
						if( i+1 != RightSelect.length )
						{	
							RightSelect.options[i].value = RightSelect.options[i+1].value;
							RightSelect.options[i].text = RightSelect.options[i+1].text;

																
							RightSelect.options[i+1].value = '';
							RightSelect.options[i+1].text = '';
						}
					}
				}
			}

			function LeftReflush()
			{
				for (var i=0;i<(LeftSelect.length);i++) 
				{				
					if(LeftSelect.options[i].value == '' || LeftSelect.options[i].text == '')
					{		
						if( i+1 != LeftSelect.length )
						{	
							LeftSelect.options[i].value = LeftSelect.options[i+1].value;
							LeftSelect.options[i].text = LeftSelect.options[i+1].text;

																
							LeftSelect.options[i+1].value = '';
							LeftSelect.options[i+1].text = '';
						}
					}
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////




			////////////////////////// Á¦ÀÏ ¾Æ·¡¿¡ ³Ö±â À§ÇØ¼­ ¸¶Áö¸·¿¡ °ªÀÌ ÀÖ´Â°ÍÀ» ¾Ë¾Æ³½´Ù.///////////////////////
			function ISRightLastSelectIndex()
			{
				for (var i=0;i<(RightSelect.length);i++) 
				{				
					if(RightSelect.options[i].value=='' && RightSelect.options[i].text=='')
					{					
						ISRightLastIndex = i;						
						break;
					}
				}
			}

			function ISLeftLastSelectIndex()
			{
				for (var i=0;i<(LeftSelect.length);i++) 
				{				
					if(LeftSelect.options[i].value=='' && LeftSelect.options[i].text=='')
					{					
						ISLeftLastIndex = i;						
						break;
					}
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////



			////////////////////////// ÇÑÄ­¾¿ ³»·Á°¡¼­ µé¾î°¥ °ø°£ ¸¸µé¾îµÎ±â..///////////////////////
			function LeftOneStepDown(index)
			{
				
				for (var i=LeftSelect.length-1;i>=index;i--) 
				{		
					
					// Ã·¿¡ ³»¿ëÀÌ ÀÖ´Ù¸é...
					if(LeftSelect.options[i].value !="" && LeftSelect.options[i].text !="")
					{										
						LeftSelect.options[i+1].value = LeftSelect.options[i].value;
						LeftSelect.options[i+1].text = LeftSelect.options[i].text;
						LeftSelect.options[i].value = '';
						LeftSelect.options[i].text = '';
					}
				}
			}

			function RightOneStepDown(index)
			{
				
				for (var i=RightSelect.length-1;i>=index;i--) 
				{		
					
					// Ã·¿¡ ³»¿ëÀÌ ÀÖ´Ù¸é...
					if(RightSelect.options[i].value !="" && RightSelect.options[i].text !="")
					{										
						RightSelect.options[i+1].value = RightSelect.options[i].value;
						RightSelect.options[i+1].text = RightSelect.options[i].text;
						RightSelect.options[i].value = '';
						RightSelect.options[i].text = '';
					}
				}
			}
			///////////////////////////////////////////////////////////////////////////////////////



function ChulWonCode(val)
{
	window.open('../Customer/WindowOpen_CodeSearch.asp?FieldValue='+val,'','toolbars=no,scrollbars=yes,width=950,top=1,left=1');
	return false;
}


//µµ¿ò¸»(ÆÁ) »õÃ¢À¸·Î ¶ç¿ò
function HelperTip(returnval){
	strAppVersion = navigator.appVersion;
		if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4) {
			winstyle = "dialogWidth=247px; dialogHeight:300px; center:yes; help:no; status:no; scroll:no; resizable:no'";
			window.showModelessDialog("../help/helpertip.asp?nav=ie&Msg=" + returnval, null, winstyle);
		}
		else {
			winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-180)/2);
			winstyle="width=247,height=247,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
			window.open("../help/helpertip.asp?nav=ns&Msg=" + returnval,null,winstyle);
		}

}


function MemberSearch(val1,val2,val3,val4)
{

//	document.form5.Field5_ManIcon.Src = ''
	window.open('../MemberShip/Member_incentive.asp?val1='+val1+'&val2='+val2+'&val3='+val3+'&val4='+val4,'','width=500,height=500,scrollbars=yes');

}








function kipo(val1,val2,val3,val4,val5,val6,val7)
{
//	alert(val1);
//	alert(val2);
//	alert(val3);
//	alert(val4);
//	alert(val5);
	window.open('../document/kipo_check.asp?val1='+val1+'&val2='+val2+'&val3='+val3+'&val4='+val4+'&val5='+val5+'&val6='+val6+'&val7='+val7,'Æ¯ÇãÃ»¼­·ù','width=700,height=550,scrollbars=yes');
}



function kipoView(val1,val2,val3,val4,val5)
{
	window.open('../document/kipo_view.asp?val1='+val1+'&val2='+val2+'&val3='+val3+'&val4='+val4+'&val5='+val5,'Æ¯ÇãÃ»¼­·ù³»¿ë','width=700,height=550,scrollbars=yes');
}



function setup_kipo(val1,val2,val3,val4)
{

	window.open('../document/kipo_setup.asp?val1='+val1+'&val2='+val2+'&val3='+val3+'&val4='+val4,'Æ¯ÇãÃ»¼­·ù¼¼ÆÃ','width=700,height=550,scrollbars=yes')
}



function Personnel_TC_Setup()
{
	window.open('../business/Personnel_TC_Setup.asp','TCSETUP','width=300,height=450')
}