	function setelbyid(divid,exeurl,apprchk){
		var strbunryu = "";
		var strntnlcode = "";
		var strselect2 = "";
						
		if (document.getElementById("idbunryu"))
		{
			var bunryu = document.getElementById("idbunryu").value;
			strbunryu = "&bunryu="+bunryu;
		}	
		if (document.getElementById("idselect2"))
		{
			var select2 = document.getElementById("idselect2").value;
			strselect2 = "&select2="+select2;
		}		
		if(document.getElementById("idntnlcode")){
			var ntnlcode =  document.getElementById("idntnlcode").value;
			strntnlcode = "&ntnlcode="+ntnlcode;
		}
		var qstr = "?tid="+divid+strbunryu+strselect2+strntnlcode;
			
	//		alert(qstr);
			if (apprchk != 2)
			{		
				if (bunryu+select2==document.getElementById("aaa").value)
				{
					alert("해당업종의 [다른후보안확인]은 결제후 가능합니다.    ");
					return ;
				}
			}
			ifexecute(exeurl,qstr);
			document.getElementById("aaa").value=bunryu+select2;
			document.getElementById("goconfirm").value = " 다른후보안확인 ";
	//		document.getElementById("idwordlength").selectedIndex = 0;
	
	}

	function checkchange(){
		if (document.getElementById("idbunryu"))
		{
			var bunryu = document.getElementById("idbunryu").value;
			document.getElementById("goconfirm").value = " 후보안확인 ";
			return ;
		}	
	}

	function setelbyid_(divid,exeurl){

		var strbunryu = "";	
		var strntnlcode = "";
		var strselect2 = "";
		var strwordlength = "";
		
		if (document.getElementById("idbunryu"))
		{
			var bunryu = document.getElementById("idbunryu").value;
			strbunryu = "&bunryu="+bunryu;
		}	
		if (document.getElementById("idselect2"))
		{
			var select2 = document.getElementById("idselect2").value;
			strselect2 = "&select2="+select2;
		}		
		if(document.getElementById("idntnlcode")){
			var ntnlcode =  document.getElementById("idntnlcode").value;
			strntnlcode = "&ntnlcode="+ntnlcode;
		}
		if (document.getElementById("idwordlength"))
		{
			var wordlength = document.getElementById("idwordlength").value;
			strwordlength = "&wordlength="+wordlength;
		}
			
		var qstr = "?tid="+divid+strbunryu+strselect2+strntnlcode+strwordlength;
	//	alert(qstr);
		ifexecute(exeurl,qstr);
	}
	
	function setelbyid1_1(divid,exeurl){
		
		if (document.getElementById("idselect2"))
		{
			var select2 = document.getElementById("idselect2").value;
			if (IsEmpty(select2)==false)
			{
				alert("검색할 키워드를 입력해 주세요.            ");
				document.getElementById("idselect2").value="";
				document.getElementById("idselect2").focus();
				return ;
			}
			if (select2.length<2)
			{
				alert("검색할 키워드의 길이는 2자 이상을 입력하세요.            ");
				document.getElementById("idselect2").select();
				document.getElementById("idselect2").focus();
				return ;
			}
		}		

		document.theform.action = exeurl+"?tid="+divid;
		document.theform.method = "post";
		document.theform.target = "ifexe";
		document.theform.submit();
		
	}

	function IsEmpty(toCheck)
	{	
		 var chkstr = toCheck + "";
		 var is_Space = true ;
		 if ( ( chkstr == "") || ( chkstr == null ) )
		   return false ;
		 for ( j = 0 ; is_Space &&  ( j < chkstr.length ) ; j++){
			 if( chkstr.substring( j , j+1 ) == " " )
				   is_Space = false ;
		 }
//		 alert(is_Space);
		 return ( is_Space );
	}
