	//document.location.href='http://www.uplay.co.kr/work.html';


	//=================================================================================
	//	¸¸µç ³¯Â¥: 2005³â 3¿ù 12ÀÏ Åä¿äÀÏ ¿ÀÀü 10:07:41
	//	¸¸µçÀÌ : ÇÑÁ¤»ó(JungSang Han)  
	//	ÇÁ·Î±×·¥ ¼³¸í: À¥»çÀÌÆ®¿¡ ÇÊ¿äÇÑ javascript ¶óÀÌºê·¯¸® ÇÔ¼ö
	//=================================================================================
    //=============================================================================
	//ÀÚµ¿ Tab ÀÌµ¿
	var isNN = (navigator.appName.indexOf("Netscape")!=-1);
	function Tab_Go(input,len, e) {
		var keyCode = (isNN) ? e.which : e.keyCode;
        var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
        if(input.value.length >= len && !containsElement(filter,keyCode)) {
            input.value = input.value.slice(0, len);
			input.form[(getIndex(input)+1) % input.form.length].focus();
		}
		
		function containsElement(arr, ele) {
			var found = false, index = 0;
            while(!found && index < arr.length) {
                if(arr[index] == ele)
                    found = true; 
                else 
                    index++;
			}
            return found;
        }   

		function getIndex(input) {
			var index = -1, i = 0, found = false;
			while (i < input.form.length && index == -1) {
                if (input.form[i] == input)
					index = i;
				else
					i++;
			}
			return index;
		}
		return true;
		
	}

	//ÀÍ½º ÇÃ·Î·¯ 7Å¸ÀÔÀ¸·Î ÀÎÄÚµù 

	document.write("<meta http-equiv='X-UA-Compatible' content='IE=7' />");
	//ÀÚµ¿ Tab ÀÌµ¿
	//=============================================================================
