过滤敏感人物
<form name="SendHead" method="post" action="<TRS_CHANNEL ID="was检索" FIELD="_RECURL"/>?channelid=274008" target="_blank" onsubmit="return SearchSubmit();">
<div class="head-search">
<input type="text" class="hd-s-ipt" value="请输入关键字" name="searchword" id="textfield" />
<button class="hd-s-btn" onclick="return SearchSubmit()"></button>
</div>
</form>
<script>
function in_array(stringToSearch, arrayToSearch) {
for (s = 0; s < arrayToSearch.length; s++) {
thisEntry = arrayToSearch[s].toString();
if (thisEntry == stringToSearch) {
return true;
}
}
return false;
}
function SearchSubmit(){
var arr = ["周永康","令计划","薄熙来","郭伯雄","徐才厚","王珉","苏宏章","王阳","郑玉焯","李文科","陈铁新","刘强","万庆良","仇和","倪发科","周春雨","周本顺","夏勇","奚晓明","孙兆学","孙政才","孙鸿志","季建业","尹海林","常小兵","廖永远","张力军","张喜武","张文雄","张田欣","斯鑫良","景春华","曲淑辉","李云峰","李崇禧","李春城","杜善学","杨卫泽","杨栋梁","梁滨","毛小兵","王三运","王保安","王宏江","白恩培","盖如垠","纪宝成","肖天","艾宝俊","苏树林","莫建成","许前飞","谭栖伟","谷春立","阳宝华","韩学键","魏宏","黄兴国"];
var jsc=document.getElementById("textfield").value;
if(in_array(jsc,arr)){
alert("您所搜索的数据不存在");
return false;
}else{
SendHead.submit();
}
}
</script>