
function $(id)
{
	return	document.getElementById(id);
}
function linkto(count){
	//政务信息
	if(count==1||count=="1"){
		var lmid=$("zwxx").options[$("zwxx").selectedIndex].value;
		var PC_CON=$("zwxx_keyword").value;
	
	 	location.href="query.jsp?id="+lmid+"&cond="+encodeURIComponent(PC_CON);
	}
	//政策法规
	if(count==2||count=="2"){
		var lmid=$("zcfg").options[$("zcfg").selectedIndex].value;
		var PC_CON=$("zcfg_keyword").value;
	
	 	location.href="../Policy/Index.jsp?childid="+lmid+"&type=0"+"&cond="+encodeURIComponent(PC_CON)+"#head";
	 	
	}
	//企业信息
	if(count==6||count=="6"){
		var lmidValue=$("qyxx").options[$("qyxx").selectedIndex].value;
		var cond=$("qyxx_keyword").value;
		if(lmidValue=="sgqy"){
			location.href="../Enterprise/Index.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="kcsg"){
			location.href="../Enterprise/KcsjList.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="zbdl"){
			location.href="../Enterprise/ZbdlList.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="zjzx"){
			location.href="../Enterprise/ZjzxList.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="gcjl"){
			location.href="../Enterprise/GcjlList.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="qtqy"){
			//location.href="../Enterprise/KcsjList.jsp?sp=1_15_0_SP__"+encodeURIComponent(cond)+"#head";
		}
	}
	//执业人员
	if(count==7||count=="7"){
		var lmidValue=$("zyry").options[$("zyry").selectedIndex].value;
		var cond=$("zyry_keyword").value;
		if(lmidValue=="xmjl"){
			location.href="../Personnel/Index.jsp?sp=1_12_0_SP_%20_"+encodeURIComponent(cond)+"#head";
		}
		if(lmidValue=="zjry"){
			location.href="../Personnel/ZjryList.jsp?sp=1_12_0_SP_%20_"+encodeURIComponent(cond)+"#head";
		}
	}
}