//===¹è¿­ °ü·Ã - ½ÃÀÛ====================================================================
	/*
	   ¹è¿­ °ªÀ» ´õÇÑ´Ù.-ÀÚµ¿À¸·Î ¹è¿­ °ªÀ» Áõ°¡ÇÏ°í ¿À¸¥ÂÊ °ªÀ» ÇÒ´ç ÇØÁÖ°í=½ÃÀÛ °ª 1 ºÎÅÍ ÇÑ´Ù.
	   ¹è¿­À» ¸®ÅÏÇØÁØ´Ù.
	  var myArrList=new Array();
	   ¼±¾ðÇÑ ¹è¿­¿¡ ´ëÇØ¼­  myArrList¿¡ ´ëÇØ¼­ myArrList[2]ÀÌ·¸°Ô Áõ°¡ µÊ¿¡ µû¶ó ÇÒ´ç ÇØ¾ßµÇ´Âµ¥
	   ¾Ë¾Æ¼­ ÀÚµ¿À¸·Î ¹è¿­ ³¡¿¡ ¹®ÀÚ¿­À» Ãß°¡ÇØÁØ´Ù.
	   ¡Ø Âü°í : f_LeftField_Arr.push(f_LeftField[i].value); À§¿¡ ÇÔ¼ö ÀÌ·¸°Ô ÇØµµ µÊ.
	   »ç¿ë¿¹ ) arr_list=arr_add(f_LeftField_Arr,f_LeftField[i].value);//¹è¿­ Ãß°¡=>"= ÇØ¼­ ÇÒ´ç ±¸¹®¾ø¾îµµ µÊ."
	  f_my_arr : ¹è¿­
	  f_my_str : ¹è¿­¿¡ Ãß°¡ÇÒ ¹®ÀÚ¿­
	*/
	function arr_add(f_my_arr,f_my_str){
		var f_my_arr_cnt=f_my_arr.length;//³¡¿¡ Ãß°¡ÇÑ´Ù. 
		var f_my_set_arr=new Array(f_my_arr_cnt);
		var i=0;
		for (i=0;i<=f_my_arr_cnt;i++){
			//alert(i+'·£'+f_my_arr[i]+'¼ö'+f_my_arr_cnt);
			if (f_my_arr[i]=='undefined')f_my_set_arr[i]='';
			else f_my_set_arr[i]=f_my_arr[i];
			//if (i==f_my_arr_cnt) f_my_set_arr[i]=f_my_str;//¸¶Áö¸·¿¡ ¹®ÀÚ¿­À» Ãß°¡ÇØÁØ´Ù. 
			
		}
		//f_my_set_arr[i]=f_my_str;//¸¶Áö¸·¿¡ ¹®ÀÚ¿­À» Ãß°¡ÇØÁØ´Ù.
		//alert(f_my_set_arr.length+'¹è¿­ ÀçÇÒ´ç ¼º°ø'+f_my_str);		
		return f_my_set_arr;
	}
	
	/*
	   ÇØ´ç ¹è¿­À» ¿À¸¥Â÷¼øÀ¸·Î Á¤·Ä
	*/
	  function comperenum(a,b)
	  {
	    return a-b  //¿À¸§Â÷¼ø ³»¸² Â÷¼øÀº return b-a 
	  }
	/*
	   ¼³¸í: ¹è¿­°ú ¹®ÀÚ¿­ ºñ±³ ÇÔ¼ö => ÇØ´ç ¹®ÀÚ¿­ÀÌ ¹è¿­¿¡ ÀÖÀ¸¸é true¸¦ ¸®ÅÏÇÑ´Ù.
	  f_my_arr : ºñ±³ÇÒ ¹è¿­
	  f_my_str : ºñ±³ÇÒ  ¹®ÀÚ¿­
	*/
	function arrValChk(f_arrValChk,f_my_str){
	   var f_my_arrValChk=new Array();//ÃÊ±âÈ­ÇÑ´Ù.
	   var i=0;//ÃÊ±âÈ­	   
	   var f_rtn_value=false;
		for (i=0;i<f_arrValChk.length;i++)
		{
			f_my_arrValChk[i]=f_arrValChk[i];
			//alert('ÇÏÇÏ¤¿¤¾'+f_my_arrValChk[i]+'='+f_arrValChk[i]);
		}//ºñ±³ÇÒ ¹è¿­À» Ã¼Å© ¹è¿­¿¡ º¹»çÇÑ´Ù.-»¶³ª´Â ¹®Á¦¶§¹®¿¡ Ãß°¡
		
		i=0;//ÃÊ±âÈ­ 
		//Ã¼Å©¹è¿­·Î ÇöÀç °ª ºñ±³ÇÑ´Ù. 
		for (i=0;i<f_my_arrValChk.length;i++)
		{
		  // alert(f_my_arrValChk[i]+'ÇöÀç '+f_my_str);
		   if (f_my_arrValChk[i]==f_my_str) 	
		   {
		   	f_rtn_value=true;//ºñ±³ÇÏ´Â ¹®ÀÚ¿­ÀÌ °°À¸¸é true
		    //alert(f_my_arrValChk[i]+'°ªÀÌ ¸ÂÀ½'+f_my_str);
		   }
		} 
		return f_rtn_value;
	}
	

    //=============================================================================
	//ÀÚµ¿ ÀüÃ¼ Ã¼Å© ¼±ÅÃ ½ÃÀÛ
	    //Ã¼Å©µÇ¾îÀÖ´Â °ªÀ» ÇÑÁÙ·Î °®°í ¿Â´Ù -  "1,2,3,5" ÀÌ·±½ÄÀ¸·Î document.all.°´Á¦¸í
		function GetValForCheckbox(ElementName){
		  if (ElementName==undefined){
		  	 return "" ;//object Ã£Áö ¸øÇÏ¸é
		  }else if(!(ElementName.length)){  //´Üµ¶ÀÏ¶§ Áï, ¹è¿­ÀÌ ¾Æ´Ò¶§
				if(ElementName.checked){
					var rtn_val='';//¸®ÅÏ ¹®ÀÚ
					rtn_val = ElementName.value;
					return rtn_val;
				}else{
					return "";
				}

		  }else{
		  	
		    var rtn_val='';//¸®ÅÏ ¹®ÀÚ
		    var split_str=',';//±¸ºÐ ¹®ÀÚ
			var EleSize=ElementName.length;
			var i=0;
			var i_sun=0;
			if(EleSize){ 
				for(i;EleSize>i;++i){
				   if (ElementName[i].checked==true){//ÇØ´çÇ×¸ñÀÌ ¼±ÅÃÀÌ¸é
				    if (i_sun > 0) rtn_val=rtn_val+split_str;//±¸ºÐ¹®ÀÚ¸¦ Ã³À½ÀÌ ¾Æ´Ï¸é ´õÇØÁØ´Ù.
					rtn_val=rtn_val+ElementName[i].value;
					//alert('hi'+i+'°ª'+ElementName[i].value);
					i_sun++;// Ã¼Å©ÇÏ´Â ¼ø¹ø
				   }//ÇØ´çÇ×¸ñÀÌ ¼±ÅÃÀÌ¸é
				}
			}
			return rtn_val;
		  }
		}
		
	//¹ÝÀü Ã¼Å© ¹Ú½º
	function CheckReverseForCheckbox(ElementName){
		var EleSize=ElementName.length;
		var i=0; 
		if(!EleSize){
			ElementName.checked=true;
		}else{
			for(i;EleSize>i;++i){
			  if (ElementName[i].checked==false) ElementName[i].checked=true; 
			  else  ElementName[i].checked=false; 
			}
		} 
	}
	
	/*
	    ¼³¸í: Ã¼Å© ¹Ú½º ´Ù ¼±ÅÃÇØÁÖ´Â ÇÔ¼ö(¹è¿­·Î ¿©·¯°³ ÇØÁÙ¼öÀÖÀ½.)
	              Ã¼Å© ¹Ú½º°¡ ¿©·¯°³ ÀÖÀ»¶§ À¯¿ë(¼ö½Å,ÂüÁ¶,ºñ¹ÐÂüÁ¶)
	   »ç¿ë ¿¹: CheckAllForArrCheckbox(document.list_form['toSend'],'0')          
	  ElementName : Ã¼Å©¹Ú½º¸í
	  f_chbox_arr_num : Ã¼Å© ¹Ú½º°¡Á®¿À´Â ¹øÈ£
	*/
	var CheckboxFlag_Arr=new Array;	//Ã¼Å©¹Ú½º ¿©ºÎ ÀúÀåÇÏ´Â ¹è¿­ º¯¼ö	
	function CheckAllForArrCheckbox(ElementName,f_chbox_arr_num){
	    if (CheckboxFlag_Arr[f_chbox_arr_num]!=true)CheckboxFlag_Arr[f_chbox_arr_num]=false;
		//ÇØ´ç ¹øÂ° ¹è¿­ ÃÊ±âÈ­
		
		var EleSize=ElementName.length;
		var i=0;
		if(!CheckboxFlag_Arr[f_chbox_arr_num]){
			if(!EleSize){
				ElementName.checked=true;
			}else{
				for(i;EleSize>i;++i){
					ElementName[i].checked=true;
				}
			}
			CheckboxFlag_Arr[f_chbox_arr_num]=true;
		}else{
			if(!EleSize){
				ElementName.checked=false;
			}else{
				for(i;EleSize>i;++i){
					ElementName[i].checked=false;
				}
			}
			CheckboxFlag_Arr[f_chbox_arr_num]=false;
		}
	}
						
	/*
	  ¼³¸í : ÀüÃ¼ ¼±ÅÃÇØÁÖ´Â Ã¼Å© ÇÔ¼ö
	   ¿¹:onclick="javascript:CheckAllForCheckbox(document.list_form['list[]']);"
	*/	
		
		var CheckboxFlag=false;		 
		function CheckAllForCheckbox(ElementName){
		//  alert(ElementName);
		  if (ElementName==undefined) return ;//object Ã£Áö ¸øÇÏ¸é
		  else{
				var EleSize=ElementName.length;
				var i=0;
				if(!CheckboxFlag){
					if(!EleSize){
						ElementName.checked=true;
					}else{
						for(i;EleSize>i;++i){
							ElementName[i].checked=true;
						}
					}
					CheckboxFlag=true;
				}else{
					if(!EleSize){
						ElementName.checked=false;
					}else{
						for(i;EleSize>i;++i){
							ElementName[i].checked=false;
						}
					}
					CheckboxFlag=false;
				}
		  }
		}
		
	/*
	  ¼³¸í : ÀüÃ¼ ¼±ÅÃÇØÁÖ´Â¼¿·ºÆ®  ÇÔ¼ö
	   ¿¹:onclick="javascript:CheckAllForSelectbox(document.list_form['list[]']);"
	*/	
			
		var SelectboxFlag=false;
		function CheckAllForSelectbox(ElementName){

			var EleSize=ElementName.options.length;
			var i=0;
			if(!SelectboxFlag){
				for(i;EleSize>i;++i){
					ElementName.options[i].selected=true;
					SelectboxFlag=true;
				}
			}else{
				for(i;EleSize>i;++i){
					ElementName.options[i].selected=false;
					SelectboxFlag=false;
				}
			}
		}//function ³¡
		

		
				
	/*
	   ¼³¸í: Div¿¡ input(ÇÊµå ÅØ½ºÆ® ÇÊµå°ª) ¶Ç´Â ¹è¿­À» °¡Á®¿Í¼­ ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) PrintDivFieldGetVal(document.my_form.groupname.value,'',',',document.all.groupView);
	  f_set_text_field 	   : selectbox ¸®½ºÆ®ÀÇ text°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå °ª 
	  f_set_name_arr_field	   : arr ¸®½ºÆ®·Î ÀúÀåµÉ Ç¥½Ã ¹è¿­°ª
	  f_set_val_arr_field	   : arr ¸®½ºÆ®·Î ÀúÀåµÉ ±¸ºÐ ÀÎµ¦½º ¹è¿­°ª	  
	  f_split_str          : selectbox ¸®½ºÆ®ÀÇ text,value°ªÀ» ¸®½ºÆ®·Î ÀúÀå½Ã °ª°£¿¡  ±¸ºÐ ¹®ÀÚ
	  f_SelectBox_PrintDiv : selectbox ¸®½ºÆ® ¸í text°ªÀ» º¸¿©ÁÙ html field
	  f_DivSelect		   : div Ãâ·Â À¯Çü div('':±âº»);arr1:f_set_text_field°ªÀ» ¹è¿­·Î ¹Þ¾Æ¼­ Ã³¸®ÇÑ´Ù..
	  f_div_next_html	   : div µÚ¿¡ ºÙ´Â html
	*/			
	function PrintDiv_FieldGetVal(f_set_text_field,f_set_name_arr_field,f_set_val_arr_field,f_split_str,f_SelectBox_PrintDiv,f_DivSelect,f_div_next_html)
	{
	  	var f_SelectBox_PrintDiv_str='';
	  	var i=0;
		var f_my_text_arr_list=new Array();
		var f_div_next_html_view="";//º¸¿©ÁÙ div html
		if (f_DivSelect=='') f_my_text_arr_list=f_set_text_field.value.split(f_split_str);//¹è¿­ ¸®½ºÆ® »ý¼º
		else if (f_DivSelect=='arr1') f_my_text_arr_list=f_set_name_arr_field;//¹è¿­À» ÇÒ´çÀ» ÇÑ´Ù.
		var f_my_text_arr_list_su=f_my_text_arr_list.length;//¹è¿­ °¹¼ö
		if (f_my_text_arr_list_su){
			 for(i=0; i<f_my_text_arr_list.length; i++){ //div¿¡  °ª Ãß°¡
			   if (f_DivSelect=='arr1')f_div_next_html_view=chrReplace(f_div_next_html,'index_val',f_set_val_arr_field[i]);
			   if (f_DivSelect=='arr1')f_div_next_html_view=chrReplace(f_div_next_html_view,'index_name',f_set_name_arr_field[i]);
			 	f_SelectBox_PrintDiv_str=f_SelectBox_PrintDiv_str+f_my_text_arr_list[i]+f_div_next_html_view;	
			}
		}
		//alert(f_DivSelect+'f_DivSelect'+f_my_text_arr_list_su+'hi'+f_SelectBox_PrintDiv_str);
		 f_SelectBox_PrintDiv.innerHTML=f_SelectBox_PrintDiv_str;
	}//function ³¡	
		

	/*
	   ¼³¸í: Div¿¡ input ÇÊµå ÅØ½ºÆ® ÇÊµå°ªÀ» °¡Á®¿Í¼­ ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) PrintDivFieldGetVal(document.my_form.groupname.value,',',document.all.groupView);
	  f_set_text_field 	   : selectbox ¸®½ºÆ®ÀÇ text°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå °ª
	  f_split_str          : selectbox ¸®½ºÆ®ÀÇ text,value°ªÀ» ¸®½ºÆ®·Î ÀúÀå½Ã °ª°£¿¡  ±¸ºÐ ¹®ÀÚ
	  f_SelectBox_PrintDiv : selectbox ¸®½ºÆ® ¸í text°ªÀ» º¸¿©ÁÙ html field 
	*/			
	function PrintDivFieldGetVal(f_set_text_field,f_split_str,f_SelectBox_PrintDiv)
	{ 
	  	var f_SelectBox_PrintDiv_str='';
	  	var i=0;
		var f_my_text_arr_list=f_set_text_field.split(f_split_str);//¹è¿­ ¸®½ºÆ® »ý¼º 
		var f_my_text_arr_list_su=f_my_text_arr_list.length;//¹è¿­ °¹¼ö
		if (f_my_text_arr_list_su){
			 for(i=0; i<f_my_text_arr_list.length; i++){ //div¿¡  °ª Ãß°¡
			 	f_SelectBox_PrintDiv_str=f_SelectBox_PrintDiv_str+f_my_text_arr_list[i]+'<br>';	
			}
		}
		 f_SelectBox_PrintDiv.innerHTML=f_SelectBox_PrintDiv_str;
	}//function ³¡	
	
	/*
	   ¼³¸í: ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® ÀÇ value,text°ªÀ» ÇÊµå¿¡ ÇÒ´ç(1,2..ÀÌ·±½Ä) ÇÏ°í Æ¯Á¤ html ÇÊµå¿¡ °ªÀ» ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) onclick="FieldSetValSelectBox(opener.document.my_form.groupname,opener.document.my_form.groupid,',',opener.groupView,document.my_form.group_list);self.close();"
	  f_set_text_field 	   : selectbox ¸®½ºÆ®ÀÇ text°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå ÀÌ¸§ 
	  f_set_val_field 	   : selectbox ¸®½ºÆ®ÀÇ value°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå ÀÌ¸§
	  f_split_str          : selectbox ¸®½ºÆ®ÀÇ text,value°ªÀ» ¸®½ºÆ®·Î ÀúÀå½Ã °ª°£¿¡  ±¸ºÐ ¹®ÀÚ
	  f_SelectBox_PrintDiv : selectbox ¸®½ºÆ® ¸í text°ªÀ» º¸¿©ÁÙ html field
	  f_SelectBoxName      : selectbox ¸®½ºÆ® ¸í
	*/			
	function FieldSetValSelectBox(f_set_text_field,f_set_val_field,f_split_str,f_SelectBox_PrintDiv,f_SelectBoxName)
	{
	  var i=0; 	 
	  var f_set_text_field_str='';
	  var f_set_text_field_sun=0;
	  var f_set_val_field_str='';
	  var f_set_val_field_sun=0;
	  var f_SelectBox_PrintDiv_str='';
	  
	  for(i=0; i<f_SelectBoxName.options.length;i++){
	    f_SelectBox_PrintDiv_str=f_SelectBox_PrintDiv_str+f_SelectBoxName.options[i].text+"<br>";
	    if (f_set_text_field_sun > 0) f_set_text_field_str=f_set_text_field_str+f_split_str;
	    //±¸ºÐ¹®ÀÚ¸¦ Ã³À½ÀÌ ¾Æ´Ï¸é ´õÇØÁØ´Ù.
	    f_set_text_field_str=f_set_text_field_str+ f_SelectBoxName.options[i].text;
	    if (f_set_val_field_sun > 0) f_set_val_field_str=f_set_val_field_str+f_split_str;
	    //±¸ºÐ¹®ÀÚ¸¦ Ã³À½ÀÌ ¾Æ´Ï¸é ´õÇØÁØ´Ù.
	    f_set_val_field_str=f_set_val_field_str+ f_SelectBoxName.options[i].value;
  		 f_set_text_field_sun++;
  		 f_set_val_field_sun++;
	 }//for ¹® ³¡
	  f_SelectBox_PrintDiv.innerHTML=f_SelectBox_PrintDiv_str;
	  f_set_text_field.value =f_set_text_field_str;//: selectbox ¸®½ºÆ®ÀÇ text°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå  
	  f_set_val_field.value =f_set_val_field_str;// : selectbox ¸®½ºÆ®ÀÇ value°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå  	  
 	  //alert(f_set_text_field.value+'='+f_set_val_field.value);
	}//function ³¡	



	/*
	   ¼³¸í: ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® ÀÇ value,text°ªÀ» ÇÊµå¿¡  ÇÏ³ª¿¡ ÇÒ´ç 
	   »ç¿ë¿¹ ) InputBoxSetValSelectBox(f_input_oranization_list,"<",">",input_oranization_SplitChr,f_user_list_name);
	  f_set_input_field 	   : selectbox ¸®½ºÆ®ÀÇ  value,text°ªÀ»   ÀúÀåµÉ ÇÊµå ÀÌ¸§
	  f_set_input_field_set_prev_str : ÀúÀåµÉ ÇÊµå °ª¿¡¼­ text¿Í value »çÀÌ¿¡ ÀÖÀ» ¹®ÀÚ¿­
	  f_set_input_field_set_next_str : ÀúÀåµÉ ÇÊµå °ª¿¡¼­  value µÚ¿¡ ÀÖÀ» ¹®ÀÚ¿­
	  f_split_str          : selectbox ¸®½ºÆ®ÀÇ text,value°ªÀ»  ÀúÀå½Ã °ª°£¿¡  ±¸ºÐ ¹®ÀÚ 
	  f_SelectBoxName      : selectbox ¸®½ºÆ® ¸í
	*/			
	function InputBoxSetValSelectBox(f_set_input_field,f_set_input_field_set_prev_str,f_set_input_field_set_next_str,f_split_str,f_SelectBoxName)
	{
	  var i=0; 	 
	  var f_set_text_field_str='';
	  var f_set_text_field_sun=0;
	  var f_set_val_field_str='';
	  var f_set_val_field_sun=0; 
	  
	  for(i=0; i<f_SelectBoxName.options.length;i++){ 
	    if (f_set_text_field_sun > 0) f_set_text_field_str=f_set_text_field_str+f_split_str;
	    //±¸ºÐ¹®ÀÚ¸¦ Ã³À½ÀÌ ¾Æ´Ï¸é ´õÇØÁØ´Ù.
	    f_set_text_field_str=f_set_text_field_str+ f_SelectBoxName.options[i].text+f_set_input_field_set_prev_str+ f_SelectBoxName.options[i].value+f_set_input_field_set_next_str;  
		f_set_text_field_sun++;
	}//for ¹® ³¡ 
	  f_set_input_field.value =f_set_text_field_str;//: selectbox ¸®½ºÆ®ÀÇ text°ªÀ» ¸®½ºÆ®·Î ÀúÀåµÉ ÇÊµå   	  
 	  //alert(f_set_text_field.value+'='+f_set_val_field.value);
	}//function ³¡	
	
	/*
	   ¼³¸í:¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® ¿¡ ¹è¿­·Î Ç¥½Ã°ª°ú ÇÒ´ç°ªÀ» ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) onload="javascript:arrSetValSelectBox(opener.document.my_form.group_text.value,opener.document.my_form.group_val.value,',',document.my_form.group_list);"
	  f_text_arr_list 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ ¹è¿­  °ª 
	  f_val_arr_list 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ ¹è¿­  °ª 
	  f_split_str        : ¹è¿­À» ³ª´­ ±¸ºÐ ¹®ÀÚ
	  f_SelectBoxName    : ¹è¿­ °ªÀ» ÇÒ´çÇÒ ¼¿·ºÆ® ¹Ú½º
	*/	
	function arrSetValSelectBox(f_text_arr_list,f_val_arr_list,f_split_str,f_SelectBoxName){
		var f_my_text_arr_list=f_text_arr_list.split(f_split_str);//¹è¿­ ¸®½ºÆ® »ý¼º
		var f_my_val_arr_list=f_val_arr_list.split(f_split_str);//¹è¿­ ¸®½ºÆ® »ý¼º

		var f_my_text_arr_list_su=f_my_text_arr_list.length;//¹è¿­ °¹¼ö
		//alert(f_split_str+'¹è¿­'+f_my_arr_list_su);
		if (f_my_text_arr_list_su){
			 for(i=0; i<f_my_text_arr_list.length; i++){ 
				//alert(i+'¹è¿­-text:'+f_my_text_arr_list[i]+'val'+f_my_val_arr_list[i]);
				SelectBoxList_add(f_my_text_arr_list[i],f_my_val_arr_list[i],f_SelectBoxName,'');
				//¼¿·ºÆ® ¹Ú½º¿¡ °ª Ãß°¡
			}
		}
	}
	
	/*
	   ¼³¸í:Ã¼Å© ¹Ú½º¿¡ ¼±ÅÃµÈ°ÍÀ» ¹è¿­ ¸®½ºÆ®¿¡ Ç¥½Ã°ª°ú ÇÒ´ç°ªÀ» ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) onclick="checkBoxSetValSelectBox(Left_gropTree.document.all.treeCheckBox_0_my_tree_Text,Left_gropTree.document.all.treeCheckBox_0_my_tree_Val,document.my_form.group_list);"
	  f_checkBox_text 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ ¹è¿­  °ª 
	  f_checkBox_val 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ ¹è¿­  °ª  
	  f_SelectBoxName    : Ã¼Å© ¹Ú½ºÀÇ Ç¥½Ã°ª(Text)°ú ÇÒ´ç°ª(value)À»  ÇÒ´çÇÒ ¼¿·ºÆ® ¹Ú½º
	  f_arr_del_index    : Á¦¿ÜÇÏ°íÀÚÇÏ´Â f_checkBox_val°ª
	*/		
	//checkBoxSetValSelectBox(Left_gropTree.document.all.treeCheckBox_0_my_tree_Text,Left_gropTree.document.all.treeCheckBox_0_my_tree_Val,document.my_form.group_list)
	//Left_gropTree.document.all.treeCheckBox_0_my_tree_Val
	
	var checkBoxSetValArr_ListVal=new Array();//ÇÒ´çÇÒ °ª ÇÒ´ç ¹è¿­
	var checkBoxSetValArr_ListText=new Array();//Ç¥½ÃÇÒ °ª ÇÒ´ç ¹è¿­
	var checkBoxSetValArr_AddChr='#';//ÇÒ´çÇÒ °ª ¾Õ¿¡ ºÙÀÏ ¹®ÀÚ
	var checkBoxSetTextArr_AddChr='$';////Ç¥½ÃÇÒ °ª ¾Õ¿¡ ºÙÀÏ ¹®ÀÚ
	var input_toSend_SplitChr=';';//ÀÌ¸ÞÀÏ ÀÔ·Â ¹Ú½º °ª¿¡ ´ëÇÑ ±¸ºÐÀÚ
	var input_oranization_SplitChr='`';//Á¶Á÷µµ ÀÔ·Â ¹Ú½º °ª¿¡ ´ëÇÑ ±¸ºÐÀÚ	
	function checkBoxSetValArr(f_checkBox_text,f_checkBox_val,f_del_index){
	   checkBoxSetValArr_ListVal=new Array();//ÇÒ´çÇÒ °ª ÇÒ´ç ¹è¿­-ÃÊ±âÈ­
	   checkBoxSetValArr_ListText=new Array();//Ç¥½ÃÇÒ °ª ÇÒ´ç ¹è¿­-ÃÊ±âÈ­
		
		
	  var f_mycheckBox_val=f_checkBox_val;	
	  var f_mycheckBox_text=f_checkBox_text;	
	  var i=0;
	    //alert(f_mycheckBox_val+'Ã¼Å©:f_mycheckBox_val.length'+f_mycheckBox_val.length);	  
	  for(i=0; i<f_mycheckBox_val.length; i++){
	     var f_mycheckBox_val_list=f_mycheckBox_val[i];
	     //alert(f_del_index+'gkgk'+f_mycheckBox_val_list.checked+'Ã¼'+f_mycheckBox_val_list.value+'Å©'+i);
  		if(f_mycheckBox_val_list.checked==true){
  		   if (f_del_index==(checkBoxSetValArr_AddChr+f_mycheckBox_val[i].value)){
  		   		f_mycheckBox_val_list.checked=false;
  		   		//alert(i+'hi'+f_mycheckBox_val[i].checked);
  		   }
  		   else{//»èÁ¦ÇÏ°íÀÚÇÏ´Â ÀÎµ¦½º ¹øÈ£°¡ ¾Æ´Ï¸é
  		    checkBoxSetValArr_ListVal.push(checkBoxSetValArr_AddChr+f_mycheckBox_val[i].value);
  		    checkBoxSetValArr_ListText.push(checkBoxSetTextArr_AddChr+f_mycheckBox_text[i].value);
  		   }//»èÁ¦ÇÏ°íÀÚÇÏ´Â ÀÎµ¦½º ¹øÈ£°¡ ¾Æ´Ï¸é
 		} 
 	  }
	}//function ³¡	
		
	/*
	   ¼³¸í:Ã¼Å© ¹Ú½º¿¡ ¼±ÅÃµÈ°ÍÀ» ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ®¿¡ Ç¥½Ã°ª°ú ÇÒ´ç°ªÀ» ÇÒ´çÇÑ´Ù.
	   »ç¿ë¿¹ ) onclick="checkBoxSetValSelectBox(Left_gropTree.document.all.treeCheckBox_0_my_tree_Text,Left_gropTree.document.all.treeCheckBox_0_my_tree_Val,document.my_form.group_list);"
	  f_checkBox_text 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ ¹è¿­  °ª 
	  f_checkBox_val 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ ¹è¿­  °ª  
	  f_SelectBoxName    : Ã¼Å© ¹Ú½ºÀÇ Ç¥½Ã°ª(Text)°ú ÇÒ´ç°ª(value)À»  ÇÒ´çÇÒ ¼¿·ºÆ® ¹Ú½º
	*/		
	//checkBoxSetValSelectBox(Left_gropTree.document.all.treeCheckBox_0_my_tree_Text,Left_gropTree.document.all.treeCheckBox_0_my_tree_Val,document.my_form.group_list)
	//Left_gropTree.document.all.treeCheckBox_0_my_tree_Val
	function checkBoxSetValSelectBox(f_checkBox_text,f_checkBox_val,f_SelectBoxName){
	  var f_mycheckBox_val=f_checkBox_val;	
	  var f_mycheckBox_text=f_checkBox_text;	
	  var i=0;
	  for(i=0; i<f_mycheckBox_val.length; i++){
  		if(f_mycheckBox_val[i].checked==true){
  			SelectBoxList_add(f_mycheckBox_text[i].value,f_mycheckBox_val[i].value,f_SelectBoxName,'');//¼¿·ºÆ® ¹Ú½º¿¡ °ª Ãß°¡			 
  		} 
 	  }
	}//function ³¡		
	//ÀÚµ¿ ÀüÃ¼ Ã¼Å© ¼±ÅÃ ³¡
    //=============================================================================
