// 搜索代码开始 -->
function selectionMade(){
 if (document.search.searchword.value=="")
 {
  alert("请输入检索词！");return false;   
 }  
 act=document.search.select.value;  
 searchstr = document.search.searchword.value;
 if (act=="web"){ location.href="http://service2.xinhuanet.com/cgi-bin/searchp.cgi?word=" + searchstr; return false;}
 else if (act=="site"){location.href="http://service2.xinhuanet.com/cgi-bin/searchw.cgi?_searchkey="+searchstr;return false;}
 else if(act == "news") {  return true;   }
}
// 搜索代码结束 -->


// 开始显示-->

document.writeln("      <table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <form name=\"search\" method=\"get\" action=\"http://202.84.17.73:7777/search.wct\" OnSubmit=\"return selectionMade();\" target=\"_blank\">");
document.writeln("          <tr> ");
document.writeln("            <td width=\"15\">　");
document.writeln("            </td>");
document.writeln("            <td width=\"150\"> ");
document.writeln("<input name=\"searchword\" size=\"20\" value=\"\" style=\"WIDTH: 100px; HEIGHT: 18px; background-color: E9EBEA\">");
document.writeln("<input type=\"hidden\" name=\"word\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"ChannelID\" value=\"4255\">");
document.writeln("            </td>");
document.writeln("            <td width=\"100\"> ");
document.writeln("              <select name=\"select\" style=\"background-color: E9EBEA\">");
document.writeln("    <option value=\"site\">外网</option>");
document.writeln("    <option value=\"web\">网页</option>");
document.writeln("    <option value=\"news\" selected>本网</option>");
document.writeln("  </select>");
document.writeln("            </td>");
document.writeln("            <td width=\"56\"> ");
document.writeln("              <input type=\"submit\" name=\"Submit\" value=\"搜索\" style=\"font-size:12px; HEIGHT: 18px\">");
document.writeln("       <input type=\"hidden\" name=\"sr\" value=\"0\">");
document.writeln("            </td>");
document.writeln("          </tr>");
document.writeln("        </form>");
document.writeln("      </table>");
// 结束显示 -->