
<!--

function addsearch()
{
	var m=document.thisForm;
	var searcherCounts=m.searchCount;
	if(typeof(m)=="object" && typeof(searcherCounts)=="object")
	{
			if(parseInt(searcherCounts.value)<10)
			{
				document.location.href="/member/memberSearch/memberSearcherCreate.jsp";
			}
			else
			{
				alert("您最多可建立10个简历搜索器,请删除其中一个然后新增!");
				return false;
			}
	}
}
function editsearch() 
{
	var num;
	num=0;
	var s="";
	if(typeof(thisForm.selectedID)=="object")
	{
		for(var i=0;i<thisForm.selectedID.length;i++)
		{
			if(thisForm.selectedID[i].checked)
			{
				s=thisForm.selectedID[i].value;
				num=num+1;
			}
		}
		if(num==0) 
		{
			alert("请选择其中的一个搜索器进行修改！");
	        	return false;
		}
		if(num>1) 
		{
			alert("只能对单个搜索器进行修改！");
	        	return false;
		}
		if(num==1)
			document.location.href="/member/memberSearch/memberSearcherUpdate.jsp?ID=" + s;
	}
	else
	{
		alert("贵企业目前还没有定义搜索器,请先新增搜索器!");
		return false;
	}
}

function openwin(file,width,height){
    window.open(file,"_setPartCom","width="+width+",height="+height+", resizable=yes scrollbars=yes");
}
function deleteSearcher()
{
    var s="";
    if(typeof(thisForm.selectedID)=="object")
    {
	    for(var i=0;i<thisForm.selectedID.length;i++)
	    {
	        if(thisForm.selectedID[i].checked)
	        {
	            s=s+"'"+thisForm.selectedID[i].value+"'"+",";
	        }
	    }
	    if(thisForm.selectedID.checked==1)
	    {
	        s=s+"'"+thisForm.selectedID.value+"'"+",";
	    }
	    if(s=="")
	    {
	        alert("请选择其中的一项进行操作！！");
	        return false;
	    }
	    else
	    {
	        if(confirm("您确实要删除该搜索器吗？"))
	        {
	            s=s.substring(0,s.length-1);
	            thisForm.ID.value=s;
	            thisForm.action="/memberSearch.do?action=deletes";
	            thisForm.submit();
	        }

	    }
    }
    else
    {
		alert("贵企业目前还没有定义搜索器,请先新增搜索器!");
		return false;
    }
}

function queryPos()
{
	document.thisForm.action="/member/memberSearch/memberSearchResume.jsp";
	document.thisForm.submit();	
}