//===¹è¿­ °ü·Ã - ³¡====================================================================

//==== ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ®  °ü·Ã - ½ÃÀÛ========================================= 
	/*
	   ¼³¸í:¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® Ç×¸ñ  Ãß°¡ ÇÒ¶§ ±âÁ¸ ¸®½ºÆ® ¹Ú½º¿¡ ÇØ´ç °ªÀÌ ÀÖ´ÂÁö Ã¼Å©
	          °ªÀÌ °°À¸¸é true °ªÀ» ¸®ÅÏÇÏ°í ¾È°°À¸¸é false°ªÀ» ¸®ÅÏÇÑ´Ù.
	   »ç¿ë¿¹ )  SelectBoxList_ValChk(document.my_form.user_id.value,document.my_form.user_id.value, document.my_form.user_list);"
	  f_text_str 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ  °ª - ¿¹) document.my_form.user_id.value
	  f_val_str 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ  value  °ª  - ¿¹) document.my_form.user_id.value
	  f_ValChkSelectBox : form¿¡ selectbox ¸®½ºÆ®¸í - ¿¹)document.my_form.user_list 
	*/	
	function SelectBoxList_isValChk(f_text_str,f_val_str,f_ValChkSelectBox)
	{
	  var i=0;
	  var f_mySelectBox=f_ValChkSelectBox;	 
	  var f_mySelectBox_su=0;
	  //alert('hi'+f_mySelectBox);
	  if (f_mySelectBox!=null)	  f_mySelectBox_su=f_mySelectBox.options.length;
	  for(i=0; i<f_mySelectBox_su; i++){
  		if(f_mySelectBox.options[i].value==f_val_str){
  		 // alert(rtn_value+'ÃÑ:'+f_mySelectBox.options.length+'¤¤¤¤'+f_mySelectBox.options[i].value+'°ª'+i+' °°À½'+f_val_str);
		   return true;
		   break;	  
   		} 
 	  }
 	  return false;
	}
	
	
	
				
	/*
	   ¼³¸í:Á¶Á÷µµ À¯Àú ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® Ç×¸ñ  »èÁ¦
	   »ç¿ë¿¹ ) onclick="javascript:UserList_SelectBoxList_del(document.my_form.user_list,document.all.input_oranization_list);"
	   f_user_list_name 	 : form¿¡ selectbox ¸®½ºÆ®¸í
	   f_input_oranization_list 	 : Á¶Á÷ Á¤º¸ ¸®½ºÆ®¸¦ °¡Áö´Â input box¸í (hidden)  
	*/		 
	function UserList_SelectBoxList_del(f_user_list_name,f_input_oranization_list){
	   SelectBoxList_del(f_user_list_name);//select ¹Ú½º »èÁ¦
	  // alert('hi'+input_oranization_SplitChr);
	   //¼³¸í: ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® ÀÇ value,text°ªÀ» ÇÊµå¿¡  ÇÏ³ª¿¡ ÇÒ´ç 
	   InputBoxSetValSelectBox(f_input_oranization_list,"<",">",input_oranization_SplitChr,f_user_list_name);//¼¿·ºÆ® ¹Ú½º °»½Å
	}	
	
	/*
	   ¼³¸í:Á¶Á÷µµ À¯Àú ¼¿·ºÆ® ¹Ú½º¿¡ inputbox °ªÀ¸·Î ÇÒ´ç
	   »ç¿ë¿¹ ) onload="UserList_SetVal(document.my_form.user_list,document.all.input_oranization_list);"
	   f_user_list_name 	 : form¿¡ selectbox ¸®½ºÆ®¸í
	   f_input_oranization_list 	 : Á¶Á÷ Á¤º¸ ¸®½ºÆ®¸¦ °¡Áö´Â input box¸í (hidden)  
	*/		 			
	function UserList_SetVal(f_user_list_name,f_input_oranization_list){
							
		var f_OgID_Group_Text_Arr=new Array();
		var f_OgID_Group_Val_Arr=new Array();
		
		var f_OgID_Member_Name_Arr=new Array();
		var f_OgID_Member_ID_Arr=new Array();
		   
		//==1.Á¶Á÷µµ ¼±ÅÃ¿¡¼­  "`" ±¸ºÐÀ¸·Î ¹è¿­·Î ¸¸µç´Ù. - ½ÃÀÛ ============================================
			var f_input_oranization_list_arr=f_input_oranization_list.value.split(input_oranization_SplitChr);//¹è¿­ ¸®½ºÆ® »ý¼º 
		//==1.Á¶Á÷µµ ¼±ÅÃ¿¡¼­  "`" ±¸ºÐÀ¸·Î ¹è¿­·Î ¸¸µç´Ù. - ³¡ ============================================
		
			//¹Þ´Â »ç¶÷
			var i=0;//ÃÊ±âÈ­
			if (f_input_oranization_list_arr.length){
			//===for¹®- ½ÃÀÛ=====================================================================================	
				 for(i=0; i<f_input_oranization_list_arr.length; i++){ 
				    var f_OgID_imsi_str=email_SendFormat(f_input_oranization_list_arr[i]);
					 //alert(i+':¹Þ´Â »ç¶÷ ¹è¿­-text:'+f_OgID_imsi_str);
			         var f_OgID_imsi_str_arr=f_OgID_imsi_str.split('<');//¹è¿­ ¸®½ºÆ® »ý¼º
					//alert('hi·£¼ö'+f_OgID_imsi_str_arr.length);
					if (f_OgID_imsi_str_arr.length>1){  
					 var imsi_cutLen=f_OgID_imsi_str_arr.length-1;			
					 var f_OgID_imsi_prev=''
					  for(p_i=0; p_i<imsi_cutLen; p_i++){ 
					  	f_OgID_imsi_prev=f_OgID_imsi_prev+f_OgID_imsi_str_arr[p_i];
					  }
					 var f_OgID_imsi_next=f_OgID_imsi_str_arr[imsi_cutLen];
					 f_OgID_imsi_next=chrReplace(f_OgID_imsi_next,'>','');
						//alert(f_OgID_imsi_prev+'¾ÕµÚ ¹®ÀÚ¿­'+f_OgID_imsi_next);
					  /*
					    5.ÇÒ´çÇÒ¶§ 
						  ¤¡.±×·ìÀÌ¸é =>$±×·ì¸í <#¹øÈ£>
						  ¤¤.È¸¿øÀÌ¸é ->ÀÌ¸§ <¸ÞÀÏÁÖ¼Ò@¸ÞÀÏ>
						  ±âÁØÀ¸·Î ¸Ç³¡¿¡ < ±âÁØÀ¸·Î ÀÌ¸§ ¹è¿­°ú ¸ÞÀÏ ¹è¿­·Î ³ª´©¾î ÇÒ´çÇÑ´Ù.
			  		 */	    
					  if (chk_substr(f_OgID_imsi_prev,0,1)=='$'){
					  //±×·ìÀÌ¸é-Ã¹¹®ÀÚ°¡ $½ÃÀÛÀº ±×·ì
					    f_OgID_Group_Text_Arr.push(f_OgID_imsi_prev);
				   		f_OgID_Group_Val_Arr.push(f_OgID_imsi_next);		  
					  }
					  else {
					  //ÀÏ¹Ý È¸¿øÀÌ¸é
					    f_OgID_Member_Name_Arr.push(f_OgID_imsi_prev);
				   		f_OgID_Member_ID_Arr.push(f_OgID_imsi_next);	
				   		// alert(f_OgID_imsi_next+'°ª'+f_OgID_imsi_prev);  
					  }
				   		//»ç¿ëÀÚ ¼¿·ºÆ® ¹Ú½º¿¡ Ãß°¡
				   		UserList_SelectBoxList_add(f_input_oranization_list,f_OgID_imsi_prev,f_OgID_imsi_next, f_user_list_name,txtUser_ListMsg);				  
					}//if (f_OgID_imsi_str_arr.length>1){        
				}//for¹®
			//===for¹®- ³¡=====================================================================================	
			}					
					//	alert('°ª ÇÒ´ç µÇ¾ú¾î¿ë');
					
		}
	
	/*
	   ¼³¸í:Á¶Á÷µµ À¯Àú ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® Ç×¸ñ  Ãß°¡-³ªÁß¿¡ ajax¸¦ ÅëÇØ °ª Ã¼Å© ±¸Çö
	   »ç¿ë¿¹ ) onclick="UserList_SelectBoxList_add(document.all.input_oranization_list,document.my_form.user_id.value,document.my_form.user_id.value, document.my_form.user_list,'°øÀ¯ÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');"
	  f_input_oranization_list  :selectbox ¸®½ºÆ®ÀÇ  value,text°ªÀ»   ÀúÀåµÉ ÇÊµå ÀÌ¸§ - Á¶Á÷µµ ¸®½ºÆ® Á¤º¸ ÀúÀåµÇ´Â ÇÊµå
	  f_text_str 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ  °ª - ¿¹) document.my_form.user_id.value
	  f_val_str 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ  value  °ª  - ¿¹) document.my_form.user_id.value
	  f_addSelectBox : form¿¡ selectbox ¸®½ºÆ®¸í - ¿¹)document.my_form.user_list 
	  f_no_val_msg   : Ãß°¡¶õ¿¡ °ªÀÌ ¾øÀ»¶§ Ç¥½Ã ³»¿ë
	*/	
	function UserList_SelectBoxList_add(f_input_oranization_list,f_text_str,f_val_str,f_addSelectBox,f_no_val_msg)
	{	 
		SelectBoxList_add(f_text_str,f_val_str,f_addSelectBox,f_no_val_msg);
		//¼³¸í: ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® ÀÇ value,text°ªÀ» ÇÊµå¿¡  ÇÏ³ª¿¡ ÇÒ´ç 
	   InputBoxSetValSelectBox(f_input_oranization_list,"<",">",input_oranization_SplitChr,f_addSelectBox);//¼¿·ºÆ® ¹Ú½º °»½Å
	} 
	
	/*
	   ¼³¸í:¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® Ç×¸ñ  Ãß°¡
	   »ç¿ë¿¹ ) onclick="SelectBoxList_add(document.my_form.user_id.value,document.my_form.user_id.value, document.my_form.user_list,'°øÀ¯ÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');"
	  f_text_str 	 : selectbox ¸®½ºÆ®¿¡ Ç¥½ÃÇÒ  °ª - ¿¹) document.my_form.user_id.value
	  f_val_str 	 : selectbox ¸®½ºÆ®¿¡ ÇÒ´çÇÒ  value  °ª  - ¿¹) document.my_form.user_id.value
	  f_addSelectBox : form¿¡ selectbox ¸®½ºÆ®¸í - ¿¹)document.my_form.user_list 
	  f_no_val_msg   : Ãß°¡¶õ¿¡ °ªÀÌ ¾øÀ»¶§ Ç¥½Ã ³»¿ë
	*/	
	function SelectBoxList_add(f_text_str,f_val_str,f_addSelectBox,f_no_val_msg)
	{	 
	    var f_mySelectBox=f_addSelectBox; 
		if (f_val_str=='') {
			if (f_no_val_msg) alert(f_no_val_msg); 
			return;
		} 
		if (!SelectBoxList_isValChk(f_text_str,f_val_str,f_mySelectBox)){
		//±âÁ¸ ¼¿·ºÆ® ¹Ú½º¿¡ °ªÀÌ ¾øÀ¸¸é ¼¿·ºÆ® ¹Ú½º¿¡ Ãß°¡ÇØÁØ´Ù.	
		    //alert('Áßº¹ ¾Æ´Ô');	
			var new_option=document.createElement("OPTION");
			new_option.text=f_text_str;
			new_option.value=f_val_str;
			f_mySelectBox.add(new_option);  
		 }		
	} 
	/*
	   ¼³¸í:¼¿·ºÆ® ¹Ú½º ¸®½ºÆ® Ç×¸ñ  »èÁ¦
	   »ç¿ë¿¹ ) onclick="SelectBoxList_del(document.my_form.user_list);" 
	  f_delSelectBox : form¿¡ selectbox ¸®½ºÆ®¸í - ¿¹)document.my_form.user_list 
	*/	 
	function SelectBoxList_del(f_delSelectBox)
	{	
		var del_index=f_delSelectBox.options.selectedIndex;
		if (del_index!=-1) f_delSelectBox.remove(del_index); 
	}
//====¼¿·ºÆ® ¹Ú½º ¸®½ºÆ®  - ³¡========================================= 
 
 	 /*
	   ¼³¸í:¹®ÀÚ¿­À» ¸ÞÀÏ º¸³¾¶§ Æ÷¸ËÀ¸·Î ¸¸µé¾îÁÜ => ÀÌ¸§ <¸ÞÀÏ ÁÖ¼Ò>
		  1.¹è¿­¿¡ ¸Ç³¡¿¡ > ¹®ÀÚ °¡ÀÖÀ¸¸é "ÀÌ¸§ <¸ÞÀÏÁÖ¼Ò>"¸¸µç°ÍÀ¸·Î º»´Ù.
 	      2.±×°Ô ¾Æ´Ò °æ¿ì¿¡´Â ÇØ´ç ¹®ÀÚ¿­ <ÇØ´ç ¹®ÀÚ¿­> Æ÷¸ËÀ¸·Î ¸¸µç´Ù.
 	      
	   »ç¿ë¿¹ ) email_SendFormat("¸ÞÀÏ¾ÆÀÌµð@¸ÞÀÏÁÖ¼Ò");
	                 º¯È¯=> ¸ÞÀÏ¾ÆÀÌµð@¸ÞÀÏÁÖ¼Ò <¸ÞÀÏ¾ÆÀÌµð@¸ÞÀÏÁÖ¼Ò>
	  f_email_str   : ¸ÞÀÏ ¹®ÀÚ 
	*/	
 	 function email_SendFormat(f_email_str){
		var f_email_str_arr=f_email_str.split('<');//¹è¿­ ¸®½ºÆ® »ý¼º
		//alert('hi'+f_email_str_arr.length);
		if (f_email_str=='') return '';//ºó°ªÀÌ¸é ºó°ª ¸®ÅÏ
		if (f_email_str_arr.length>1){
			return f_email_str;
		}
		else return f_email_str+' <'+f_email_str+'>';
 	 }
 
	 /*
	   ¼³¸í:¹®ÀÚ¿­À» Ä¡È¯ÇØÁÜ
	   »ç¿ë¿¹ ) chrReplace(f_my_webContent,"Ä¡È¯ÇÒ ¹®ÀÚ¿­","Ä¡È¯ÇÏ¿© »õ·Î ÇÒ´çÇÒ ¹®ÀÚ¿­");
	  all_str   : ÀüÃ¼ ¹®ÀÚ¿­
	  my_str    : Ä¡È¯ÇÒ ¹®ÀÚ¿­
	  repla_str : Ä¡È¯ÇÏ¿© ¹Ù²Ü ¹®ÀÚ¿­
	*/	
	 function chrReplace(all_str,my_str,repla_str) {
		temp = "" + all_str; // temporary holder
		while (temp.indexOf(my_str)>-1) {
			pos= temp.indexOf(my_str);
			temp = "" + (temp.substring(0, pos) + repla_str + 
			temp.substring((pos + my_str.length), temp.length));
		}
		return temp;
	}

    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ±æÀÌ¸¦ Ã¼Å©
    //  ex) onKeyUp="chk_TxtLenth(this,7,0);" onChange="chk_TxtLenth(this,7,0);"

		function chk_TxtLenth(obj,maxlen,flag)
		{
			var len;
			var temp;

			len = chk_strlen(obj.value);

			if(len > maxlen)
			{
				if(flag) return false;

				//alert(txtMaxLenMsg);//ÀÔ·Â ÃÖ´ë±æÀÌ¸¦ ÃÊ°úÇÏ¿´½À´Ï´Ù.
				alert("ÀÔ·Â ÃÖ´ë±æÀÌ¸¦ ÃÊ°úÇÏ¿´½À´Ï´Ù.");//ÀÔ·Â ÃÖ´ë±æÀÌ¸¦ ÃÊ°úÇÏ¿´½À´Ï´Ù.
				obj.value = chk_substr(obj.value,0,maxlen);
				obj.focus();
			}

			if(flag) return true;
		}
	//  ÅØ½ºÆ®ÇÊµåÀÇ ±æÀÌ¸¦ Ã¼Å© ³¡
    //=============================================================================



    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ Â¥¸£±â

		function chk_substr(str, start, end) 
		{
			var k;
			var ret;
			var temp;
			var t_cnt;

			t_cnt = 0;

			ret = "";

			for(k=0; k<str.length; k++)
			{
				temp = str.charAt(k);

				if(escape(temp).length > 4) 
					t_cnt += 2;
				else
					t_cnt++;

				if (start < t_cnt && t_cnt <= end)
					ret = ret + temp;
			}

			return ret;
		}
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ Â¥¸£±â ³¡
    //=============================================================================

    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ±æÀÌ °¡Á®¿À±â
		function chk_strlen(str)
		{
			var i;
			var len;
			var temp;
			var t_cnt;

			len = str.length;
			t_cnt = 0;

			for(i=0; i<len; i++)
			{
				temp = str.charAt(i);

				if(escape(temp).length > 4)
					t_cnt += 2;
				else
					t_cnt++;
			}

			return t_cnt;
		}
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ±æÀÌ °¡Á®¿À±â
    //=============================================================================



    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ªÀÎÁö Ã¼Å©
		function chk_isEmpty(str)
		{
			var len;

			len = chk_strlen(chk_trim(str));
			
			if(len>0)
				return false;
			else
				return true;
		}

	//   ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ªÀÎÁö Ã¼Å© ³¡
    //=============================================================================





    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ªÀÎÁö Ã¼Å© ÈÄ ¸Þ¼¼Áö
	// chkFiled : chceck ÇÊµå
	// msg      : ¸Þ¼¼Áö
	/*
	    »ç¿ë¿¹ )     if (js_filedChk(document.my_form.GrpName,"±×·ì¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.!~")) return false;
	 			  document.my_form.submit(); 
	 */
		function js_filedChk(chkFiled,msg)
		{
			if(chk_isEmpty(chkFiled.value))
			{//°ªÀÌ ¾øÀ¸¸é

				if (chk_isEmpty(msg)==false)
				{//°ªÀÌ ÀÖÀ¸¸é
					alert(msg);
				}
				chkFiled.focus();//ÇØ´çµÇ´Â °÷¿¡ Æ÷Ä¿½º
				return true;
			}
			else 
				return false;
  
		}

	//   ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ªÀÎÁö  Ã¼Å© ÈÄ ¸Þ¼¼Áö ³¡
    //=============================================================================




    //=============================================================================
	//  ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ø°£ ¾ø¾ÖÁÜ.

		function chk_trim(str)
		{
			while(str.search(/^\s/) != -1)
				str = str.replace(/^\s/,"");

			while(str.search(/\s$/) != -1)
				str = str.replace(/\s$/,"");

			return str;
		}

	//   ÅØ½ºÆ®ÇÊµåÀÇ ¹®ÀÚ¿­ ºó°ø°£ ¾ø¾ÖÁÜ.
    //=============================================================================


    //=============================================================================
	//  ¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÏ°Ô ÇÏ´Â ½ºÅ©¸³Æ®..

		function chk_onlyNum(str)
		{

			var inText = str.value;
			var ret;

			for (var i = 0; i < inText.length; i++) {
				ret = inText.charCodeAt(i);
				if (!((ret > 47) && (ret < 58)))  {
					alert(txtOnlyNumMsg);//¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÕ´Ï´Ù.
					str.value = "";
					str.focus();
					return false;
				}
			}
			return true;
		}

	//   ¼ýÀÚ¸¸ ÀÔ·Â °¡´ÉÇÏ°Ô ÇÏ´Â ½ºÅ©¸³Æ®..
    //=============================================================================
 
 

    //=============================================================================
	//  È¸¿ø ·Î±×ÀÎ ½ÃÀÛ
		function InputSetBgID() {
			document.left_LoginForm.id.style.backgroundImage="";
			return true;
		}
	
		function InputSetBgPW() {
			document.left_LoginForm.pwd.style.backgroundImage="";
			return true;
		}
		
		function pwd_onpropertychange() {
			if(document.left_LoginForm.pwd.value.length>0){
				document.left_LoginForm.pwd.style.backgroundImage="";
				return true;
			}	
		}
	//     È¸¿ø ·Î±×ÀÎ ³¡
    //=============================================================================

    //=============================================================================
	//  È¸¿ø ¸Þ´º  ½ÃÀÛ
	/*
			»ç¿ë¿¹) ==>(memberid,this, event);
	*/
		function Member_MenuContext(f_memberContext_id,obj, e) {
		//alert('f_memberContext_id===>'+f_memberContext_id);
		 var dropmenuID='member_menuContext'; 
		  
		 
	      var f_mContextDiv_Html="";//div¿¡ Ãâ·ÂÇÒ html 
	 //   f_mContextDiv_Html=f_mContextDiv_Html+"	<div id="+Member_MenuContext+" style=position:absolute;visibility>";

f_mContextDiv_Html=f_mContextDiv_Html+"              <table width=\"102\" cellpadding=\"0\" cellspacing=\"0\">";
f_mContextDiv_Html=f_mContextDiv_Html+"               <tr height=\"6\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                <td background=\"http://www.uplay.co.kr/UplayPortal/images/mypage/layer_bg_1.gif\"></td>";
f_mContextDiv_Html=f_mContextDiv_Html+"               </tr>";
f_mContextDiv_Html=f_mContextDiv_Html+"               <tr height=\"24\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                <td background=\"http://www.uplay.co.kr/UplayPortal/images/mypage/layer_bg_2.gif\" align=\"left\" style=\"padding-left:13px;\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                 <a href=\"#\" class=\"bl\" onclick=\"javascript:Memo_WritePopUp('"+f_memberContext_id+"');\">ÂÊÁö¾²±â</a>";
f_mContextDiv_Html=f_mContextDiv_Html+"                </td>";
f_mContextDiv_Html=f_mContextDiv_Html+"               </tr>";
f_mContextDiv_Html=f_mContextDiv_Html+"               <tr height=\"24\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                <td background=\"http://www.uplay.co.kr/UplayPortal/images/mypage/layer_bg_2.gif\" align=\"left\" style=\"padding-left:13px;\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                 <a href=\"#\" class=\"bl\" onclick=\"javascript:openWindowCenter('http://www.uplay.co.kr/UplayPortal/Friend_list.do?cmd=input_form&friendMemberid="+f_memberContext_id+"', 'sWinName', 368, 245, 'no');\">Ä£±¸Ãß°¡</a>";
f_mContextDiv_Html=f_mContextDiv_Html+"                </td>";
f_mContextDiv_Html=f_mContextDiv_Html+"               </tr>";
f_mContextDiv_Html=f_mContextDiv_Html+"               <tr height=\"24\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                <td background=\"http://www.uplay.co.kr/UplayPortal/images/mypage/layer_bg_2.gif\" align=\"left\" style=\"padding-left:13px;\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                 <a href=\"#\" class=\"bl\" onclick=\"javascript:openWindowCenter('http://www.uplay.co.kr/UplayPortal/Friend_list.do?cmd=input_form&friend_state=2&friendMemberid="+f_memberContext_id+"', 'sWinName', 368, 245, 'no');\">¼ö½Å°ÅºÎ</a>";
f_mContextDiv_Html=f_mContextDiv_Html+"                </td>";
f_mContextDiv_Html=f_mContextDiv_Html+"               </tr>";
f_mContextDiv_Html=f_mContextDiv_Html+"               <tr height=\"6\">";
f_mContextDiv_Html=f_mContextDiv_Html+"                <td background=\"http://www.uplay.co.kr/UplayPortal/images/mypage/layer_bg_3.gif\"></td>";
f_mContextDiv_Html=f_mContextDiv_Html+"               </tr>";
f_mContextDiv_Html=f_mContextDiv_Html+"              </table>";



			 var isDropmenuID=document.getElementsByName(dropmenuID);//document.body.getElementById(dropmenuID); 
			 if (isDropmenuID.length>0) { 	   
			     document.getElementById(dropmenuID).innerHTML=f_mContextDiv_Html;
			 }
		    else { 
		    	   var f_memberContextDiv = document.createElement("div");
			     f_memberContextDiv.id=dropmenuID;
		 	    f_memberContextDiv.innerHTML=f_mContextDiv_Html;
		 	     f_memberContextDiv.style.marginBottom = "10px";
		 	     f_memberContextDiv.style.position = "absolute"; 
				 document.body.appendChild(f_memberContextDiv); 	
		    }

		 dropdownmenu(obj, e, dropmenuID);
		 
 
		}
	//  È¸¿ø ¸Þ´º ³¡
    //=============================================================================
    //=============================================================================
	//  È¸¿ø ÂÊÁö º¸³»±â ÆË¾÷  ½ÃÀÛ
		function Memo_WritePopUp(f_receive_member_id) {
			popup_show('http://www.uplay.co.kr/UplayPortal/memo_list.do?cmd=input_form&receive_memberid='+f_receive_member_id ,'memo',505,340);
     	}

	//  È¸¿ø ÂÊÁö º¸³»±â ÆË¾÷   ³¡
    //=============================================================================
    
    //=============================================================================
	//  È¸¿ø ÂÊÁö ¸®½ºÆ® °¡±â-½ÃÀÛ
		function Memo_List() {
			document.location.href='http://www.uplay.co.kr/UplayPortal/memo_list.do?cmd=listPage';
     	}

	//  È¸¿ø ÂÊÁö ¸®½ºÆ® °¡±â-  ³¡
    //=============================================================================
        
    //=============================================================================

		
	


    //=============================================================================
	//  È¸¿ø ¾ÆÀÌµð Ã£±â ½ÃÀÛ
		function my_id_search_popup(){
			window.open('/web_location/member/member_id_search.php','search_user_id','width=400,height=200,toolbar=no,status=no,resizable=no');
		}
	//  È¸¿ø ¾ÆÀÌµð Ã£±â ³¡
    //=============================================================================
    //=============================================================================
	//  È¸¿ø ºñ¹Ð¹øÈ£ Ã£±â ½ÃÀÛ
		function my_pw_search_popup(){
			//window.open('/web_location/member/member_pw_search.php','search_user_pw','width=400,height=200,toolbar=no,status=no,resizable=no');
		}
	//  È¸¿ø ºñ¹Ð¹øÈ£ Ã£±â ³¡
    //=============================================================================

    //=============================================================================
	// À©µµ¿ì Ã¢ ¶Ù¿ì±â ½ÃÀÛ

		function PopUpOpen(popup_url,popup_name,popup_width,popup_height,popup_left,popup_top){
		   window.open(popup_url,popup_name,'toolbar=no,menubar=no,location=no,directions=no,scrollbars=auto,status=no,width='+popup_width+',height='+popup_height+',left='+popup_left+',top='+popup_top);
		}

	// À©µµ¿ì Ã¢ ¶Ù¿ì±â ³¡
	//=============================================================================


    //=============================================================================
	// À©µµ¿ì Ã¢ ¶Ù¿ì±â ½ÃÀÛ

		function popup_show(popup_url,popup_name,popup_width,popup_height){
		   window.open(popup_url,popup_name,'toolbar=no,menubar=no,location=no,directions=no,scrollbars=no,status=no,width='+popup_width+',height='+popup_height+',left=150,top=50');
		}

	// À©µµ¿ì Ã¢ ¶Ù¿ì±â ³¡
	//=============================================================================



    //=============================================================================
	// À©µµ¿ì Ã¢ 2¶Ù¿ì±â ½ÃÀÛ

		function popup_show2(popup_url,popup_name,popup_width,popup_height){
		   window.open(popup_url,popup_name,'toolbar=no,menubar=no,location=no,directions=no,scrollbars=yes,status=no,width='+popup_width+',height='+popup_height+',left=150,top=50');
		}

	// À©µµ¿ì Ã¢ 2 ¶Ù¿ì±â ³¡
	//=============================================================================
	
    //=============================================================================
	//½Å°í À©µµ¿ì Ã¢ ¶Ù¿ì±â ½ÃÀÛ
/*
½Å°í ´ë»óID   -> badReport_id
½Å°í ´ë»óÀÌ¸§   badReport_name
½Å°í °Ô½Ã±Û Á¦¸ñ    badReport_title
½Å°í °Ô½Ã±Û À§Ä¡   badReport_url
*/

		function badReport_PopupShow(f_badReport_id,f_badReport_name,f_badReport_title,f_badReport_url){
		popup_url="./BadUserReport.do?cmd=input_form&badReport_id="+f_badReport_id.value+"&badReport_name="+f_badReport_name.value+"&badReport_title="+f_badReport_title.value+"&badReport_url="+f_badReport_url.value;
		popup_name='';
		popup_width=365;
		popup_height=480;
		
		   window.open(popup_url,popup_name,'toolbar=no,menubar=no,location=no,directions=no,scrollbars=no,status=no,width='+popup_width+',height='+popup_height+',left=150,top=50');
		}

	// ½Å°í À©µµ¿ì Ã¢ ¶Ù¿ì±â ³¡
	//=============================================================================
		
   //À©µµ¿ìÃ¢ °¡¿îµ¥ ¶Ù¿ì±â ½ÃÀÛ
   		function openWindowCenter(sURL, sWinName, iWidth, iHeight, sScroll) { 
			if (sScroll == null) sScroll = "no";
			var status = "";
		
			LeftPosition = (screen.width) ? (screen.width - iWidth) / 2 : 0;
			TopPosition = (screen.height) ? (screen.height - iHeight) / 2 : 0;
		
			status = status + "toolbar=no, channelmode=no, location=no, directories=no, resizable=no, menubar=no";
			status = status + ", scrollbars=" + sScroll + ", width=" + iWidth + ", height=" + iHeight+ ", top=" + TopPosition + ", left=" + LeftPosition;
		
			window.open(sURL, sWinName, status);
		}
	//À©µµ¿ìÃ¢ °¡¿îµ¥ ¶Ù¿ì±â ³¡	
	
    //=============================================================================
	// sms º¸³»´Â Ã¢ ¶Ù¿ì±â ½ÃÀÛ

		function sms_send_popup(list_form,go_url){

setup='toolbar=no,location=no,directories=no,status=no,menubar=no,width=640,height=745'

setup += 'scrollbars=no,resizable=no'

			pop=window.open ("","sms_send",setup);//popup_show2('/khsa_app/email/email.html','email_send','700','570');
			list_form.target="sms_send";
			 
			 list_form.action=go_url;

			 list_form.submit();
		}

	// sms º¸³»´Â Ã¢  ¶Ù¿ì±â ³¡
	//=============================================================================
 


    //=============================================================================
	/* ·¹ÀÌ¾î º¸ÀÌ±â¾Èº¸ÀÌ±â ½ÃÀÛ -  id·Î Á¤ÇÑ°ÍÀ» º¸¿©ÁÖ°í ¾Èº¸¿©ÁÖ°í ÇÑ´Ù.
	   »ç¿ë¹ý:  È£Ãâ: <a href="javascript:Layer_ShowChk(document.all.content)" >Áú¹® ³»¿ëº¸±â</font></a>
		   <div  ID="content" style="display:none">³»¿ëÀÔ´Ï´Ù.</div>
     */


		 function Layer_ShowChk(iObject)
		 { 
			   if (iObject.style.display != "none") 
				   iObject.style.display = "none" 
				   else 
				   iObject.style.display = ""
		 } 
	// ·¹ÀÌ¾î º¸ÀÌ±â¾Èº¸ÀÌ±â  ³¡
	//=============================================================================
	
//==============°Ô½ÃÆÇ °ü·Ã ÇÔ¼ö- ½ÃÀÛ ================================================
    //=============================================================================
	/* 1.¸®½ºÆ® ÆäÀÌÁö´ç SelectBox :(10,50,100)°³ Ç¥½Ã-ÀÚµ¿ ÀÚ¹Ù½ºÅ©¸³Æ® È£Ãâ - ½ÃÀÛ */
	function BoardList_ViewCnt(my_viewCnt){
		document.BoardListJForm.pagePerCount.value=my_viewCnt;
		BoardListJFormSubmit();//Æû °ª Àü¼Û
	}
	/* 1.¸®½ºÆ® ÆäÀÌÁö´ç SelectBox :(10,50,100)°³ Ç¥½Ã-ÀÚµ¿ ÀÚ¹Ù½ºÅ©¸³Æ® È£Ãâ - ³¡ */
    //=============================================================================
     
    //=============================================================================
	/* 2.¸®½ºÆ® °Ë»ö- ½ÃÀÛ */
	function BoardListSearch(){
		/*alert('hi'+document.all.JForm_search_text.value);
	*/
	    if (js_filedChk(document.all.JForm_search_text,txtBoardSearchMsg)==false)
	    {//°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!~
			document.BoardListJForm.search_key.value=document.all.JForm_search_key.value;
			document.BoardListJForm.search_text.value=document.all.JForm_search_text.value;		
			//alert('ÇöÀç°ª'+document.BoardListJForm.search_text.value);
			BoardListJFormSubmit();//Æû °ª Àü¼Û 
		}
	
	}
	/* 2.¸®½ºÆ® °Ë»ö - ³¡ */
    //=============================================================================
        
    function BoardListJFormSubmit(){
        document.BoardListJForm.method="get";
		document.BoardListJForm.action="?";
		document.BoardListJForm.submit(); 
	}

    //=============================================================================
	/* 3.¸®½ºÆ® ÆäÀÌÁöÀÌµ¿ - ¼¿·ºÆ®¹Ú½º - ½ÃÀÛ */
	function BoardList_PageMove(currentPage){
		document.BoardListJForm.currentPage.value=currentPage;
		BoardListJFormSubmit();//Æû °ª Àü¼Û
	}
	/* 3.¸®½ºÆ® ÆäÀÌÁöÀÌµ¿ - ¼¿·ºÆ®¹Ú½º - ³¡ */
    //=============================================================================
 
    //=============================================================================
	/* 4.¸®½ºÆ®  ÆäÀÌÂ¡ :ÀÌÀü(1,2,3,4,5) ´ÙÀ½ Ç¥½Ã - ½ÃÀÛ */
	function BoardList_ListPaging(currentPage){
		document.BoardListJForm.currentPage.value=currentPage;
		BoardListJFormSubmit();//Æû °ª Àü¼Û
	}
	/* 4.¸®½ºÆ®  ÆäÀÌÂ¡ :ÀÌÀü(1,2,3,4,5) ´ÙÀ½ Ç¥½Ã - ³¡ */
    //=============================================================================
   
    //=============================================================================
	/* °Ô½ÃÆÇ Á¤·Ä- ½ÃÀÛ */
	function BoardList_ListSort(listSort){
		document.BoardListJForm.sortKey.value=listSort;
		BoardListJFormSubmit();//Æû °ª Àü¼Û
	}
	/* °Ô½ÃÆÇ Á¤·Ä - ³¡ */
    //=============================================================================
     
//==============°Ô½ÃÆÇ °ü·Ã ÇÔ¼ö- ³¡ ================================================




var old='';

function menu(name)
{
	submenu=eval("submenu_"+name+".style");
	
	if(old!=submenu)
	{
		if(old != ''){
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}else{
		submenu.display='none';
		old='';
	}
}
 
  
/*
   ¼³¸í: ÆäÀÌÁö¿¡ ¹®ÀÚ¿­À» Ãâ·ÂÇØÁØ´Ù.
   »ç¿ë¿¹ ) <script>show('¹®ÀÚ¿­');</script>
  f_my_str 	 : ÆäÀÌÁö¿¡ Ãâ·ÂÇÒ ¹®ÀÚ¿­
*/
  function show(f_my_str){
  	document.write(f_my_str);
  }
  
// Æ®¸®¿¡¼­ º¸¿©ÁÖ´Â°Í ¼³Á¤ -½ÃÀÛ
	function list_view(divs, imgs) {  
	 var dspDiv = eval("document.all." + "submenu_"+divs + ".style");
	 var dspImg = eval("document." + imgs);
	
	 if (dspDiv.display == "none") {
	  dspImg.src = "../images/left_minor_icon.gif";
	  dspDiv.display = "block";
	 } else {
	  dspImg.src = "../images/left_plus_icon.gif";
	  dspDiv.display = "none";
	 }
	}
// Æ®¸®¿¡¼­ º¸¿©ÁÖ´Â°Í ¼³Á¤ -³¡

/*
   ¼³¸í:Ã¼Å© ¹Ú½º¿¡ ¼±ÅÃµÈ°ÍÀ» ¼¿·ºÆ® ¹Ú½º ¸®½ºÆ®¿¡ Ç¥½Ã°ª°ú ÇÒ´ç°ªÀ» ÇÒ´çÇÑ´Ù.
   »ç¿ë¿¹ ) onclick="checkBoxSetValSelectBox(Left_gropTree.document.all.treeCheckBox_0_my_tree_Text,Left_gropTree.document.all.treeCheckBox_0_my_tree_Val,document.my_form.group_list);"
  imgViewPic_val 	 : ÀÌ¹ÌÁö º¸¿©ÁÙ °æ·Î °ª-document.my_form.picurl.value
  f_div_name	 	 : divÀÌ¸§ document.all.ImgView
  f_DivImg_name      : div¾È¿¡ ÀÌ¹ÌÁö ÀÌ¸§ document.all.imgViewPic
*/
//Div¿¡ input ÇÊµå ÅØ½ºÆ® ÇÊµå°ªÀ» °¡Á®¿Í¼­ ÇÒ´çÇÑ´Ù.
function divImg_View(imgViewPic_val,f_div_name,f_DivImg_name){ 
  var imgViewPic_val_str=imgViewPic_val;
	//alert('hi'+imgViewPic_val_str);
  if (imgViewPic_val_str!=''){ 
	f_div_name.style.display = ""; 
 ///	alert('hi22'+document.all.ImgView.innerHTML);
 	f_DivImg_name.src=imgViewPic_val_str;
  	
  } 
} 



/**
  Object ¸¦ bool °ª¿¡ µû¶ó disabled Ã³¸® 
   Object
   True/False
*/
function objDisabled(obj, bool)
{
	if(bool == true)
	{         
		obj.disabled = true;
		obj.style.backgroundColor = "f1f1f1";
	}
	else
	{
		obj.disabled = false;
		obj.style.backgroundColor = "ffffff";         
	}     
}

/**
   Object ¸¦ bool °ª¿¡ µû¶ó readonly Ã³¸® 
   Object
   True/False
*/
function objReadOnly(obj, bool)
{
	if(bool == true)
	{         
		obj.readOnly = true;
		obj.style.backgroundColor = "f1f1f1";
	}
	else
	{
		obj.readOnly = false;
		obj.style.backgroundColor = "ffffff";         
	}     
}

/**
  Object ÀÇ »ö»óÀ» color ·Î º¯°æ 
   Object 
    Color
*/
function objSetColor(obj, color)
{
	obj.style.backgroundColor = color;
}


    //=============================================================================
	//  ÄíÅ° °ü·Á- ½ÃÀÛ
	//¿¹) setCookie( "ÄíÅ° ÀÌ¸§", "Äí±â°ª" ,³¯Â¥¼ö); 
	function setCookie( name, value, expiredays ) 
	{ 
		var todayDate = new Date(); 
		todayDate.setDate( todayDate.getDate() + expiredays ); 
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	}
	//¿¹) if ( getCookie( "Äí±â ÀÌ¸§" ) != "done" ) {}
	
	function getCookie( name ) 
	{ 
		var nameOfCookie = name + "="; 
		var x = 0; 
		while ( x <= document.cookie.length ) 
		{ 
		var y = (x+nameOfCookie.length); 
		if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
		if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
		endOfCookie = document.cookie.length; 
		return unescape( document.cookie.substring( y, endOfCookie ) ); 
		} 
		x = document.cookie.indexOf( " ", x ) + 1; 
		if ( x == 0 ) 
		break; 
		} 
		return ""; 
	} 
	//  ÄíÅ° °ü·Ã  - ³¡
    //=============================================================================

	// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
	function flashWrite(url,w,h,id,bg,vars,win){

		// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
		var flashStr=
		"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
		"<param name='allowScriptAccess' value='always' />"+
		"<param name='movie' value='"+url+"' />"+
		"<param name='FlashVars' value='"+vars+"' />"+
		"<param name='wmode' value='"+win+"' />"+
		"<param name='menu' value='false' />"+
		"<param name='quality' value='high' />"+
		"<param name='bgcolor' value='"+bg+"' />"+
		"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
		"</object>";

		// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
		document.write(flashStr);

	}
	//µ¿¿µ»ó
	function movPlay(src,w,h) {
		var movie="";
		movie = "<OBJECT id='Player' width="+w+" height="+h+" ID=Player name=Player CLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95>"
		movie += "<PARAM name=FileName value='"+src+"' showstatusbar='1'>"	
		movie += "<PARAM name=ShowControls value=0>" 	
		movie += "<PARAM name=ShowTracker value=0>" 	
		movie += "<PARAM name=ShowAudioControls value=0>" 	
		movie += "<PARAM name=ShowStatusBar value=0>" 	
		movie += "<PARAM name=ShowDisplay value=0>" 	
		movie += "<PARAM name=ShowCaptioning value=0>" 	
		movie += "<PARAM name=ShowPositionControls value=1>" 	
		movie += "<PARAM name=SetCurrentEntry value=0>" 	
		movie += "<PARAM name=AutoStart value=1>" 	
		movie += "<PARAM name=EnableContextMenu value=0>" 	
		movie +="</OBJECT>"	
	document.write(movie);
	}


	function bookmark(){
		window.external.AddFavorite('http://www.uplay.co.kr', 'À¯ÇÃ·¹ÀÌ')
	}
	function startPage(){
		this.style.behavior='url(#default#homepage)';
		this.setHomePage('http://www.uplay.co.kr'); 
	}
	//¸¶¿ì½º ¿À¸¥ÂÊ Å¬¸¯ ¸øÇÏ°Ô
    //document.oncontextmenu = function () { 
   //     return false;
   // };
    

/***************************************************************
 * OpenWindow PopUp
 ***************************************************************/
function openWindowCenter(url,name, w, h, option) {
	window.open(url,"","width="+w+",height="+h+"," + option);
}

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)


var ie5=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
 var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
 var parentEl=what.offsetParent;
 while (parentEl!=null){
  totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
  parentEl=parentEl.offsetParent;
 }
 return totaloffset;
}

function showhide(obj, e, visible, hidden){
 if (ie5||ns6)
  dropmenuobj.style.left=dropmenuobj.style.top=-500
 if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
  obj.visibility=visible
 else if (e.type=="click")
  obj.visibility=hidden
}

function iecompattest(){
 return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
 var edgeoffset=0
 if (whichedge=="rightedge"){
 var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
  dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
 if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
  edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
 }
 else{
 var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
  dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
 if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
  edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
 }
 return edgeoffset
}

function dropdownmenu(obj, e, dropmenuID){
 if (window.event) event.cancelBubble=true
 else if (e.stopPropagation) e.stopPropagation()
 if (typeof dropmenuobj!="undefined") //hide previous menu
  dropmenuobj.style.visibility="hidden"
  clearhidemenu()
 if (ie5||ns6){
  obj.onmouseout=delayhidemenu
  dropmenuobj=document.getElementById(dropmenuID)
 if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
  dropmenuobj.onmouseover=clearhidemenu
  dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
  showhide(dropmenuobj.style, e, "visible", "hidden")
  dropmenuobj.x=getposOffset(obj, "left")
  dropmenuobj.y=getposOffset(obj, "top")
  dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
  dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
 }
 return clickreturnvalue()
}

function clickreturnvalue(){
 if ((ie5||ns6) && !enableanchorlink) return false
 else return true
}

function contains_ns6(a, b) {
 while (b.parentNode)
 if ((b = b.parentNode) == a)
 return true;
 return false;
}

function dynamichide(e){
 if (ie5&&!dropmenuobj.contains(e.toElement))
  delayhidemenu()
 else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
 delayhidemenu()
}

function delayhidemenu(){
 delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}

function clearhidemenu(){
 if (typeof delayhide!="undefined")
  clearTimeout(delayhide)
}    

//=======================================
// js_layer_colorpicker
// textbox¿¡ ¿¬°èÇØ¼­ »ö»óÀ» ¼±ÅÃÇÑ´Ù. 
//  
//=======================================
function js_layer_colorpicker(this_s){
//================ »ö»ó¹è¿­
var color_arr1 = new Array('#000000','#333333','#666666','#999999','#cccccc','#ffffff');
var color_arr2_0 = new Array('#ff0000','#ff3300','#ff6600','#ff9900','#ffcc00','#ffff00');
var color_arr2_1 = new Array('#00ff00','#00ff33','#00ff66','#00ff99','#00ffcc','#00ffff');
var color_arr2_2 = new Array('#0000ff','#3300ff','#6600ff','#9900ff','#cc00ff','#ff00ff');
var color_arr3_0 = new Array('#ff0099','#ff3399','#ff6699','#ff9999','#ffcc99','#ffff99');
var color_arr3_1 = new Array('#66cc00','#66cc33','#66cc66','#66cc99','#66cccc','#66ccff');
var color_arr3_2 = new Array('#0099ff','#3399ff','#6699ff','#9999ff','#cc99ff','#ff99ff');


var color_arr = Array(
color_arr1,
color_arr2_0,color_arr2_1,color_arr2_2,
color_arr3_0,color_arr3_1,color_arr3_2
);
//================
	//¹öÆ° ±âº»Çü
	var input_stn = document.createElement('input');

	input_stn.type="button";
	input_stn.value='C';
	with(input_stn.style){
		fontSize="10px";
		borderStyle='outset';
		borderWidth='1px';
		padding="0px";
	}
	//div ±âº»Çü
	var div_stn = document.createElement('div');
	with(div_stn.style){
		//fontSize="0px";
		//lineHeight='0px';
		borderStyle='solid';
		borderWidth='0px';
		borderColor='#999999';
		padding="0px";
		margin='auto';
		//width=height="16px";
	}	
	
//µÑ·¯½Î´Â span
	var span_stn = document.createElement('span');

	//ºÙÀÌ±â
	if (this_s.nextSibling){ this_s.parentNode.insertBefore(span_stn,this_s.nextSibling);}
	else{ this_s.parentNode.appendChild(span_stn);}


	//ÃÖ¿Ü°¢ ·¹ÀÌ¾î
	var div_out = div_stn.cloneNode(true);	
	with(div_out.style){
		//width="120px";
		position="absolute";
		top="20px";
		left="0px";
		backgroundColor='#eeeeee';
		fontSize="0px";
		lineHeight='0px';
		borderStyle='solid';
		borderWidth='1px';
		borderColor='#999999';
		padding="5px";
		margin='auto';
		display='none';
		zIndex='100';
	}
	var span2 = document.createElement('span');
	span2.style.position="relative";
	span2.style.zIndex="0";
	span2.style.verticalAlign='top';
	span2.appendChild(div_out);
	span_stn.appendChild(span2);	
	span_stn.appendChild(this_s);
	//ÄÃ·¯ ·¹ÀÌ¾î ¿ÀÇÂ ¹öÆ°
	var input_open = input_stn.cloneNode(true);	
	//input_open.style.color='#996633';
	input_open.value='C';
	input_open.style.fontWeight='bold';
	input_open.style.cursor='pointer';
	span_stn.appendChild(input_open);
	//»ö»ó¹öÆ° : ±âº»Çü
	var input_color = input_stn.cloneNode(true);
	input_color.value='';
	try{input_open.style.backgroundColor=this_s.value;}catch(e){}
	with(input_color.style){
		fontSize="0px";
		borderStyle='solid';
		borderWidth='0px';
		borderColor='#cccccc';
		padding="0px";
		width=height="14px";
		margin='1px';
		cursor='pointer';
	}
	//»ö»ó div : ±âº»Çü
	var div_color = div_stn.cloneNode(true);
	div_color.style.borderStyle='none';
	div_color.style.whiteSpace='nowrap';
//´Ý±â ¹öÆ°	
	var dc = div_color.cloneNode(true);
	dc.style.textAlign='center';
	var ic = input_color.cloneNode(true);
	ic.value='X';
	ic.style.border='1px solid #cccccc';
	ic.style.fontSize='11px';
	ic.title = 'close';
	ic.onclick = function(){
		div_out.style.display='none';
	}
	var dc_temp = document.createElement('span');
	dc_temp.innerHTML = 'Color Picker ';
	dc_temp.style.fontSize='11px';
	dc_temp.style.lineHeight='100%';
	dc.appendChild(dc_temp);	
	dc.appendChild(ic);
	div_out.appendChild(dc);
//========== »ö»ó¹öÆ° ºÙÀÌ±â ÀÛ¾÷ ½ÃÀÛ
	for(var i=0,m=color_arr.length;i<m;i++)
	{
		var dc = div_color.cloneNode(true);		
		var color_arr_n = color_arr[i];
		for(var j=0,n=color_arr_n.length;j<n;j++){
			var ic = input_color.cloneNode(true);
			ic.style.backgroundColor=color_arr_n[j];
			ic.value2 = color_arr_n[j];
			ic.title = color_arr_n[j];
			ic.onclick = function(){
				this_s.value=this.value2;
				input_open.style.backgroundColor=this.value2;
				div_out.style.display='none';
			}
			dc.appendChild(ic);
		}
		div_out.appendChild(dc);
	}
//========== »ö»ó¹öÆ° ºÙÀÌ±â ÀÛ¾÷ ³¡
//========== ÀÌº¥Æ® µî·Ï
	input_open.onclick = function(){
		if(div_out.style.display=='none'){
			div_out.style.display='';
			//div_out.focus();
		}else{
			div_out.style.display='none';
		}
	}
	div_out.onblur =function(){
		this.style.display='none';
	}
}
 
